Login  Register

Re: imageID list in macro

Posted by Gabriel Landini on Dec 22, 2005; 7:50pm
URL: http://imagej.273.s1.nabble.com/Image-Gradient-tp3704168p3704172.html

On Thursday 22 December 2005 19:38, Soichiro Yamada wrote:
> I am writing a macro that uses two images.  In Dialog window, I would
> like an option for the users to choose two images from open windows.
> To do this I need to know the image IDs of images that are currently
> open. I could not find a build-in macro function to do this. It would
> be an equivalent of windowManager.getIDList().  Any help?
>

You could loop from 1 to nImages, to selectImage(i), get their title and put
it into an array.

Cheers,

Gabriel