Get Image type in a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Get Image type in a macro

lechristophe
Hi everyone,

I would like to know if there is a macro function that returns the type
(8-bit, 16-bit, RGB, etc...) of the active image. I can get it by
spitting "Image Info" to retrieve it but I would be very surprized if
there is not a direct function for that. Unfortuntely my eyes are still
a bit closed on this monday morning and I can't find it on the macro
reference page...

Thank you very much,

Christophe Leterrier


PS/ Thanks a lot to Jerome Mutterer and Johannes Schindelin for their
macros (that streamline an iterative name using zeros) !
Reply | Threaded
Open this post in threaded view
|

Re: Get Image type in a macro

Michael Cammer
bitDepth()

e.g.

if (bitDepth() != 8) exit ("8 bit image required.");


> Hi everyone,
>
> I would like to know if there is a macro function that returns the type
> (8-bit, 16-bit, RGB, etc...) of the active image. I can get it by
> spitting "Image Info" to retrieve it but I would be very surprized if
> there is not a direct function for that. Unfortuntely my eyes are still
> a bit closed on this monday morning and I can't find it on the macro
> reference page...
>
> Thank you very much,
>
> Christophe Leterrier
>
>
> PS/ Thanks a lot to Jerome Mutterer and Johannes Schindelin for their
> macros (that streamline an iterative name using zeros) !
>


_________________________________________
Michael Cammer   http://www.aecom.yu.edu/aif/