I have a binary image with centroid and I want to crop 100 X 100 image patch from the centroid of the image. I tried using imrect command and imcrop command. But it does not give automatic extraction of that patch instead I need to drag and place the square. Please help with MATLAB code for this.
MATLAB: How to crop square of size 100 X 100 around the centroid of an image
roi extraction
Best Answer