MATLAB: I extract the ROI as separate image? in other words, i want to extract the polygon selection as separate image?? My Roi is in the link and highlighed and i want that ROI as separate image

Image Processing Toolboxroi

i extract the ROI as separate image?

Best Answer

You have to get the bounding box from your polygon using max() and min(). Then simply use imcrop() to get a cropped image, followed by imwrite() if you want to save it to disk.
Related Question