Is it possible to find a center for a centroid and then use imcrop to find a certain size cropped area around that center

조회 수: 1 (최근 30일)
I asked a question here
I have images of cells that I have been able to find the centroids and I need crop a certain area (288 by 288 pixel area square) around this centroid's center. Not sure if this makes sense or is possible?

채택된 답변

Walter Roberson
Walter Roberson 2016년 8월 17일
croppedImage = imcrop(binaryImage, [xmin-width/2, ymin-width/2, width, height]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by