Re: ImageJ macro question.
Posted by
Peter Haub on
May 17, 2016; 9:12pm
URL: http://imagej.273.s1.nabble.com/ImageJ-macro-question-tp5016450p5016451.html
Hello Lai,
your tmp must be an array of numbers - not a string.
Omit the quotation marks in your second example:
tmp = newArray(0,3,5);
roiManager("Select", tmp);
Peter
On 17.05.2016 22:59, Lai Ding wrote:
> Hello Everyone,
>
> I have a question regarding the macro programming on roiManager function.
>
> if I wan to select specific group of ROIs in the roiManager, I can use line below
>
> roiManager("Select", newArray(0,3,5));
>
> this selects the 1st, 4th and 6th ROIs in the roiManager.
>
> however if I want to generate the specific groups through other functions, I don't know how to do it.
>
> I tried use lines below
>
> tmp = "newArray(0,3,5)";
> roiManager("Select", tmp);
>
> it doesn't work.
>
> Thanks
> Lai
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html