Detecting thin edges of the connected cell

1 回表示 (過去 30 日間)
Mahi
Mahi 2018 年 3 月 9 日
編集済み: Image Analyst 2018 年 3 月 17 日
Hello Everyone! I have a B/W image of a cell and want to extract a thin edges out of it. I tried imclose() but it gives the closed object. Please find the source image, target image (Image which I want) and image with imclose() operation. Yellow line in the Targetimage.jpg is the output, which I want. Thanking you in anticipation.

採用された回答

Image Analyst
Image Analyst 2018 年 3 月 9 日
First call imfill() on your source image to get rid of internal black spaces:
filledImage = imfill(sourceImage, 'holes');
Then separate the blobs with watershed. For that see Steve's blog. Attach your code if you have any problems with Steve's algorithm.
  4 件のコメント
Mahi
Mahi 2018 年 3 月 17 日
Hi Image Analyst, The method which you have suggested, worked perfectly. However, the segmentation was not the perfect, as the segmented line was the straight line. The main edge information was lost. Edge information file is attached with main_image.png in this question. Kindly guide me in this regard. Thanks.
Image Analyst
Image Analyst 2018 年 3 月 17 日
編集済み: Image Analyst 2018 年 3 月 17 日
What's wrong with a straight line? If you don't like it, use imline() or imfreehand() to manually trace out a break line.

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

その他の回答 (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