Login  Register

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

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

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