I am trying to display ROIs, which I added to ROIManager:
//This code runs in nested loops to add ROIs belonging to different z slice to the RoiManager. OvalRoi roi = new OvalRoi(x, y, 3, 3); roi.setStrokeWidth(2); roi.setStrokeColor(new Color(255, 255, 0)); roi.setPosition(z); OR roi.setPosition(channel, z, frame); rm.add(ij, roi, i); i++; rm.runCommand("Show All");
Then I would like to show all the ROIs only on the current slice. However, it shows all the ROIs (even with different z postition).
I can do it manually, but is there a correct and easy way to do it?