03-15-2019 11:10 AM - edited 03-15-2019 11:12 AM
Good afternoon, I almost completed the design of a new step, but did not find a way to get information about camera calibration and image?
In my measurement, I get the distance in pixels, and I need to transfer it to millimeters.
All standard steps automatically convert measurements to millimeters when calibrated. How can I get information from the calibration step and recalculate my distance in millimeters?
For example, I inserted my measurement result and the measurement result of a standart step.
millimeters?
03-30-2019 01:22 PM
No ideas?
04-01-2019 04:52 PM
Just call IMAQ Is Vision Info Present 2 on the image, specifying that you want to check if the image contains Calibration information.
04-01-2019 11:35 PM - edited 04-01-2019 11:36 PM
Thanks, I tried this option, but IMAQ Is Vision Info Present 2 returns only tru or false about the presence or absence of calibration, and I need to get the calibration information itself (distance)
04-02-2019 08:35 AM
IMAQ Get Calibration Info 3, located in the Vision and Motion>>Vision Utilities>>Calibration palette gives you more information on the type of calibration and parameters used for calibrated images.
04-02-2019 09:20 AM
It's also worth noting that the Vision functions that return pixel information (area, distance, position, etc.) also return the calibrated version if the image passed to those functions is calibrated (look at the parameters returned by the algorithm and you will see real world coordinates/measurements also returned). There are also Calibration VIs to convert pixel locations to real world locations IMAQ Convert Pixel to Real World and IMAQ Convert Real World to Pixel when a calibrated image is passed in.
Hope this helps,
Brad