Help with quantifying pictures after channel splitting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with quantifying pictures after channel splitting

Stephanie Klett
Dear Image J discussion group,
I have a question about how I can quantify my digital microscopic images
(.jpg) In my case I done a immunological staining where red is the colour of
interest. Therefore, I split the channels and use the blue labelled picture
and apply the function Threshold... (under Image-->Adjust-->). Then I get a
histogram and an automatically adjustment of the colour sensibility (?). My
question is what should I keep in mind when I want to compare several
images. Do I have to adjust always the same sensibility (from the rage of 0
to 255) or do I choose the automatically adjustment? My problem is, that
sometimes the automatically adjustment represent the quantification better
than the sensibility rate that I decided to use and other way around. Which
way is more unbiased or do I have to do a completely other procedure?

Here I display screen shots where I document my way and may problem more
exemplified.

Fig. 1 Opened a file and split the channels

Fig. 2 Apply the function ³Threshold...² on the image labelled "blue³
 
Fig. 3 Display the automatically adjustment of 228

Fig. 4 Corrected the threshold to 180

Fig. 5 A new image, display the automatically threshold of 222

Fig. 6 Corrected the threshold to the undoing rate of 180


I¹m very happy if you can help me and looking forward to your answer.

Thank you for your attention

Best regards
Stephanie

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


image.png (427K) Download Attachment
image.png (553K) Download Attachment
image.png (720K) Download Attachment
image.png (682K) Download Attachment
image.png (948K) Download Attachment
image.png (707K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Help with quantifying pictures after channel splitting

G. Esteban Fernandez
Hi Stephanie,

For this kind of thing the Colour Deconvolution plugin usually works well
for me (if staining is consistent from image to image). The plugin would
separate your color images into two images corresponding to the two
histological stains you used.

In addition to Colour Deconvolution I'd apply a Process > Subtract
Background step (right now I don't remember if background subtraction works
better before or after color deconvolution).

You could also try the Auto Local Thresholding plugin instead of the global
thresholding you described.

In short, my workflow is generally this:

1. Colour Deconvolution (comes with Fiji ImageJ)
2. Process > Subtract Background
3. Auto Local Threshold (also in Fiji)

-Esteban
On Feb 4, 2015 6:58 AM, "Stephanie Klett" <[hidden email]>
wrote:

> Dear Image J discussion group,
> I have a question about how I can quantify my digital microscopic images
> (.jpg) In my case I done a immunological staining where red is the colour
> of
> interest. Therefore, I split the channels and use the blue labelled picture
> and apply the function Threshold... (under Image-->Adjust-->). Then I get a
> histogram and an automatically adjustment of the colour sensibility (?). My
> question is what should I keep in mind when I want to compare several
> images. Do I have to adjust always the same sensibility (from the rage of 0
> to 255) or do I choose the automatically adjustment? My problem is, that
> sometimes the automatically adjustment represent the quantification better
> than the sensibility rate that I decided to use and other way around. Which
> way is more unbiased or do I have to do a completely other procedure?
>
> Here I display screen shots where I document my way and may problem more
> exemplified.
>
> Fig. 1 Opened a file and split the channels
>
> Fig. 2 Apply the function ³Threshold...² on the image labelled "blue³
>
> Fig. 3 Display the automatically adjustment of 228
>
> Fig. 4 Corrected the threshold to 180
>
> Fig. 5 A new image, display the automatically threshold of 222
>
> Fig. 6 Corrected the threshold to the undoing rate of 180
>
>
> I¹m very happy if you can help me and looking forward to your answer.
>
> Thank you for your attention
>
> Best regards
> Stephanie
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Help with quantifying pictures after channel splitting

Stoyan Pavlov
Citron Bruce,
She is using the blue channel correctly. In the brightfield image red is
actually lack of blue and/or green from the transmitted light, and not a
presence of red. The dye does not add additional red light but absorbs away
blue and/or green. 😃

Stoyan Pavlov
На 08.02.2015 04:53 "G. Esteban Fernandez" <[hidden email]>
написа:

> Hi Stephanie,
>
> For this kind of thing the Colour Deconvolution plugin usually works well
> for me (if staining is consistent from image to image). The plugin would
> separate your color images into two images corresponding to the two
> histological stains you used.
>
> In addition to Colour Deconvolution I'd apply a Process > Subtract
> Background step (right now I don't remember if background subtraction works
> better before or after color deconvolution).
>
> You could also try the Auto Local Thresholding plugin instead of the global
> thresholding you described.
>
> In short, my workflow is generally this:
>
> 1. Colour Deconvolution (comes with Fiji ImageJ)
> 2. Process > Subtract Background
> 3. Auto Local Threshold (also in Fiji)
>
> -Esteban
> On Feb 4, 2015 6:58 AM, "Stephanie Klett" <[hidden email]>
> wrote:
>
> > Dear Image J discussion group,
> > I have a question about how I can quantify my digital microscopic images
> > (.jpg) In my case I done a immunological staining where red is the colour
> > of
> > interest. Therefore, I split the channels and use the blue labelled
> picture
> > and apply the function Threshold... (under Image-->Adjust-->). Then I
> get a
> > histogram and an automatically adjustment of the colour sensibility (?).
> My
> > question is what should I keep in mind when I want to compare several
> > images. Do I have to adjust always the same sensibility (from the rage
> of 0
> > to 255) or do I choose the automatically adjustment? My problem is, that
> > sometimes the automatically adjustment represent the quantification
> better
> > than the sensibility rate that I decided to use and other way around.
> Which
> > way is more unbiased or do I have to do a completely other procedure?
> >
> > Here I display screen shots where I document my way and may problem more
> > exemplified.
> >
> > Fig. 1 Opened a file and split the channels
> >
> > Fig. 2 Apply the function ³Threshold...² on the image labelled "blue³
> >
> > Fig. 3 Display the automatically adjustment of 228
> >
> > Fig. 4 Corrected the threshold to 180
> >
> > Fig. 5 A new image, display the automatically threshold of 222
> >
> > Fig. 6 Corrected the threshold to the undoing rate of 180
> >
> >
> > I¹m very happy if you can help me and looking forward to your answer.
> >
> > Thank you for your attention
> >
> > Best regards
> > Stephanie
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Help with quantifying pictures after channel splitting

gankaku
In reply to this post by Stephanie Klett
Hi Stephanie,

A few general comments.

1.) When you say quantify the question which remains is quantify what
exactly. In your case it seems fairly clear that you want to measure the
area occupied by either your red staining (since you mentioned red is of
interest for you). Just to cite a lot of people mentioning this here once
in a while...Quantifying intensities in an image of histological stainings
cannot be done because of the missing linearity between darkness/strength
of the stain and the related amount of product/substrate.

