Login  Register

get data type imageJ macro

Posted by PEARSON Matthew on Sep 15, 2016; 12:27pm
URL: http://imagej.273.s1.nabble.com/get-data-type-imageJ-macro-tp5017187.html

Hi all,

I'm looking for a simple way to query the data type of an opened image within the ImageJ macro language?  I had a look through the built in functions but didn't spot something i thought would be appropriate.  Within a macro i'd like to determine what the data type of the active image is e.g. 8-bit, 16-bit, RGB then the macro will do different things depending on the result.

Thanks for the help,

Matt


--
Matt Pearson
Microscopy Facility
MRC Human Genetics Unit
Institute of Genetics and Molecular Medicine (IGMM)
University of Edinburgh
Crewe Road
EH4 2XU





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

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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