01-15-2009 05:10 PM
Here's the problem - I have a vi which pulls in an image from a Firewire camera. The image is essentially white dots on a black background. I use the 'IMAQ Count Objects 2' to count the number of objects and their area after setting the appropriate threshold value. This works fine. When I copy the vi to another computer running the same OS (XP Pro) and with the same installed components of Labview (Labview 8.0 and Vision8.5) the program runs fine (no errors or crashing) but it cannot detect any objects, irrespective of the threshold setting.
Here's the kicker - if I replace the image I'm grabbing from the camera with a saved image then the program will run on both computers and both will detect the white areas (ans also give the same number of objects and same total area, as might be expected). Any ideas?
thanks
Paul
01-15-2009 07:15 PM
The program is fine, so that means the camera is not setup correctly, or the image you are taking is different somehow.
Are you looking at the image that you are capturing? Does it look the same on both computers? What camera are you using? Is it 8 or 16 bit? Any differences between the systems? (camera, light, lens, etc.)
Bruce
01-15-2009 09:16 PM
Bruce,
thanks for the quick reply. I'm using a monochrome Unibrain firewire camera (I can check the model number tomorrow). I'm feeding the same image in to both computers from the same camera (just switching the firewaire cable from one to the other so the conditions are identical). The captured images look the same on both computers. An additional section of the program that I didn't mention allows me to draw a horizontal line across the image and plot the intensity distribution (I forget the sub-vi involved but I copied it from one of the example vi's) - this allows me to estimate the threshold level. This section also works on both computers. If I remember correctly the image is a greyscale 16-bit image (again, I can check tomorrow). The only difference in the systems that just struck me is that the PC that doesn't seem to work is running XP Pro with Service Pack 3 - the working PC runs XP Pro with SP2
Any help is much appreciated.
Paul
01-16-2009 06:34 PM
01-17-2009 02:40 PM
Thanks for the reply.
The image type is Greyscale (16) [so I'm asssuming that is a 16-bit image (I'm new to programing in Vision)]. I have installed XP Pro with SP2 and the behavior is the same. Also tried converting the image to an array and then imediately back to an image but again the problem remains. The image resolution is 1280 x 960. I can get you a copy of the vi if that would help?
Thanks again for your time,
Paul
01-19-2009 12:04 PM
Hi Paul:
That does not sound like the CAR I mentioned before but if you would like to post the VI, I will try to replicate the issue.