Posted by
Avital Steinberg on
Mar 05, 2017; 1:13pm
URL: http://imagej.273.s1.nabble.com/problem-with-roiManager-Set-Color-color-tp5018225p5018226.html
Hi Aryeh,
I am using Fiji version 1.51j8 java 1.8.0_66 (64 bit) on a mac OS X El
Capitan version 10.11.6.
I tried to regenerate your bug but I couldn't. I recorded the following
script and then ran it with no problem:
newImage("Untitled", "8-bit ramp", 2000, 2048, 1);
//setTool("oval");
makeOval(633, 270, 228, 156);
run("ROI Manager...");
roiManager("Add");
roiManager("Select", 0);
roiManager("Set Color", "yellow");
roiManager("Set Line Width", 0);
I hope someone figures it out,
Avital
On Sun, Mar 5, 2017 at 2:44 PM, Aryeh Weiss <
[hidden email]> wrote:
> If I run an macro with the following one command:
>
> roiManager("Set Color", "yellow");
>
> I get the following error:
>
> java.lang.NullPointerException
> at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283)
> at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032)
> at ij.macro.Functions.roiManager(Functions.java:2772)
> at ij.macro.Functions.getFunctionValue(Functions.java:230)
> at ij.macro.Interpreter.getFactor(Interpreter.java:1385)
> at ij.macro.Interpreter.getTerm(Interpreter.java:1356)
> at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496)
> and a bunch more output.
>
> Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit)
> MacOS 10.12.3
>
> --aryeh
>
> --
> Aryeh Weiss
> Faculty of Engineering
> Bar Ilan University
> Ramat Gan 52900 Israel
>
> Ph: 972-3-5317638
> FAX: 972-3-7384051
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html