ImageProcessor Pixel Watcher
Posted by kacollins on Nov 29, 2010; 8:29am
URL: http://imagej.273.s1.nabble.com/ImageProcessor-Pixel-Watcher-tp3686338.html
I am writing a plugin and need to perform some actions when one or more pixel values have changed in an ImagePlus/ImageProcessor. I have experimented with the imageUpdated method of ImageListener, but this listener seems to respond to other actions related to an image in addition to pixel changes. For instance, imp.updateAndDraw() causes imageUpdated to run 5 times. I also have other image elements that are part of the frame that contains the ImageProcessor/ImagePlus and changes to those pixels cause imageUpdated to run as well.
Any ideas on how to be notified if and only if pixels of an ImageProcessor/ImagePlus have changed?
Thanks in advance,
Karen