Where is the source of "Process -> Binary -> Threshold"?

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

Where is the source of "Process -> Binary -> Threshold"?

panovr
Hi,
  I want to read the implementation of the "Process -> Binary ->
Threshold" command, where is the source?
  Thanks!

Yili
Reply | Threaded
Open this post in threaded view
|

Re: Where is the source of "Process -> Binary -> Threshold"?

panovr
Hi,
  it seems that the source for "Process -> Binary -> Threshold" is in
the "ij.plugin.Thresholder" class.
  What is the algorithm of this class?
  Thanks!

Yili
Reply | Threaded
Open this post in threaded view
|

Antwort: Re: Where is the source of "Process -> Binary -> Threshold"?

Joachim Wesner
HI,

I do not understand exactly what you are asking, the algorithm is the one
called from the "run" method, as with any plugin.

If you ask what the underlying principle is, it´s mentioned in the ImageJ
FAQ, it´s the so called Isodata algorithm:

http://rsb.info.nih.gov/ij/docs/faqs.html:

How does "Auto" thresholding work?
            The automatic thresholding function used by
            Image/Adjust/Threshold and Process/Binary/Threshold divides the
            image into objects and background. It does this by taking a
            test threshold and computing the average of the pixels at or
            below the threshold and pixels above. It then computes the
            average of those two, increments the threshold, and repeats the
            process. Incrementing stops when the threshold is larger than
            the composite average. That is,
                  threshold = (average background + average objects)/2
            The code in ImageJ that implements this function is the
            getAutoThreshold() method in the ImageProcessor class.


            The online Image Processing Fundamentals tutorial discusses
            thresholding techniques. ImageJ uses the Isodata algorithm.





                                                                                                                                       
                      Yili Zhao                                                                                                        
                      <[hidden email]         An:      [hidden email]                                                            
                      M>                       Kopie:                                                                                  
                      Gesendet von:            Thema:   Re: Where is the source of "Process -> Binary -> Threshold"?                  
                      ImageJ Interest                                                                                                  
                      Group                                                                                                            
                      <[hidden email]                                                                                                
                      .GOV>                                                                                                            
                                                                                                                                       
                                                                                                                                       
                      03.05.2006 04:33                                                                                                
                      Bitte antworten                                                                                                  
                      an ImageJ                                                                                                        
                      Interest Group                                                                                                  
                                                                                                                                       




Hi,
  it seems that the source for "Process -> Binary -> Threshold" is in
the "ij.plugin.Thresholder" class.
  What is the algorithm of this class?
  Thanks!

Yili



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________