2.) In your fist image you see that after application of the threshold in
the blue channel, the complete right hand side is considered by the
threshold. By looking at the image, this is rather unlikely to really be
red staining but rather a consequence of unequal lighting and will mislead
you in your measurements. Thus, I would first try to correct the lighting
at the microscope by setting it up with Koehler illumination (e.g. see:
http://zeiss-campus.magnet.fsu.edu/articles/basics/kohler.html) and if
available in your microscopic software acquire the image using "shading
correction". You can also afterwards correct for uneven illumination
(described here:
http://imagejdocu.tudor.lu/doku.php?id=howto%3Aworking%3Ahow_to_correct_background_illumination_in_brightfield_microscopy)
but this always bears the chance that you also introduce artifacts since
most post-priori methods are based on calculation except you collect a
flat-field image beforehand and use this for correction. You could try the
corrections in the BioVoxxel Toolbox which are two easy-to-use
implementation of the described flat-field corrections from the link above.

3.) When you save your images as .JPG you will always have to deal with
compression artifacts. Since (as it looks to me) your regions of interest
between the nuclei which show red staining are fairely small those
artifacts will increase the measurement error, markedly. Thus, I would try
to save the micrographs as tiffs or better in the original file-format of
the microscope. For most standard formats the BioFormat plugins for ImageJ
are able to read those.

4.) When you use the thresholding dialog and asjust the thresholds every
time manually you do the analysis only based on your visual perception.
Since human eyes are not very good in this, it is rather not recommendable
to use manual methods trying to achieve comparable results. Besides this,
you treat every image different (except if you use the same threshold every
time) and this would actually not allow a consecutive comparison. You could
use your original method, split the channels but thereafter apply the same
auto threshold to all your images. Since all your stainings have a certain
variability, this might account better for those and you work with the same
algorithm on the complete series of images.

5.) Besides the RGB channels I would also have a look into the HSB (>Image
>Type >HSB Stack) or Lab color space (>Image >Color >RGB to CIELAB). Those
often lead to an easier separation of distinct colors. You could also try
the "Color Threshold" for any of those color spaces by running the
threshold dialog on the original RGB image (this should start the color
thresholding dialog). Limitation here is that you again (see 5.) need to
define on representative images a threshold manually (!) but the advantage
would be that you can adjust this directly for RGB, HSB or Lab color space
and thereafter record it as a macro. The latter enables you to apply your
criteria to all your images which supports better comparability. However,
this might still suffer from not accounting for staining variabilities as
good as an auto threshold.

