Machine Vision

取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 3 條)
4,130 檢視

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 積分
2 條訊息(共 3 條)
4,115 檢視

Hi Mike,

Ok I understand the kernel part.

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

TIA

0 積分
3 條訊息(共 3 條)
4,102 檢視