Re: Counting pixels above a certain grey value in a stack
Posted by dscho on Dec 04, 2007; 1:42pm
URL: http://imagej.273.s1.nabble.com/Counting-pixels-above-a-certain-grey-value-in-a-stack-tp3691747p3691749.html
Hi,
On Tue, 4 Dec 2007, Bio7 wrote:
> public class Count_Stack_Pixels implements PlugIn {
If you implement a PlugInFilter (which returns DOES_8G | DOES_16 |
NO_CHANGES in setup()) you do not need to find out the current image
or check the image type yourself.
> /*We create a dialog!*/
> GenericDialog gd = new GenericDialog("Count Pixels");
> gd.addNumericField("Min: ", min, 0);
> gd.addNumericField("Max: ", max, 0);
You could reuse the min/max setting from the threshold.
Ciao,
Dscho