Grayscale Image - Border detection \ Filling a specific region with a colour

2 ビュー (過去 30 日間)
Ashkan Javadzadegan
Ashkan Javadzadegan 2015 年 4 月 15 日
回答済み: Yuan Chen 2017 年 11 月 27 日
Dear all,
I have a bunch of grayscale binary images of cross sectional views of an artery (Image 1).
What I am trying to do is to detect the artery borderline, shown in red in image 2 and then digitize the detected borderline in terms of X Y values.
Or
to fill the vessel region with a colour as shown in image 3.
I would be very grateful if anyone would help me with this.
Thanks, Ashkan

回答 (2 件)

Image Analyst
Image Analyst 2015 年 4 月 15 日
Is it going to always be a perfect circle? Or can it be any crazy shape? If any shape, then can you assume it will always fall into a certain gray level range? If so, just threshold and call imfill(), then call bwboundaries().
  8 件のコメント
Ashkan Javadzadegan
Ashkan Javadzadegan 2015 年 4 月 15 日
No the vessel is the interior, and I want to make the inetrior bright. But after using the code the exterior part became bright.
I dont know how to threshold to get the interior ...
Image Analyst
Image Analyst 2015 年 4 月 15 日
Very strange. The thresholding app has two scrollbars, one for the lower threshold and one for the upper threshold. Are you saying that when you shifted them down to select a darker gray region, it still highlighted the bright regions and returned the thresholds of the bright region? I think that's highly doubtful and I will have to look into it. What were the gray levels you chose, and what were the ones that it ended up returning and thresholding the image at?

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


Yuan Chen
Yuan Chen 2017 年 11 月 27 日
a basic idea is to Canny detector to find the edge, then use the hough to find the circle.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by