Installation and User Instructions
Installation and User Instructions
Instructions
Installation:
Download and install ImageJ 1.48 or newer or Fiji (latest version). If you installed imageJ
before the end of 2013, you should uninstall your current version of ImageJ (DO NOT UPDATE)
and reinstall ImageJ 1.48 or newer. Before uninstalling, be sure to copy all of your old plugins
into a separate folder as these will be removed when you uninstall your old version of ImageJ.
Download the DiameterJ plugin h ttp://fiji.sc/DiameterJ#Download_Link, unzip the files and move
or copy the three folders into the plugins folder of ImageJ/FIJI.
If you do not know where the plugin folders is located, navigate to the location where ImageJ is
installed and find the plugins folder. If defaults are chosen, you will find the plugins folder in
one of the locations below:
Once downloaded, simply move the unzipped DiameterJ file(s) into the ImageJ/FIJI plugins
folder and restart ImageJ.
Image Segmentation:
If your image is not a binary image (only black and white pixels), complete the
image segmentation steps below before performing DiameterJ analysis:
Image segmentation is the process of converting an image into a binary representation of your
image, where the white pixels represent the portions of the original image that you would like to
measure and the black pixels represent the background that you would not like to measure.
1. Open ImageJ
2. Go to: Plugins-->DiameterJ-- DiameterJ Segment to segment images.
3. A pop-up window will appear asking for several pieces of information
4. First enter in the dimensions of your image in pixels. These must be correct for accurate
image cropping and segmentation.
5. Next select whether your image needs to be cropped and, if so, what the pixel
coordinates of the box you would like to create are.
a. In general, these coordinates define the top left corner of the box you would like
to analyze and the bottom right corner of the box. For now DiameterJ only
supports square/rectangular cropped regions of interest, however, in the future
we hope to support dynamic and free-hand regions of interest for cropping.
6. DiameterJ Segment can use up to 24 different segmentation algorithms to segment your
image. Each of the check boxes under Segmentation Algorithms to Use represent 8 of
these algorithms. Select as many or as few as you want. However, in order to convert
your image to a black and white image that is able to be analyzed later at least one box
must be checked and None cannot be checked.
7. Batch processing is enabled by default but if the user only would like to analyze one
image select the No radio button.
a. NOTE: If the user only wants to analyze one image that image must be opened in
DiameterJ prior to starting the DiameterJ Segment or DiameterJ 1.XXX plugin.
8. Click the Okay button after you have made all of the selections you would like to make.
9. A pop-up window will appear asking what folder you would like to analyze images from if
you chose to batch analyze images, or asking where you would like to save the output of
the analysis of the image that is open in ImageJ if no batch analysis was selected.
a. If batch was selected output files will be saved in the same location that the
images the user selected are in
10. The code will then produce three new folders within the folder where the image that you
selected for analysis is located. One folder is called Best Segmentation, another is
called Montage Images, and the third is called Segmented Images.
a. The Best Segmentation folder contains no images.
b. The Montage Images contains a montage comparison image of the original
image to the 8, 16, or 24 different segmentation methodologies. Look at each of
the montage images and find the name of the image with the most accurate
representation of your fibers. (Names of the images shown in the montage are
on the bottom of each image in Red.)
c. The Segmented Images folder has all of the segmented images from the
montage images. Copy and paste the images you have determined to have the
best segmentation into the Best Segmentation folder.
11. Visually inspect these images to make sure that the segmentation worked well and that
the segmentation represents the image you want to analyze. If it does not, try the other
segmentation algorithms.
12. If none of the 124 algorithms segment your image well, you can take the best
segmentation results from running the algorithm and manually correct any remaining
errors until the images accurately reproduce the fibers, you can manually create your
own segmentation, or you can use your own segmentation algorithm to create the black
and white images. DiameterJ only needs a black and white (binary) image to analyze
and thus it doesnt matter how that image is created.
13. After copying the best image into the Best Segmentation folder, the user can delete all
other unused images/montage images.
a. This step is not required it just saves a lot of hard drive space
DiameterJ Analysis:
Analyzed images MUST be white fibers on a black background. If you have black
fibers on a white background, invert the image to analyze it with DiameterJ.
In ImageJ, go to:
2. Look at what the unit of length is. If its inches, then your SEM doesnt store the
necessary metadata information with the micrograph and youll have to do the
conversion by hand.
3. In the case that you have to calculate by hand, open any micrograph (at the
magnification that you have taken your SEM images) in ImageJ.
4. In ImageJ go to menu:
a. Analyze-->Set Scale
5. Select Click to Remove Scale
6. Close the scale window
7. Place your mouse over the scale bar and hit the + key to zoom-in.
8. Continue to zoom-in on the scale bar until it fills the screen.
a. After zooming in, you can widen the default width of the window that ImageJ
chooses just like any normal window.
9. Next, select the Rectangular tool from the menu bar.
a. If the rectangular tool isn't available, go to the tile that has >> and click Restore
startup tools from the drop down menu.
10. Next, draw a square or a line that spans the scale bar.
11. To get the length or width of this rectangle, simply look under the toolbar of ImageJ as
you are drawing the rectangle.
a. As soon as you stop drawing the line, the measurements will disappear, so dont
let go of the cursor until youve seen and noted the rectangle width.