|
Hello,
My plugin implements ImageListener, so in the run(...) method I call
ImagePlus.addImageListener(this);
I have only implemented imageOpened(...) and imageClosed(...) methods,
imageUpdated(...) is empty.
I would like to display updated image after each iteration, so I call
updateAndDraw()
in my algorithm. It turns out that everything works fine without my GUI code
(that implements PlugIn and ImageListener), i.e.
new ImageJ();
//here I use Opener class to open my images
//here I call my algorithm (it is a separate class, not the GUI)
But, when I do the following (or when I use Plugins menu to run the plugin)
new ImageJ();
IJ.runPlugIn("my_plugin", null);
not only the image is not updated after each iteration, but
also the progress bar doesn't show up at all.
Here is my configuration:
Win XP SP2
Java 1.6.0_03
ImageJ 1.39p
Piotr
|