how to fill in the image by connecting every point in the image in a bw image

조회 수: 1 (최근 30일)
Jiajun Tian
Jiajun Tian 2020년 4월 14일
댓글: Jiajun Tian 2020년 4월 14일
I have images like following
I'd like to connect every point with every point on this image so that I am able to fill in the gap on top left conor. How do I manage to do this. Or is there any better way?
for the 1st image, I'd like the result to be like

답변 (1개)

Jamal Nasir
Jamal Nasir 2020년 4월 14일
%%%%%%%%%%%% you can use Morphlogical operation
%%%%%%%%%% using sphere with your tested redius after fiil it
se=strel('sphere',10);
imr=imopen(im,se);
  댓글 수: 1
Jiajun Tian
Jiajun Tian 2020년 4월 14일
thanks for answring,
This method works fine with relatively small gap like I gave in the question but not very well on the image with a larger gap like the follwoing one. is there anyway to sovle this? Many thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by