MATLAB Answers

0

Edge detection and filling

Asked by Federico Uribe on 5 Sep 2019
Latest activity Commented on by Federico Uribe on 6 Sep 2019
I have an image and im trying to get the edges and filled the spaces, I have been trying with imfill, but the issue is that when i use the function edge, it doesn't detect the sides, any ideas on how to do it? thanks
this is the image
Captura.PNG
and i need it to be like this
Captura2.jpg

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 5 Sep 2019

I'd try adaphisteq() to flatten the shading across the image. Then use a global threshold, then call imfill().

  1 Comment

Thank you Analyst, I just try it and I´m getting a better image, really close to what im looking for, however im still mising a little bit on the side and getting some pixels that are nos supposed to be on the image, should I'm using bwareaopen to get rid of them, but at the same time I´m losing some pixels on the side.
Thanks

Sign in to comment.