I have a centroid(x,y) of object in image..How to extract patch from image around centroid
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, There are objects( nucleus) in an image.i have the centre(x,y) values of objects ...I want to extract patches from image around the center...The patch center will be the center(x,y) of object. Please help.
0 Kommentare
Antworten (1)
Image Analyst
am 11 Mär. 2015
subImage = grayImage(row1:row2, column1:column2);
or you can use imcrop().
4 Kommentare
Image Analyst
am 13 Mär. 2015
Then use simple math
row1 = int32(y - 40);
row2 = row1 + 79;
column1 = int32(x - 40);
column2 = column1 + 79;
subImage = rgbImage(row1:row2, column1:column2, :);
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!