I was trying to get binary masks of ROIs. First, I was doing it like checking all the points in the image if the point is contained by ROI. I thought it is not a proper way, so I check some code examples written in JAVA, and they are getting the masks with getProcessor method of ImageRoi. However, types of ROIs are not ImageRoi at first, they first cast it to ImageRoi.(Their code is written in JAVA). When I tried to do this in python, I couldn’t find any way to cast ROIs to ImageROIs.
I am asking that is there any way to get binary masks of ROIs?
Thanks a lot.