Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI - "Find Straight Edge"

Anybody can explain what the settings "Kernel Size" and "Projection Width" means?

Why does it matter? What are the recommended values?

0 Kudos
Message 1 of 3
(3,844 Views)

Hi

The kernel size can be thought of as the number of pixels down the line you are looking along that the edge must occur over. If you have a crisp clear edge (goes white(255) to black(0) in 1 pixel) then you can have a kernel size of one. This will never happen in real life as the image edge boundary will never line up with the pixel boundary in the camera and lighting will also play a part. Increase this if the edge takes several pixels for the change to happen.

Projection width is the number of lines that you are looking along. If you have an imperfect edge, maybe a stamped part, then this will need to be larger to cope with the irregularities in the edge. Do not make this too big as if the lines you look along are not perpendicular to the edge you are finding this will return different positions and confuse your edge.

Unfortunately there are no ideal values to pick as this is entirely dependent on lighting, optics and the part you are looking at. Hopefully my comments will make it easier for you to understand what effects these settings will have on your application

 

Mike

0 Kudos
Message 2 of 3
(3,829 Views)

Hi Mike,

Ok I understand the kernel part.

But not the projection width, could you please explain with an illustration?

TIA

0 Kudos
Message 3 of 3
(3,816 Views)