Sean Lauber:ImageJ - Threshold Analysis: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
#Load the microscope picture you want to analyze (or simply paste it)
#Load the microscope picture you want to analyze (or simply paste it)
#Open Threshold (Image/Adjust/Threshold or ctrl+shift+T)
#Open Threshold (Image/Adjust/Threshold or ctrl+shift+T)
#Set all the parameters (Hue, Saturation, Brightness) to zero, in addition I like the  
#Set all the parameters (Hue, Saturation, Brightness) to zero, in addition I like the following parameters: Thresholding method: Default; Threshold color: Black (you might prefer white or red); Color space: HSB; Dark background: unchecked.
follow parameters: Thresholding method: Default; Threshold color: Black (you might prefer  
white or red); Color space: HSB; Dark background: unchecked.
#You should see what's in Figure A
#You should see what's in Figure A
#To measure the Total Area
#To measure the Total Area
##Adjust the Hue and Saturation to full, and adjust the Brightness bar to a point at  
##Adjust the Hue and Saturation to full, and adjust the Brightness bar to a point at which all cells/tissue is selected. See Figure B. <b> Be sure to only select cells/tissue and not any of the background which also may be staining. You want to exclude white space)</b>
which all cells/tissue is selected. See Figure B. <b> Be sure to only select cells/tissue  
and not any of the background which also may be staining. You want to exclude white  
space)</b>
##Press Select (one of the seven boxes at the bottom of the Threshold window)
##Press Select (one of the seven boxes at the bottom of the Threshold window)
##Now that the appropriate area is selected, measure the area (Analyze/Measure or ctrl+M)  
##Now that the appropriate area is selected, measure the area (Analyze/Measure or ctrl+M) (Figure C).
(Figure C).
##Record this area (copy/paste into Excel)
##Record this area (copy/paste into Excel)
#To measure the IHC stained area:
#To measure the IHC stained area:
##Reopen the image you want analyzed as well as the threshold window, etc.
##Reopen the image you want analyzed as well as the threshold window, etc.
##Adjust Saturation and Brightness to full, and adjust the Hue bar to a point at which  
##Adjust Saturation and Brightness to full, and adjust the Hue bar to a point at which all brown IHC staining is selected. See Figure D. <b> This is difficult to do perfectly because you will always end up selecting regions that are not stained. Adjust the Saturation and Brightness bars to fine tune if desired. Compromise! </b>
all brown IHC staining is selected. See Figure D. <b> This is difficult to do perfectly  
because you will always end up selecting regions that are not stained. Adjust the  
Saturation and Brightness bars to fine tune if desired. Compromise! </b>
##Press Select and measure the area (ctrl+M), see Figure E.
##Press Select and measure the area (ctrl+M), see Figure E.
##Record into Excel
##Record into Excel
#Now calculate the %IHC stained area:
#Now calculate the %IHC stained area: (IHC stained area)/(Total area) * 100%
 
And repeat!
 
 
[[Image:ImageJ.JPG]]

Revision as of 08:55, 2 April 2012

ImageJ can be used to measure differences in staining intensity. A threshold feature allows the user to increase the selected area depending on the intensity of staining, this area can then be measured. In order to quantify IHC staining, we need to measure the Total Area (brown+non-brown staining) and the IHC stained Area (brown staining) and relate this as a percentage. Download ImageJ here: http://rsbweb.nih.gov/ij/ (freeware).

Realize that quantification of IHC is considered to not be possible for a variety of reasons (see "Quantification of immunohistochemistry--issues concerning methods, utility and semiquantitative assessment II"), but may still be useful. You have to be very consistent with the way that you take your microscope pictures and prepare your slides because you don't want certain slides to show more staining unless there actually is more staining. So prepare your samples on the same day, use the same microscope to take pictures using the same lighting and magnification, etc.

The figure that I'm refering to is at the bottom of the page (Figure A-E).


  1. Open ImageJ
  2. Load the microscope picture you want to analyze (or simply paste it)
  3. Open Threshold (Image/Adjust/Threshold or ctrl+shift+T)
  4. Set all the parameters (Hue, Saturation, Brightness) to zero, in addition I like the following parameters: Thresholding method: Default; Threshold color: Black (you might prefer white or red); Color space: HSB; Dark background: unchecked.
  5. You should see what's in Figure A
  6. To measure the Total Area
    1. Adjust the Hue and Saturation to full, and adjust the Brightness bar to a point at which all cells/tissue is selected. See Figure B. Be sure to only select cells/tissue and not any of the background which also may be staining. You want to exclude white space)
    2. Press Select (one of the seven boxes at the bottom of the Threshold window)
    3. Now that the appropriate area is selected, measure the area (Analyze/Measure or ctrl+M) (Figure C).
    4. Record this area (copy/paste into Excel)
  7. To measure the IHC stained area:
    1. Reopen the image you want analyzed as well as the threshold window, etc.
    2. Adjust Saturation and Brightness to full, and adjust the Hue bar to a point at which all brown IHC staining is selected. See Figure D. This is difficult to do perfectly because you will always end up selecting regions that are not stained. Adjust the Saturation and Brightness bars to fine tune if desired. Compromise!
    3. Press Select and measure the area (ctrl+M), see Figure E.
    4. Record into Excel
  8. Now calculate the %IHC stained area: (IHC stained area)/(Total area) * 100%

And repeat!