LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Imperfections in the canny edge detection

There are imperfections in the area just inside of the detected edge. I have seen this in multiple programs and am only now looking for solutions. Thank you greatly in advance.

Download All
0 Kudos
Message 1 of 5
(3,282 Views)

No edge detection algorithm is going to be perfect all the time.

 

Looks like you might be able to perform a few dilation operations to remove your artifacts in this case though.

0 Kudos
Message 2 of 5
(3,277 Views)

A dilation looses the precision of the detection. Is there no way to remove simply the artifacts?

0 Kudos
Message 3 of 5
(3,242 Views)
What sort of precision do you really need? I don't have the Vision VIs on the computer I'm at now, but there should be some configurable filter widths and thresholds on the Canny detector which you might need to adjust. You also might be able to find something in the Particle Analysis VIs which might help.
0 Kudos
Message 4 of 5
(3,231 Views)

Hi agator2,

 

To reiterate Taki1999's post, you can always threshold the image before you do an edge detection to try and get a more precise edge.  Your image looks like it is fading colors from the darker color to the lighter color.  The more you can threshold this image to more precise edges, the less imperfections you will have.  I hope this helps!

 

Kim W.

Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,198 Views)