Sean Lauber:ImageJ - Threshold Analysis: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 5: Line 5:
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 to avoid variability. So prepare your samples on the same day, use the same microscope to take pictures using the same lighting and magnification parameters, etc.  
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 to avoid variability. So prepare your samples on the same day, use the same microscope to take pictures using the same lighting and magnification parameters, etc.  


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


1. Open ImageJ


#Open ImageJ
2. 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)
#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.
#You should see what's in Figure A
#To measure the Total Area
##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>
##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) (Figure C).
##Record this area (copy/paste into Excel)
#To measure the IHC stained area:
##Click Original in one of the seven boxes
##Without changing the Brightness bar, decrease the Hue bar until only the IHC stained area is selected. See Figure D. <b> Initially when you move the Brightness bar you might see an inverted image. I think this is a bug. Choose a different Threshold color and then go back to black (if you like) to reset the image. Adjusting the threshold can be 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.
##Record into Excel
#Now calculate the %IHC stained area: (IHC stained area)/(Total area) * 100%


And repeat!
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.


[[Image:ImageJ.JPG]]
 
[[Image:ImageJ-IHC07.png]]
 
 
5. To measure the Total Area:
 
5a. Adjust the Hue and Saturation to full, and adjust the Brightness bar to a point at which all cells/tissue is selected. <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>
 
 
[[Image:ImageJ-IHC08.png]]
 
 
5b. Press Select (one of the seven boxes at the bottom of the Threshold window)
 
5c. Now that the appropriate area is selected, measure the area (Analyze/Measure or ctrl+M)
 
 
[[Image:ImageJ-IHC09.png]]
 
 
5d. Record this area (copy/paste into Excel)
 
6. To measure the IHC stained area:
 
6a. Click Original in one of the seven boxes
 
6b. Without changing the Brightness bar, decrease the Hue bar until only the IHC stained
area is selected. <b> Initially when you move the Brightness bar you might see an inverted image. I think this is a bug. Choose a different Threshold color and then go back to black (if you like) to reset the image. Adjusting the threshold can be 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>
 
 
[[Image:ImageJ-IHC10.png]]
 
 
6c. Press Select and measure the area (ctrl+M)
 
 
 
[[Image:ImageJ-IHC11.png]]
 
 
 
6d. Record into Excel
 
7. Now calculate the %IHC stained area: (IHC stained area)/(Total area) * 100%

Latest revision as of 20:08, 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.

There's a number of ways to express the data. In this example I'm showing how to quantify the % stained area so we'll need to measure the Total Area (brown+non-brown staining) and the IHC stained Area (brown staining) and relate this as a percentage. Maybe you want to show that there are increases in staining itself, in which case you simply have to measure the stained area and not the total area. 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 to avoid variability. So prepare your samples on the same day, use the same microscope to take pictures using the same lighting and magnification parameters, etc.


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. To measure the Total Area:

5a. Adjust the Hue and Saturation to full, and adjust the Brightness bar to a point at which all cells/tissue is selected. Be sure to only select cells/tissue and not any of the background which also may be staining. You want to exclude white space)



5b. Press Select (one of the seven boxes at the bottom of the Threshold window)

5c. Now that the appropriate area is selected, measure the area (Analyze/Measure or ctrl+M)



5d. Record this area (copy/paste into Excel)

6. To measure the IHC stained area:

6a. Click Original in one of the seven boxes

6b. Without changing the Brightness bar, decrease the Hue bar until only the IHC stained area is selected. Initially when you move the Brightness bar you might see an inverted image. I think this is a bug. Choose a different Threshold color and then go back to black (if you like) to reset the image. Adjusting the threshold can be 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!



6c. Press Select and measure the area (ctrl+M)



6d. Record into Excel

7. Now calculate the %IHC stained area: (IHC stained area)/(Total area) * 100%