Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Immergence:How to even btightness of Backgroud?

Hi,

I am really new in IMAQ Vision Builder. I failed to filter out the object by using THRESHOLDING due to a unevening background. Any suggetions are highly appreciated and thank you very much advanced!!! Immergent help is needed.
0 Kudos
Message 1 of 2
(3,170 Views)
Swedlin,

It sounds like you have uneven lighting, which causes bright spots in the image. The best solution is usually to improve the lighting so the background is evenly lit. This makes the threshold operation easy.

Assuming you can't improve the lighting, there is a trick that might work. By using an averaging filter that is 2 or 3 times larger than your objects, you can obtain a second image that represents the background brightness. If you subtract one image from the other, you will eliminate the variations in brightness and it should be easy to threshold your object. This is a very time consuming process for larger objects, so it isn't the best solution, but it should work if your objects aren't too large.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,170 Views)