Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can one get the engineering value out of a calibrated image as one scans down the image and searches for the part edge?

I grab an image containing a laser line that follows a curve. I then capture another image after I turn off the laser, subtract the 2 images displaying only the line, make it a binary file, and then search row by row for the ones and record the x/y coordinates for each. I then want to plot the x/y coordinates in engineering units. I currently do a rough calibration of the image and use equations developed from the calibration to convert the x/y to engineering units. I would like to use the calibration function in IMAQ 6.0 to do the calibration and then extract the engineering units right from the binary image with out having to convert
the pixels.
0 Kudos
Message 1 of 2
(3,332 Views)
There is a great example on our website that shows how to use the calibration functions of Vision 6 to either calibrate an entire image, or just the distance between two points. It is called IMAQ Calibration Example and can be found by typing in "imaq calibration example" into the search field of ni.com. The VI will not only assign real world values to your measurements, but also correct perspective and nonlinear distortions of your image in order to make your measurements more accurate.

Kyle V
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,332 Views)