I have a z-stack (about 20 slices). I am looking for some help to write a macro where I would like to create an ROI (polygon) in the first image of the z-stack and “clear outside” of this ROI. Now I move to the next image of the stack where I would like to create another ROI which is 10 pixels wider than the first ROI and clear outside again and would like to continue doing this till the end of the stack. Has anyone done something similar to this in the past with the help of a macro? Any help would be greatly appreciated!