Notification when next image is open

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

Notification when next image is open

Jarek Sacha-2
I am writing a plugin for manual analysis of images. Images from a
directory are loaded using "Open Next". When the next image is laded I
would like to clear overlays and prepare for new analysis.

Is there a way to get notification when new image is loaded using
"File>Open Next". If an image is opened using "File>Open" ImagePlus
issues notification through ImageListener#imageOpened. I thought that
ImageListener#imageUpdated will be used with "File>Open Next", but it is
not called. Is there any other way to do it?

Thanks

Jarek


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Notification when next image is open

Rasband, Wayne (NIH/NIMH) [E]
On Dec 19, 2012, at 9:40 AM, Jarek wrote:

> I am writing a plugin for manual analysis of images. Images from a
> directory are loaded using "Open Next". When the next image is laded I
> would like to clear overlays and prepare for new analysis.
>
> Is there a way to get notification when new image is loaded using
> "File>Open Next". If an image is opened using "File>Open" ImagePlus
> issues notification through ImageListener#imageOpened. I thought that
> ImageListener#imageUpdated will be used with "File>Open Next", but it is
> not called. Is there any other way to do it?

This bug is fixed in the ImageJ 1.47h daily build. You can verify that the bug is fixed by running Plugins>Utilities>Monitor Events, opening an image and repeatedly pressing shift-o (File>Open Next).

-wayne

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