Hi,
I am working on a process where I monitor the image of an emission spot (see attached image in the zip file) as it travels across the CCD screen. I use Labview 7.1 with "NI-IMAQ for IEEE 1394 cameras" driver software for image acquisition. To monitor the process, I built two VIs:
1) To capture a sequence of images and simultaneously analyze each image to compute the coordinates of the centroid [see 22 October'05_Capturing desired image frames and avi and centroid output.vi].
2)To grab a video while simultaneously analyzing each image to obtain the coordinates of the centroid [see Grab .avi video with centroid information.vi]
Both the VIs use the same subVI [see Testing BA_Centroid of image.vi] to compute the centroid value.
The acquisition parameters of the camera during the execution of both programs was the same.
Coming to the results, the centroid values (obtained by the program that captures the sequence of images) of the emission spot as it travels across the CCD tallies with the real position of the spot on the CCD array.
However, to my surprise, I realized that the centroid values obtained by the grab program seems to be way off from the actual position of the emission spot on the CCD. For example, say the emission spot is around pixel #600 on the CCD, the centroid value instead of being close to pixel #600 seems to be at pixel #450 which should not be the case as the emission spot intensity is concentrated in one small region on the CCD.
Can someone enlighten me as to what could be wrong with the Grab program? The time it takes to compute the centroid value is about 15msec which is much faster than the frame rate of the camera (30fps).
Thanks.
Ram