How to select rectangle ROI in the image and adjust the position of ROI manually. Then it can return the adjusted ROI position
8 views (last 30 days)
I can generate roi using images.roi.Rectangle function, but it is easy to be time-consuming during the adjustment process.
Is there any way to write that allows me to manually adjust the roi size and position in the image, and return the pixel value of the roi adjusted position
I = imread('rice.png'); % your input image
roi = images.roi.Rectangle(gca,'Position',[80,45,80,100]);