6.) If you can produce sample which show the blue and the red staining
separately (by e.g. applying the chemical staining components separately)
you could try to define vectors which separate your colors using the colour
deconvolution plugin (>Image >Color >Colour Deconvolution). This might also
reliably separate your staining efficiently and enable you to finally auto
threshold the individual extracted components.

There are other possibilities for sure but I think this info should be
sufficient for the beginning.

I hope this helps a little and is not too confusing ;-)

cheers,
Jan




2015-02-04 15:44 GMT+01:00 Stephanie Klett <[hidden email]>:

> Dear Image J discussion group,
> I have a question about how I can quantify my digital microscopic images
> (.jpg) In my case I done a immunological staining where red is the colour
> of
> interest. Therefore, I split the channels and use the blue labelled picture
> and apply the function Threshold... (under Image-->Adjust-->). Then I get a
> histogram and an automatically adjustment of the colour sensibility (?). My
> question is what should I keep in mind when I want to compare several
> images. Do I have to adjust always the same sensibility (from the rage of 0
> to 255) or do I choose the automatically adjustment? My problem is, that
> sometimes the automatically adjustment represent the quantification better
> than the sensibility rate that I decided to use and other way around. Which
> way is more unbiased or do I have to do a completely other procedure?
>
> Here I display screen shots where I document my way and may problem more
> exemplified.
>
> Fig. 1 Opened a file and split the channels
>
> Fig. 2 Apply the function ³Threshold...² on the image labelled "blue³
>
> Fig. 3 Display the automatically adjustment of 228
>
> Fig. 4 Corrected the threshold to 180
>
> Fig. 5 A new image, display the automatically threshold of 222
>
> Fig. 6 Corrected the threshold to the undoing rate of 180
>
>
> I¹m very happy if you can help me and looking forward to your answer.
>
> Thank you for your attention
>
> Best regards
> Stephanie
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
>


--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Help with quantifying pictures after channel splitting

Stephanie Klett
In reply to this post by G. Esteban Fernandez
Dear Esteban dear Jan,

Thanks a lot for your detailed feedback and comments. I tried various
settings and now I think I found the best way to quantify my staining

1)  install Fiji
2)  substrate background
3)  colour deconvolution in RBG
4)  auto local threshold and decide for "Phansalkar"-logarithm
5)  measure the labelled area with the "Threshold" and "Measure" function
6)  calculated the percentage area amount by hands

In my case it works well but only with this staining, other stainings with
different red colour ranges (f.e. PAS or Sirius red) need other colour
deconvolution settings and auto local threshold logarithms.

Cheers,
Stephanie



Am 10.02.15 09:23 schrieb "BioVoxxel" unter <[hidden email]>:

