How can I remove edge line from this binary image?

9 ビュー (過去 30 日間)
Rinrada Tanthanathewin
Rinrada Tanthanathewin 2021 年 7 月 1 日
回答済み: Salman Ahmed 2021 年 8 月 31 日
From this image, I want to delete the top and bottom lines.
I want to focus on the spots and dots at the area between the top and bottom line.
The area that i mark, are the parts that i want to remove.
Can anyone tell me how to do this?
  1 件のコメント
Yongjian Feng
Yongjian Feng 2021 年 7 月 1 日
Those two so-called lines are not well-defined.

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

回答 (1 件)

Salman Ahmed
Salman Ahmed 2021 年 8 月 31 日
Hi Rinrada,
You can use morphological operations available to reduce the effect of lines in your image. Refer to the code snippet below for one such operation. You can change the size and shape of the structuring element SE to balance between how much line and dot information you wish to retain. Hope it helps.
% Let I2 be your image
SE=strel('disk',2);
I3=imopen(I2,SE);
I4=I2-I3;
imshow(I4);

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by