Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Nonlinear Calibration VA

Solved!
Go to solution

Hi all!

In LV 8.6 there is an example : Nonlinear Calibration Example.vi  (coins).  I would like to do the same in Vision Assistant.

First, I found and loaded the calibration grid, created a nonlinear template
opened the coin-image, and when I select: Calibration from image this message appears:
"The file you selected does not contain valid calibration information"

Could anyone help me? 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 9
(4,574 Views)

See the help

 

Applying calibration information from one image to another

Applying calibration information from one image to another

  1. Click Image»Calibration from Image or select Calibration from Image in the Image tab of the Processing Functions palette.
  2. Click Load Calibration from Image File, navigate to a calibrated image file, and click OK.
  3. Navigate through the tabs to see the calibration values.
  4. Click OK to add this step to the script and close the Parameter window.
 

Note  The size of the calibrated image you select must be the same size as the image you want to calibrate.

 

 

 

 

 

 

 

 

 

 

 

 Calibration from Image (Image»Calibration from Image)

Calibration from Image (Image»Calibration from Image)

Applies the calibration information saved in an image to the current image.

Pixel Calibration Tab

Defines physical dimensions of the area of a pixel in the image and the correspondence between pixels and real-world units.

  • Load Calibration from Image File—Selects the image file containing the calibration information to load.
  • Pixel Type—Indicates the pixel type of the image you are using for calibration.
  • Correspondence Image - Real World—Indicates the real-world coordinates and units of the points used for calibration on the image you are loading from file.
  • Unit—Unit of measurement.

Calibration Tab

Defines a reference coordinate system in the image.

  • Axis Origin—X- and y-coordinates of the origin of the coordinate system, in pixels.
  • Axis Reference—Specifies the direction of the y-axis of the coordinate system with reference to the x-axis. The vertical axis direction can be either indirect (default) or direct.
  • Angle Relative to Horizontal—Specifies the angle of the x-axis of the coordinate system with respect to the horizontal.
  • Corrected Image Scaling—Specifies how to scale the corrected image when you apply the Image Correction function. Two scaling mode options are available: Scale to Fit and Scale to Preserve Area. With the Scale to Fit option, the corrected image is scaled to fit in an image the same size as the original image. With the Scale to Preserve Area option, the corrected image is scaled such that features in the image retain the same area as they did in the original image. Images that are scaled to preserve the area are usually larger than the original image.

 

 

 

 

0 Kudos
Message 2 of 9
(4,573 Views)
0 Kudos
Message 3 of 9
(4,570 Views)

Hi! Thank you for your fast reply. I have started to develop, after calibrated the grid, and saved it, tried to use this grid calibration (calibration from file) on nonlinear coin - image. I recieved a message : "calibration information is not valid" 

 

What do u think, what the problem could be, if I use the same images like LV8.6 example.

 

 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 4 of 9
(4,557 Views)
What is your defined grid spacing? Can you post your grid image and your vi along with the to-be calibrated image?
0 Kudos
Message 5 of 9
(4,554 Views)
Here are my 2 images:

Nonlinear Grid.pngNonlinear Grid.png
---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 6 of 9
(4,550 Views)
Solution
Accepted by topic author D60
Can you post the vi as well?
0 Kudos
Message 7 of 9
(4,548 Views)
Finally! I don't know how, but it works!!! Thank you
---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 8 of 9
(4,547 Views)
I wouldve thought of something regarding the co-ordiante system parameters.
0 Kudos
Message 9 of 9
(4,541 Views)