> Hi Stephanie,
>
> A few general comments.
>
> 1.) When you say quantify the question which remains is quantify what
> exactly. In your case it seems fairly clear that you want to measure the
> area occupied by either your red staining (since you mentioned red is of
> interest for you). Just to cite a lot of people mentioning this here once
> in a while...Quantifying intensities in an image of histological stainings
> cannot be done because of the missing linearity between darkness/strength
> of the stain and the related amount of product/substrate.
>
> 2.) In your fist image you see that after application of the threshold in
> the blue channel, the complete right hand side is considered by the
> threshold. By looking at the image, this is rather unlikely to really be
> red staining but rather a consequence of unequal lighting and will mislead
> you in your measurements. Thus, I would first try to correct the lighting
> at the microscope by setting it up with Koehler illumination (e.g. see:
> http://zeiss-campus.magnet.fsu.edu/articles/basics/kohler.html) and if
> available in your microscopic software acquire the image using "shading
> correction". You can also afterwards correct for uneven illumination
> (described here:
> http://imagejdocu.tudor.lu/doku.php?id=howto%3Aworking%3Ahow_to_correct_backgr
> ound_illumination_in_brightfield_microscopy)
> but this always bears the chance that you also introduce artifacts since
> most post-priori methods are based on calculation except you collect a
> flat-field image beforehand and use this for correction. You could try the
> corrections in the BioVoxxel Toolbox which are two easy-to-use
> implementation of the described flat-field corrections from the link above.
>
> 3.) When you save your images as .JPG you will always have to deal with
> compression artifacts. Since (as it looks to me) your regions of interest
> between the nuclei which show red staining are fairely small those
> artifacts will increase the measurement error, markedly. Thus, I would try
> to save the micrographs as tiffs or better in the original file-format of
> the microscope. For most standard formats the BioFormat plugins for ImageJ
> are able to read those.
>
> 4.) When you use the thresholding dialog and asjust the thresholds every
> time manually you do the analysis only based on your visual perception.
> Since human eyes are not very good in this, it is rather not recommendable
> to use manual methods trying to achieve comparable results. Besides this,
> you treat every image different (except if you use the same threshold every
> time) and this would actually not allow a consecutive comparison. You could
> use your original method, split the channels but thereafter apply the same
> auto threshold to all your images. Since all your stainings have a certain
> variability, this might account better for those and you work with the same
> algorithm on the complete series of images.
>
> 5.) Besides the RGB channels I would also have a look into the HSB (>Image
>> Type >HSB Stack) or Lab color space (>Image >Color >RGB to CIELAB). Those
> often lead to an easier separation of distinct colors. You could also try
> the "Color Threshold" for any of those color spaces by running the
> threshold dialog on the original RGB image (this should start the color
> thresholding dialog). Limitation here is that you again (see 5.) need to
> define on representative images a threshold manually (!) but the advantage
> would be that you can adjust this directly for RGB, HSB or Lab color space
> and thereafter record it as a macro. The latter enables you to apply your
> criteria to all your images which supports better comparability. However,
> this might still suffer from not accounting for staining variabilities as
> good as an auto threshold.
>
> 6.) If you can produce sample which show the blue and the red staining
> separately (by e.g. applying the chemical staining components separately)
> you could try to define vectors which separate your colors using the colour
> deconvolution plugin (>Image >Color >Colour Deconvolution). This might also
> reliably separate your staining efficiently and enable you to finally auto
> threshold the individual extracted components.
>
> There are other possibilities for sure but I think this info should be
> sufficient for the beginning.
>
> I hope this helps a little and is not too confusing ;-)
>
> cheers,
> Jan


Am 08.02.15 03:51 schrieb "G. Esteban Fernandez" unter
<[hidden email]>:

> Hi Stephanie,
>
> For this kind of thing the Colour Deconvolution plugin usually works well
> for me (if staining is consistent from image to image). The plugin would
> separate your color images into two images corresponding to the two
> histological stains you used.
>
> In addition to Colour Deconvolution I'd apply a Process > Subtract
> Background step (right now I don't remember if background subtraction works
> better before or after color deconvolution).
>
> You could also try the Auto Local Thresholding plugin instead of the global
> thresholding you described.
>
> In short, my workflow is generally this:
>
> 1. Colour Deconvolution (comes with Fiji ImageJ)
> 2. Process > Subtract Background
> 3. Auto Local Threshold (also in Fiji)
>
> -Esteban
> On Feb 4, 2015 6:58 AM, "Stephanie Klett" <[hidden email]>
> wrote:
>
>> Dear Image J discussion group,
>> I have a question about how I can quantify my digital microscopic images
>> (.jpg) In my case I done a immunological staining where red is the colour
>> of
>> interest. Therefore, I split the channels and use the blue labelled picture
>> and apply the function Threshold... (under Image-->Adjust-->). Then I get a
>> histogram and an automatically adjustment of the colour sensibility (?). My
>> question is what should I keep in mind when I want to compare several
>> images. Do I have to adjust always the same sensibility (from the rage of 0
>> to 255) or do I choose the automatically adjustment? My problem is, that
>> sometimes the automatically adjustment represent the quantification better
>> than the sensibility rate that I decided to use and other way around. Which
>> way is more unbiased or do I have to do a completely other procedure?
>>
>> Here I display screen shots where I document my way and may problem more
>> exemplified.
>>
>> Fig. 1 Opened a file and split the channels
>>
>> Fig. 2 Apply the function ³Threshold...² on the image labelled "blue³
>>
>> Fig. 3 Display the automatically adjustment of 228
>>
>> Fig. 4 Corrected the threshold to 180
>>
>> Fig. 5 A new image, display the automatically threshold of 222
>>
>> Fig. 6 Corrected the threshold to the undoing rate of 180
>>
>>
>> I¹m very happy if you can help me and looking forward to your answer.
>>
>> Thank you for your attention
>>
>> Best regards
>> Stephanie
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html