I have a .tif file which is a stack. Each slice has a different overlay. How can I get an overlay from one slice? I tried getting the overlay and then cropping it: (there are 9 slices and I want slice 1, for example)
sliceOvr = imp.getOverlay();
var sliceOvrSize = sliceOvr.size();
The problem is that the number of ROIs in the overlay remained the total number of ROIs from all of the overlays of all of the slices. How can I get the overlay from only the slice I’m interested in?