Re: Extracting information with getImageInfo()
Posted by
Michael Schmid on
Sep 17, 2013; 4:10pm
URL: http://imagej.273.s1.nabble.com/Extracting-information-with-getImageInfo-tp5004822p5004831.html
Hi Gareth,
you can try
getInfo("NumofWavelengthes");
If it is a number, do ParseInt or ParseFloat on the result.
Michael
________________________________________________________________
On Sep 17, 2013, at 14:55, Gareth Howell wrote:
> Hi I am trying to extract information from the getImageInfo() command.
> How can I obtain, for instance the number of channels in an image. I am
> using the Deltavision Opener plugin, which opens all the images in a
> multicolour dataset as a single stack but the channel number is within the
> image info. If i getImageInfo() the channel number are displayed on the line
> "NumofWavelengthes: 3". How can i get this number '3' to put into the rest
> of the macro as a variable? I feel i'm missing something obvious, sorry!
>
> Thanks
>
>
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Extracting-information-with-getImageInfo-tp5004822.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html