Login  Register

Re: ROI manager problems

Posted by Wayne Rasband-2 on Aug 23, 2020; 12:14am
URL: http://imagej.273.s1.nabble.com/Concentric-Circle-Formation-Slices-tp5023860p5023873.html

> On Aug 20, 2020, at 6:19 AM, Straatman, Kees (Dr.) <[hidden email]> wrote:
>
> Dear list, Wayne
>
> I came across some strange behaviour of the ROI manager when used together with Stack.setPosition. If I run the macro code below and check the ROI in the manager, I find its position is 2, 6, 1 and not at 2, 3, 1

Modify the macro to use Roi.setPosition(c,z,t) and it should work as expected.

  run("Confocal Series");
  makeOval(135, 197, 71, 72);
  Roi.setPosition(2, 3, 1);
  roiManager("Add”);

-wayne


> run("Confocal Series");
> Stack.setPosition(2, 3, 1);
> makeOval(135, 197, 71, 72);
> roiManager("Add");
>
> If I try 1, 3, 1 the resulting ROI is at 1, 5, 1.
>
> Furthermore, I noticed that 'Associate "Show All" ROIs with slices' does not seem to work.
>
> Best wishes
>
> Kees

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html