How do to remove section of a defined path (skeleton)?

6 ビュー (過去 30 日間)
Julián Mauricio Ruiz Echeverri
Julián Mauricio Ruiz Echeverri 2019 年 9 月 28 日
Hi, I want to remove the areas that are inside the circles. I had tried it using some structurant (using morphological operations as the erode )element but I don't get the goal . This is that I have :
im=imread('dos.bmp');
>> im=rgb2gray(im);
>>figure, imshow(im)
>> er=imerode(im,B);
>> imshow(er);
dos.bmp..dos_edit.bmp ero.bmp

採用された回答

darova
darova 2019 年 9 月 28 日
Try my script
  3 件のコメント
darova
darova 2019 年 10 月 29 日
Sometimes spures are short and circel region is small
There is a line in the code that reduces circle region
msk = bwmorph(msk,'thin',1); % reduce circle mask
If the region has 2 pixels (long) and the region is reduces then area is 0 (has no area)
123.png
So i just added this condition
if ~isempty(ar)
Try now
Julián Mauricio Ruiz Echeverri
Julián Mauricio Ruiz Echeverri 2019 年 10 月 30 日
Thank you !

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by