How to extract image region within boundary

2 ビュー (過去 30 日間)
Ynne
Ynne 2017 年 1 月 7 日
コメント済み: Image Analyst 2018 年 6 月 27 日
Hi, I have to segment the LV from cardiac MRI. The output is an image with a boundary for the specified region (attached image). My question is how can i get only the region within the boundary. how to set the inside of the boundary to 1 and 0 for the rest for a binary image.
Thanks in advance.

採用された回答

Image Analyst
Image Analyst 2017 年 1 月 7 日
It sounds like you have already identified the blue boundary somehow, because your question does not ask how to get the boundary in the first place. So, having the boundary, you should have an ordered list of x,y coordinates for it. So then, to create a mask that is 1 inside of the boundary and 0 outside the boundary, use poly2mask():
[rows, columns, numberOfColorChannels] = size(grayImage);
mask = poly2mask(x, y, rows, columns);
  10 件のコメント
Ahmad Ridzuan Kudus
Ahmad Ridzuan Kudus 2018 年 6 月 27 日
But how to extract multiple regions with boundary on an image?
Image Analyst
Image Analyst 2018 年 6 月 27 日
You use image segmentation. See my Image Segmentation Tutorial on my File Exchange https://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc

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

その他の回答 (1 件)

Stalin Samuel
Stalin Samuel 2017 年 1 月 7 日
If you complete the segmentation part probably you will have the information's of circular boundary Once you get the information you can do the remaining stuffs by referring here

カテゴリ

Help Center および File ExchangeAgriculture についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by