Hi to all,
I am trying to write a function in jython (but ok, the language it is not a problem) that starting from a stack with roi assigned to slices (by setting the roi position) creates a stack where each slice is the resulting mask of the rois present at that specific slice.
Essentially, I would like to use the command this commands for each slice:
rm.runCommand(imp,"Combine"); IJ.run("Create Mask", "");
So my questions are:
- is there a function/command/plugin that already does that?
- if not, how can I check smartly which are the rois present in specific slice?
by now I’ve only found this:
that gives me a list where the rois positions are listed and I could use it… but I think that there is a more elegant way to do that.
Thank you very much,