07-25-2005 05:24 AM
07-25-2005 12:32 PM
07-26-2005 08:52 AM
Thanks for the reply. I have got something to work, however, i am not able to make it work as you have explained. What i am doing now is to grab from the camera and then using this image to subtract off with the image without the object inside. This is as u have explained only for dark backgrounds. For brighter backgrounds i will then need to reverse the operation. But once i do this, the program will give me an error message indicating that it could be due to imcompatible data types. I could not understand the reason behind this. I have tried it with the manual way instead of using the camera, i load in manually 2 images. For this case it works perfectly. I am at this for hours. Appreciate ur help.
07-26-2005 10:39 AM
Make sure that you are using 8-bit images when you are subtracting. You can use the IMAQ Cast Image to cast your image to a different type if needed.
Also, subtracting should work on bright or dark backgrounds - it will simply give you the difference between the two images with differences having high values (whiter) and every thing that is the same in the image having low values (dark).
Check out the attached vi (and screenshot if you don't have LabVIEW 7.1).