フィルターのクリア

Matlab: Extracting a ROI with center coordinates

3 ビュー (過去 30 日間)
berkaoui sara
berkaoui sara 2014 年 9 月 24 日
コメント済み: berkaoui sara 2014 年 9 月 24 日
I have a mammographic image of size 1024 x 1024, and I have the center coordinates of the anomaly (338.314) and the radius (56) in pixels of the circle containing the anomaly. I desire to extract a region of interest of size 128 * 128 including the anomaly. I tried with
rect = [338-64,314-64,127,127]; crop = imcrop (img, rect) ; but I obtien an ROI that does not contain the desired anomaly. any suggestions please.

採用された回答

Image Analyst
Image Analyst 2014 年 9 月 24 日
Are you sure you're getting row, column correctly matched up with x,y? Remember x,y is column, row, NOT row, column. Try
rect = [314-64, 338-64,127,127];
and see if that fixes it.
  11 件のコメント
Image Analyst
Image Analyst 2014 年 9 月 24 日
And what about the big black block on the left edge of the image. Can you answer my question about that?
berkaoui sara
berkaoui sara 2014 年 9 月 24 日
I really do not know obout the area in black, they specified anything, as I mentioned I only have the pictures and the info file that I attached

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by