How to split segmented object to different zones

Hi all, I have an image of plant root segmented based on contrast. I did calculate the length of the segmented root. Now I would like to mark 3 different zones on the root based on 3 different lengths from a given point. How I can do this? I thought I will define a 3 circles with 3 radiuses and retrieve the union area with the segmented root each time. But this is not good because large radius will capture another feature in the image. I think there is a way to split the segmented object in a given point. Thank you, HM

 採用された回答

Image Analyst
Image Analyst 2015 年 3 月 17 日

0 投票

You need to label your binary image and extract just the one label you want before you start masking with the circle.
labeledImage = bwlabel(binaryImage);
labelNumberThatIWant = 42; % whatever ....
desiredBinary = labeledImage == labelNumberThatIWant;

3 件のコメント

Hassan
Hassan 2015 年 3 月 17 日
Thank you, sometimes the root is curved "U" shape, so the long distance between the start and the end point of the U is much longer than the geometrical distance. In this case the radius will be very big and will include other parts of the root that are not belonging to the zone. HM
Image Analyst
Image Analyst 2015 年 3 月 17 日
My answer will still work.
Hassan
Hassan 2015 年 3 月 17 日
I will try it, Thank you, HM

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

質問済み:

2015 年 3 月 17 日

コメント済み:

2015 年 3 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by