Welcome to the ScaleBarIT guide. ScaleBarIT enable users to add scale bars to images quickly and efficiently. The basic steps involve choosing your image, specifying its pixel size, then choosing a region of interest and finally adding your scale bar of choice.
Dan has built this capability during his PhD in a Materials Science field and hopes the distribution of this app will provide a tailored and simple solution to adding scale bars to images.
Written by Dan Scotson, 08/12/2024 for ScaleBarIT's version 1.4. If you have any further questions, please get in touch with Dan at daniel.scotson@manchester.ac.uk.
Install with the ScaleBarIT_installer.exe from the repository.
There are five major steps that can be performed in ScaleBarIT. Guiding you through these steps in the app is a colour coding system - red = not possible yet, blue = possible and green = complete.
- Select Image
- Select Pixel Size
- Region of Interest Method
- Add Scale Bar
- Save Image
The following steps should be followed to add scale bars to your images.
Select an image file of your choice and visualise this in the app.
Selecting the pixel size of your image is really important.
First, the app will try to automatically extract the pixel size from the metadata of the image. If this is not possible, selecting the pixel size can be performed by two methods.
- Enter the known pixel size in the pop up menu.
- Choose a region of interest containing a scale bar. This involves cropping the image. First drag the interactive box into the desired position, then right click and select 'Crop image' to confirm.
- Then a new image will appear, click at each end of the horizontal extent of the existing scale bar. Press enter to confirm.
- Then confirm the size of the scale bar and the units in the pop up menu.
You don't want all your image being displayed?
You have two options here:
- Click on the Point button then proceed to select a single point on the image. Then press Confirm!
- Click on Crop button and then proceeed to draw a rectangle on the image. Then press Confirm!
Two options are available for adding scale bars:
Automatic suggestions of scale bars that are half of your image size after the pixel size has been determined.
Set a custom scale bar (choose your value in the edit field) with the unit of choice.
You have two options to save the image.
The image will be saved in a location of your choice with _proc_SB added to the filename.
- Grayed out labels are not enabled and need another step before becoming available.
- Feedback to user gives tips as to what is next/what has happened.
- Hover over buttons or functionality to get further help in the user interface.
- The crop command for selection of the pixel size requires the dragging of the interactive box, then right click and select 'Crop image' to confirm.
- Made an error or want to reload another image/start again.
- Customise the colour of the scale bar and font.
- Customise the font name, font size and font weight (e.g. bold or normal).
- Choose whether a pad bar is added to the image. This increases the size of the image to ensure the scale bar isn't overlaid onto your image. The pad bar's height can also be customised.
- Select position of the scale bar (e.g. bottom left or bottom right).
- Change the style of the scale bar - solid rectangle or H shape. The thickness of the H can also be set here.
- Rotate the image clockwise or anticlockwise by 90°.
- Change the resolution of the saved image.
- Measure between two points on your image once the pixel size is set. Select menu, click on point to point distance and you can create a line. The distance of the line will automatically update in the feedback to user button and also if you hover over the line.
- Copyright notice details will display within the user interface of the app.
- Add an issue to alert Dan to a problem with the UI.
- Alternatively, get in touch with Dan Scotson via email - daniel.scotson@manchester.ac.uk.