I have a sequence of images. Number of the images does not matter. All I want to do is opening the first image and determine a rectangular region of interest (both position and size). Later on I wan to close current image and record the position and size values of rectangle region of interest. After that I want to crop whole sequence with respect to determined rectangle.
That part of code in my mind is given below
ROI=[x,y,x1,y1]; % I need to determine this rectangle on current and opened image.
In short, I want to determine x, y, x1, and y1 by manually on a sample image and crop the entire sequence by using ROI.
Thank you in advance.