Greetings,
I am having an intermittent problem duplicating an ImagePlus within a plugin
when an PointRoi exists. I call the duplicate method on the ImagePlus object
while a PointRoi exists, and the majority of the time the duplicate completes
successfully. processAndDisplay calls ImagePlus.duplicae() after a
GenericDialog.show(), and not in response to a widget change. (reaction to roi
creation is being handled in this program, albeit, no modification to the rois
is being done programatically) ImagePlus.duplicate() deletes the current roi
before calling Duplicator.run to duplicate the imageplus; so I do not know how
I would be able to do any better at preventing crop/cropRoi from being called.
Thanks in advance,
Fred
ImageJ 1.52b33; Java 1.8.0_91 [64-bit]; Linux 4.5.5-300.fc24.x86_64; 1496MB of
3641MB (41%)
java.lang.IllegalArgumentException: Selection is outside the image
at ij.plugin.Duplicator.cropRoi(Duplicator.java:581)
at ij.plugin.Duplicator.run(Duplicator.java:187)
at ij.ImagePlus.duplicate(ImagePlus.java:2056)
at Fuzzy_C_Means.processAndDisplay(Fuzzy_C_Means.java:127)
at Fuzzy_C_Means.run(Fuzzy_C_Means.java:45)
at ij.plugin.PlugInExecuter.runCompiledPlugin(Compiler.java:323)
at ij.plugin.PlugInExecuter.run(Compiler.java:312)
at java.lang.Thread.run(Thread.java:745)
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html