09-21-2005 01:19 PM
09-22-2005 03:52 PM
Hello Ram
For (i): the XCD-X710 is a DCAM compliant camera, so it will definitely work with the NI IMAQ for IEEE 1394 driver. Without the IMAQ Vision software, you could convert the image to a 2D array of pixel values. You could then write some code to average the pixel intensity (perhaps only over a certain region). However, with the Vision software, you could fairly easily perform an intensity measurement within a region (no conversion to an array required).
Since the camera acquires at 30 frames per second, you would have roughly 33ms to perform all processing in before the next frame is acquired. This would be as close to "real time" as you could get with this camera setup.
For (ii): as with above, you could either create an algorithm that looks at the 2D array to find the center, or you could use the Vision software to perform the measurement. With Vision, you might be able to do some particle analysis to detect the center of mass (depending on the image).
This definitely sounds possible from the description you provided. The only question is - how close to "real time" is acceptable. If 33ms rate is fast enough and the processing can be completed in this time, then everything should work out great.
Best Regards
Jesse D.
Applications Engineering
National Instruments
10-03-2005 04:15 PM
10-03-2005 05:35 PM
Hi Jesse,
I just realized that I can find the average intensity of the image (from the converted array) by using the mean.vi to compute the average. I could have used the IMAQ histogram if I had the IMAQ Vision software in hand.
Attached you will find a picture of the emission spot I am interested in measuring the intensity as well as the area and the center of the spot. As I mentioned earlier, I have with me the IMAQ for IEEE 1394 cameras and LabView 7.0. I found this link on the NI discussion board (http://forums.ni.com/ni/board/message?board.id=200&message.id=4640&requireLogin=False) where Bruce Ammons suggested a procedure which I do not quite follow as of now. I would appreciate if you can advice on how to go about with the above-mentioned tasks.
Thanks,
Ram
10-04-2005 08:55 AM
I suspect my old post doesn't make sense because you don't have the Vision tools, and it uses a couple of those VIs.
Without the toolkit, you could sum the rows and columns of your image array. For each sum, loop with autoindexing. Multiply the sum value by the index array and output a new array. Sum the values of the new array and the original array, then divide new/original. This will give you the index of the centroid.
Bruce
10-04-2005 09:50 AM
10-04-2005 12:06 PM
Start with the 2D matrix. Autoindex it into a for loop and sum each 1D array. The output should be an array that is the sum of each row (or column, I can never remember). Call this A.
Use another for loop to autoindex the A array from last step. Multiply each element of A by the index of the for loop. For example, A(0)*0, A(1)*1, etc. Output the new array and call it B.
The location of the centroid is equal to sum B/sum A.
Repeat the whole thing with the transpose of the original 2D matrix to get the other coordinate of the centroid.
10-12-2005 03:48 PM
10-12-2005 09:09 PM
10-13-2005 08:29 AM