07-25-2005 11:03 AM
07-25-2005 11:05 AM
07-26-2005 08:54 AM
07-26-2005 10:50 AM
07-26-2005 01:45 PM
07-26-2005 03:49 PM
Hello,
The best way to achieve your goal may be to use the calibration VIs that ship with Vision. I would suggest that you start by looking at the IMAQ Vision calibration shipping examples. Open the NI Example Finder (Help >> Find Examples) and search for calibration. Open the example titled "Simple Calibration Example." This VI uses the IMAQ Set Simple Calibration to specify the real-world units that will be associated with a single pixel.
In your case, when you have an existing image where you have already determined the real-world distance associated with an image distance, use a caliper to determine the length in pixels and then divide your distance by the number of pixels and use that ratio for the Set Simple Calibration VI to create a calibrated image. Now, for any caliper measurement, you can use pixel or real-world units.
Regards,
Scott R.
Applications Engineer
National Instruments
07-27-2005 08:01 AM
07-27-2005 10:05 AM