-
Notifications
You must be signed in to change notification settings - Fork 1
QuickScaleBar
Adds a scale bar to the front-most image. The image calibration and length unit are taken from the image.
The options menu can be accessed by a right-click on the icon. The following options are available:
Relative height: Height of scale bar wrt image height in pixel (default: 0.02, 2% of image height)
Scaling factor: Additional scaling factor that is multiplied with Relative height (default: 1). Useful to quickly adjust scale-bar size by a scaling factor.
Relative width: Width of scale bar with respect to Scalebar size referenceoption (default: 0.2, 20% of image width), will get rounded to next smaller "nice" value, see (vals array in the code).
Relative fontsize: Font size wrt Scalebar height (default: 3, point size of scale bar height).
Scalebar color: Font size color (default: 'Black').
Background color: Background color (default: 'White'). Use 'None' to remove background.
Scalebar location: Location/position of scale bar (default: 'Lower Right').
Bold: Bold font (default: true).
Overlay: Add scale bar as an overlay (default: true).
Serif font: Serif font (default: false).
Hide: Hide font, only plot scale bar (default: false). Will create a copy of the image with the scale-bar length in the title.
Scalebar size reference: Base scale bar size on width/height/smaller/larger edge of the image (default: 'Larger'). You can adjust this for narrow images to modify scale bar appearance. Use Height/Width if you want to have identical scale bar sizes for images of same Height/Width.
Auto unit-switching: Automatically adjusts units between m and Å based on Checkand U values. (default: true).
(Auto unit-switching) Check: Check width/height/both of image for unit switching (default: 'Width').
U: Unit switching factor (default: 3). Example: Will switch from µm to nm if image width is below 3 µm. Will switch from nm to µm if image width is larger than 3000 nm.
Use Angstrom: Deselect to skip Angstrom between nm and pm.
Auto re-scale images: If true/1, automatically rescale (using no interpolation/nearest interpolation) small image width or height to at least rescale_target_px value. (default: 0, false). Useful to resize small cropped areas of larger images. This is the same as using CTRL+E and rescaling with Interpolation: None.
rescale_target_px: Target minimum pixel size for auto_rescale. (default: 512)
Run custom macro commands: Run commands specified in next line (default: false). In the Custom macro commands field, multiple commands must be separated by ;.