Filter löschen
Filter löschen

How to fill a gap between line segments in an image

4 Ansichten (letzte 30 Tage)
I am working on raster images. How I can fill up this gap between line segments, as shown in figure below.
the raster image file is enclosed. Kindly advice.

Akzeptierte Antwort

Matt J
Matt J am 4 Jun. 2022
Bearbeitet: Matt J am 4 Jun. 2022
load gap
Irasterl=imclose(Irasterl,ones(3));
imshow(Irasterl,[])

Weitere Antworten (1)

Image Analyst
Image Analyst am 4 Jun. 2022
For single pixel gaps you can also use bwmorph with the 'bridge' option.
Irasterl = bwmorph(Irasterl, 'bridge');

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by