06-20-2006 02:19 AM
06-20-2006 08:11 PM
11-12-2008 09:00 AM
Hello David
I didnt understand "The coordinate/reference system cluster has parameters for the origin."? How is it possible. Iam having an image and want to change the origin to its centre. I am using LabVIEW 8.2.
Thanks
11-13-2008 02:48 PM
Hi,
To be able to do that, you need to calibrate your image using for example IMAQ Set Simple Calibration (located in the Vision Utilities>>Calibration Palette).
Once the image is calibrated, some function will directly return calibrated results, taking into account the new coordinate system you defined (like for example IMAQ Edge Tool3. In this VI the output Location (real-world) will be expressed in the new coordinate system). Some other VIs don't compute the real-world coordinates like for example IMAQ Centroid, which only returns a point in pixels, with the origin being the top left corner of the image. In this case, to figure out what the value should be in the calibrated world, we provide helper VIs located in the Vision Utilities>>Calibration palette, that converts a location in pixels to its corresponding "real-world" or calibrated position (IMAQ Convert Pixel to Real-World).
We also have the corresponding VI that convert real-world (calibrated) coordinate to the corresponding pixel location (origin being top-left corner of the image).
I encourage you to look at the calibration examples located here: C:\Program Files\National Instruments\LabVIEW 8.x\examples\Vision\2. Functions\Calibration\
Start with the Simple Calibration Example.
Best regards,
-Christophe