Auotmatic thresholding

classic Classic list List threaded Threaded
6 messages Options
Elizabeth Nickless Elizabeth Nickless
Reply | Threaded
Open this post in threaded view
|

Auotmatic thresholding

Auotmatic thresholding

I have a question regarding thresholding.  Do users have much success with automatic thresholding of  samples?  We have Image Pro Plus and anlayse samples with variable size ranges and signal intensities.  We manually threshold very carefully with enhancement features but it would be nice for this to be done automatically with a robust method but I am not sure how to do this and be confident with the results.

DISCLAIMER:
This email contains confidential information and may be legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender immediately and destroy this email.
You may not use, disclose or copy this email or its attachments in any way.
Any opinions expressed in this email are those of the author and are not necessarily those of the Fonterra Co-operative Group.
http://www.fonterra.com/

Chris Tully Chris Tully
Reply | Threaded
Open this post in threaded view
|

Re: Auotmatic thresholding

Disclaimer: Although I no longer work for Media Cybernetics or any of their dealerships, I have worked for Media Cybernetics and two of their dealers in the past, in addition to using Image-Pro Plus in my own research.

Image-Pro Plus' (IPP) automatic threshold is based on the theory that the image is a roughly bimodal distribution of pixels between object and back ground.  There is no requirement that their be equal numbers of pixels in each class, I have seen the algorithm work on images that have very few (> 10% of pixels in one class).  However, I have also seen it fail on images that to my eye have a beautifully bimodal histogram...  With that said I have been doing microscopy and image analysis for myself and customers since 1992 and have always noticed that manual thresholding is highly variable by user and by processing methods (e.g. a slightly stronger contrast setting one day than the next).  With that in mind I alway urge a client to try the auto threshold first.  If it works, great!  If not, then we need to look at how and why it failed.  One of the most common causes of failure is a non-uniform background.  To address this, IPP offers two options:

1) The Flatten Background filter (Process|Filters...|Enhance|Flatten or Image|Flatten Background from the Count?size dialog's menu bar).  This filter attempts to derive a background from the image itself by reducing and massively smoothing the image to remove objects and then enlarging the result to the image's original size.  This is then used as the background image in a Background Correction operation (see Process|Background Correction...|Background Correction).  This will work well on some images (e.g. the Spots.tif sample image) and not so well on others.  In any case it may be the only choice if you have not captured a background image.

2) Background Correction (Process|Background Correction...)  This dialog offers two methods Background Correction and Background Subtraction.  See Help for the exact equations used in each method.  Background Correction is the most relevant to most failures of Auto Threshold.  To capture the background, first focus on your sample and then find a field of view on the coverslip that is free of sample and dust, but does have mounting medium.  Do not defcous if you can avoid it - doing so can lead to artifacts in the corrected image.

If Background Correction (either method) helps, then you are golden.  If not it is instructive to test auto thresholding on several images (at least 10-20) both as acquired and background corrected.  You want to look at two things:

1) Does background correction alter the mode of failure?  Or is the failure on corrected images less acute?
2) In either case (as acquired or corrected) is the failure consistent across all or most of the test images?

You may conclude that it is worth while to go back and acquire new images with backgrounds (keep in mind that the background images is highly dependent on lighting conditions [lamp voltage and iris settings], and so really should be captured at the same time, or at least in the same session as the sample images). 

Another possibility is that the knowledge obtained from the above activities and your previous work manually thresholding images will give you enough knowledge about your samples and images to develop a specialized automatic thresholding macro.  In particular, you really have to carefully document the manual enhancements you use for each image and the thought process that goes into each manual threshold.  There is a reasonable probability that with a little bit of thought about your acquisition methods and your enhancement and analysis methods that you can come up with an automatible process.

If you would like to discuss this in further detail, please feel free to contact me directly.

Getting back to your original comments, I understand that it is not always possible to capture images with consistent settings, but I would urge you to carefully examine your acquisition methods.  Anything that you can do to improve the consistency of your acquisition methods will go a long way towards simplifying your analysis tasks.  Variations in magnification should not have any significant effect on the ability of IPP's auto threshold to pick out objects.

Chris Tully
Microscopy and Image Analysis Expert
[hidden email]
240-888-1021
http://www.linkedin.com/in/christully


On Sun, Jun 21, 2009 at 9:28 PM, Elizabeth Nickless <[hidden email]> wrote:

I have a question regarding thresholding.  Do users have much success with automatic thresholding of  samples?  We have Image Pro Plus and anlayse samples with variable size ranges and signal intensities.  We manually threshold very carefully with enhancement features but it would be nice for this to be done automatically with a robust method but I am not sure how to do this and be confident with the results.

DISCLAIMER:
This email contains confidential information and may be legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender immediately and destroy this email.
You may not use, disclose or copy this email or its attachments in any way.
Any opinions expressed in this email are those of the author and are not necessarily those of the Fonterra Co-operative Group.
http://www.fonterra.com/


Jeremy Adler-2 Jeremy Adler-2
Reply | Threaded
Open this post in threaded view
|

Re: Auotmatic thresholding

