Login  Register

Re: Check for post-threshold binary image

Posted by Gabriel Landini on Apr 14, 2009; 2:29pm
URL: http://imagej.273.s1.nabble.com/Check-for-post-threshold-binary-image-tp3692956p3692960.html

On Tuesday 14 April 2009, Michael Doube wrote:
> Hi all,
>
> I'm looking for a short bit of Java that will check to see if an image
> is binary (result of Adjust->Threshold->Apply) or not. Just checking bit
> depth and making sure that pixel values are 0 or 255 is not quite enough
> because

Oops I sent the message before finishing reading that checking the histogram
is not enough...

Can't you check before the gePixels?

Cheers

G.