MATLAB: Select particular region of image without imcrop

Image Processing Toolboxselect roi in image

I'm attaching a point of care test strip image link, I want to select the rectangle portion containing control and test line for processing, How to automatically select roi without imcrop?

Best Answer

You can use rbbox() or imrect(). Or try to find it automatically.