フィルターのクリア

I have a centroid(x,y) of object in image..How to extract patch from image around centroid

1 回表示 (過去 30 日間)
Tahir
Tahir 2015 年 3 月 11 日
コメント済み: Image Analyst 2015 年 3 月 13 日
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.

回答 (1 件)

Image Analyst
Image Analyst 2015 年 3 月 11 日
subImage = grayImage(row1:row2, column1:column2);
or you can use imcrop().
  4 件のコメント
Tahir
Tahir 2015 年 3 月 13 日
No i just know the centroid co-ordinates... centre(x,y) value.
Image Analyst
Image Analyst 2015 年 3 月 13 日
Then use simple math
row1 = int32(y - 40);
row2 = row1 + 79;
column1 = int32(x - 40);
column2 = column1 + 79;
subImage = rgbImage(row1:row2, column1:column2, :);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by