Re: getting image type (8-bit, 16-bit, etc)
Posted by
Gabriel Landini on
May 28, 2017; 10:32am
URL: http://imagej.273.s1.nabble.com/getting-image-type-8-bit-16-bit-etc-tp5018796p5018797.html
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