Help with ROi Manager

Dear all,
I have a simple question I think…

I need select a group of ROis in RM and delete these group of RM. I show an example.

example
roiManager(“Select”, newArray(0,1,2,3,4,5,6));
roiManager(“Delete”);

THIS WORKS.

Now I need to do de same but i want to select from i to nr
where i=0 and nr is nr=nResults;
so my idea was write roiManager(“Select”, newArray(i,nr)); this only selec first and last ROIs
roiManager(“Select”, newArray(i:nr));
roiManager(“Select”, newArray(i;nr));
none of this comands works

se agradece alguna idea!!!

Happy Quarantine!!!

Hi
@nacho37

And this?
Array.getSequence(n) - Returns an array containing the numeric sequence 0,1,2…n-1.

n=roiManager("count");
a=Array.getSequence(n);
roiManager("select", a);
1 Like

Thanks!!! :sweat_smile: