Login  Register

Re: getting image type (8-bit, 16-bit, etc)

Posted by Michael Elbaum on May 28, 2017; 10:55am
URL: http://imagej.273.s1.nabble.com/getting-image-type-8-bit-16-bit-etc-tp5018796p5018798.html

Thanks!
________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of Gabriel Landini [[hidden email]]
Sent: Sunday, May 28, 2017 13:32
To: [hidden email]
Subject: Re: getting image type (8-bit, 16-bit, etc)

bitDepth()
Returns the bit depth of the active image: 8, 16, 24 (RGB) or 32 (float).

On Sunday, 28 May 2017 10:26:05 BST [hidden email] wrote:
> Hi all,     I'm looking for a macro command that would return the image type
> in a window, for example 8-bit, 16-bit, RGB, etc. I want to open a stack of
> the same size and type automatically. Size is easy with getWidth,
> getHeight, and nSlices, but there doesn't seem to be a corresponding
> command for "getType". Have I missed it somewhere? thanks,
> Michael

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

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