Hi,
You can use imcrop to crop the image. The answer in the following link gives a detailed explanation on how to crop the image around the given centriod.
Hope this helps!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!