Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 17 Aug. 2016
croppedImage = imcrop(binaryImage, [xmin-width/2, ymin-width/2, width, height]);

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by