In reply to this post by Elizabeth Nickless
Auotmatic thresholding

Thresholding is an example of where the user can bias the measurement, an equally important issue is which, of all the possible images,  are selected for analysis.

 

Solutions include

1)       blinding – the user is unaware of the experimental source of the images at both the acquisition and analysis stages. It is also worth mixing up the different experimental images to avoid any bias caused by drift in the users technique. While this does not eliminate bias introduced by individual users it does reduce the influence of an individual user over a whole dataset.

2)       declaring and publishing clear criteria by which cells were selected/rejected.  This is especially important when single images are published without any supporting measurements. In 10 000 cells you can find pretty much anything.

 

Dr Jeremy Adler

F451a

Cell Biologi

Wenner-Gren Inst.

The Arhenius Lab

Stockholm University

S-106 91 Stockholm

Sweden

tel +46 (0)8 16 2759


From: Confocal Microscopy List [mailto:[hidden email]] On Behalf Of Elizabeth Nickless
Sent: den 22 juni 2009 02:28
To: [hidden email]
Subject: Auotmatic thresholding

 

I have a question regarding thresholding.  Do users have much success with automatic thresholding of  samples?  We have Image Pro Plus and anlayse samples with variable size ranges and signal intensities.  We manually threshold very carefully with enhancement features but it would be nice for this to be done automatically with a robust method but I am not sure how to do this and be confident with the results.

DISCLAIMER:
This email contains confidential information and may be legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender immediately and destroy this email.
You may not use, disclose or copy this email or its attachments in any way.
Any opinions expressed in this email are those of the author and are not necessarily those of the Fonterra Co-operative Group.
http://www.fonterra.com/

Gabriel Lapointe Gabriel Lapointe
Reply | Threaded
Open this post in threaded view
|

Re: Auotmatic thresholding

In reply to this post by Elizabeth Nickless
Hi Elizabeth,
I totally agree with Jeremy, manually thresholding the image is a very good way to get biased data. I don't use IPP so I can't comment on how you can do it in that particular package.

However, thanks to Gabriel Landini, as of 1.42p, ImageJ now have 16 different automatic thresholding algorithms. It is likely that one of them will fit your needs. More information can be found here http://pacific.mpi-cbg.de/wiki/index.php/Auto_Threshold . Maybe it is possible to port them to IPP

Gabriel Lapointe

Elizabeth Nickless wrote:
Auotmatic thresholding

I have a question regarding thresholding.  Do users have much success with automatic thresholding of  samples?  We have Image Pro Plus and anlayse samples with variable size ranges and signal intensities.  We manually threshold very carefully with enhancement features but it would be nice for this to be done automatically with a robust method but I am not sure how to do this and be confident with the results.

DISCLAIMER:
This email contains confidential information and may be legally privileged. If you are not the intended recipient or have received this email in error, please notify the sender immediately and destroy this email.
You may not use, disclose or copy this email or its attachments in any way.
Any opinions expressed in this email are those of the author and are not necessarily those of the Fonterra Co-operative Group.
http://www.fonterra.com/

B. Prabhakar Pandian B. Prabhakar Pandian
Reply | Threaded
Open this post in threaded view
|

Clean slide storage

In reply to this post by Chris Tully
Hello:
            Can anybody provide suggestions on how to store cleaned
slides. I have tried to look at storage boxes, but they all have some
sort of paper or cork in them. I am looking for something
made of plastic so that the slides don't pick up lint from the box itself.

Thanks,

-Prabhakar
Keith Morris Keith Morris
Reply | Threaded
Open this post in threaded view
|

Re: Clean slide storage

We simply store our cleaned slides in stainless steel racks within the
glass tanks the slides were originally cleaned in [see recent slide
cleaning discussions on the confocal listserver]. Our tanks have stainless
steel lids, thick glass otherwise. The internal stainless steel racks hold
50 slides. We have three tanks, and as the last cleaned slide is used up
in one tank, we move to another, with 50 new slides then batched cleaned
through the empty tank to replace them. The slide detergent then acid then
ethanol [x2] cleaning wash process cleans the racks and tanks as well as
the slides, and the cover prevents any dust getting in after the slides
are dried when the last ethanol wash is poured off. Our slide racks/tanks
are years old, but similar ones seem to be:

Slide rack:
http://www.tedpella.com/glasswar_html/slidedsh.htm
Item: 21058
Staining Dish 50-Slide Unit, with Cover
Slotted rack holds 50 microscope slides, sizes 3 x 1"

Keith


-----------------------------------------------------------------

Dr Keith J Morris
Molecular Cytogenetics and Microscopy Core
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom

Tel:  +44   ( 0 ) 1865  287568
Email:   [hidden email]
HomePage:  http://www.well.ox.ac.uk/cytogenetics





> Hello:
>             Can anybody provide suggestions on how to store cleaned
> slides. I have tried to look at storage boxes, but they all have some
> sort of paper or cork in them. I am looking for something
> made of plastic so that the slides don't pick up lint from the box itself.
>
> Thanks,
>
> -Prabhakar
>