Hi Prakash,
Could you clarify what you mean by the "perfect binary image"?
If glare is causing you problems, you may be interested in the
Local Threshold function (IMAQ Local Threshold). IMAQ Local Threshold can be found in
Vision and Motion >> Image Processing >> Processing
Local thresholding compares every pixel with its neighbors, as opposed to the whole image, so the effects of glare can be reduced. You can find out more about Local Thresholding in the Vision Concepts Manual, which is located in
Start >> All Program >> National Instruments >> Vision >> Documentation >> NI Vision >> Concepts_Manual.pdf
Chris Bolin
LabVIEW Partner Program, CLA