Login  Register

Re: 16bit binary

Posted by Gabriel Landini on Mar 31, 2014; 3:26pm
URL: http://imagej.273.s1.nabble.com/16bit-binary-tp5007140p5007151.html

 On Mon, Mar 31, 2014 at 12:21 AM, Benito Alarcon <[hidden email]>wrote:
> Dear all, in order to operate between 16bit images we would need to get a
> binary image. The binary that we obtain in ImageJ is a 8bit. Is it
> possible to get a 16bit binary which values were 0 and 65535?.

Yes you can. I am assuming that your image is background 0 and foreground 255.

Convert to 16bit
Multiply it by 65535.
Of course the multiplication overflows the max value held in a 16 bit image,
but it is clipped and you end up with background 0 and foreground 65535.

Regards

Gabriel

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