Posted by
Eric Leroy-2 on
Feb 17, 2011; 6:05pm
URL: http://imagej.273.s1.nabble.com/Problem-with-plugin-3-points-ROI-tp3685654.html
Hello
I included the plugin from G Landini called 3 points ROI into a macro to
measure bubbles. The macro is :
macro "3Points [F6]" {
run("ThreePointCircularROI ");
run("Measure");
//run("Select None");
}
My problem is that the macro works for one or two points and after it
crashes and I have the following message :
java.lang.NullPointerException
at ij.ImagePlus.setRoi(ImagePlus.java:1325)
at ij.ImagePlus.setRoi(ImagePlus.java:1302)
at ij.ImagePlus.setRoi(ImagePlus.java:1336)
at ij.ImagePlus.setRoi(ImagePlus.java:1331)
at ij.IJ.makeRectangle(IJ.java:935)
at ThreePointCircularROI_.getPoint(ThreePointCircularROI_.java:59)
at ThreePointCircularROI_.run(ThreePointCircularROI_.java:34)
at fiji.scripting.java.PlugInExecutor.tryRun(PlugInExecutor.java:144)
at fiji.scripting.java.PlugInExecutor.tryRun(PlugInExecutor.java:102)
at fiji.scripting.java.PlugInExecutor.run(PlugInExecutor.java:83)
at fiji.scripting.java.PlugInExecutor.run(PlugInExecutor.java:77)
at fiji.scripting.java.PlugInExecutor.run(PlugInExecutor.java:73)
at fiji.scripting.java.Refresh_Javas.runPlugin(Refresh_Javas.java:339)
at
fiji.scripting.java.Refresh_Javas.compileAndRun(Refresh_Javas.java:126)
at fiji.scripting.java.Refresh_Javas.runScript(Refresh_Javas.java:70)
at common.RefreshScripts.run(RefreshScripts.java:266)
at fiji.scripting.java.Refresh_Javas.run(Refresh_Javas.java:60)
at ij.IJ.runUserPlugIn(IJ.java:183)
at ij.IJ.runPlugIn(IJ.java:150)
at ij.Executer.runCommand(Executer.java:124)
at ij.Executer.run(Executer.java:61)
at ij.IJ.run(IJ.java:249)
at ij.IJ.run(IJ.java:227)
at ij.macro.Functions.doRun(Functions.java:563)
at ij.macro.Functions.doFunction(Functions.java:79)
at ij.macro.Interpreter.doStatement(Interpreter.java:203)
at ij.macro.Interpreter.doBlock(Interpreter.java:518)
at ij.macro.Interpreter.runMacro(Interpreter.java:130)
at ij.macro.MacroRunner.run(MacroRunner.java:126)
at java.lang.Thread.run(Thread.java:680)
Does anybody have an idea of the problem?
Thank you
--
___________________________________________
Eric Leroy
Ingénieur de recherche
Institut de Chimie des Matériaux Paris-Est
UMR 7182 - CNRS - Paris 12
2/8, rue Henri Dunant
94320 THIAIS
Mél :
[hidden email]
Tél : 01.49.78.12.09
Fax : 01.49.78.12.03