LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does it required to correct image after image calibration?

Solved!
Go to solution

Hello, 

 

I have one doubt regarding to image correction after image calibration. I am doing object detection from camera using NI vision.

I did image calibration, now my question is do I need to do image correction as well or only calibrated image provide me same coordinates as after corrected image??

 

 

Thank you very much in advance.

 

Regards, 

Ankit.

0 Kudos
Message 1 of 9
(4,188 Views)

Calibration has two components mainly

  • converting the pixels to real world values
  • Correct Perspective or Non-Linear Distortions

-For example, if you are using Telecentric lense and camera perpendicular to Test Object you can use simple calibration without any correction.

-If Test Object is not Perpendicular to Object then you have to include Perspective Correction.

-If your Lens have distortions then use the Correction.

-Look into below link for What type of Calibration you need to use: http://zone.ni.com/reference/en-XX/help/370281AD-01/nivisionconcepts/spatial_calibration_whento/

-Here's some more detail into Spatial Calibration: http://zone.ni.com/reference/en-XX/help/370281AD-01/nivisionconcepts/spatial_calibration_concepts/

Thanks
uday
Message 3 of 9
(4,132 Views)

Hey,

 

no you actually do not have to do the correction to get real world coordinates. They are interpolated anyways. You can imagine the calibration as a look up table, telling where the current pixel should be if the image was corrected.

The correction is actually use the table to put the pixel in the spot it belongs to and interpolate pixel values in between.

However it can be helpful if you e.g. do some pattern matching algotihm and look for a part in the center and and the same part in the distorted corner of the image. 

 

Its like always in VISION accuracy vs. processing time.

 

Kind regards,

Heinz

0 Kudos
Message 4 of 9
(4,125 Views)

Thank you very much for reply.

I am somehow confuse to understand why Coordinates are different if I remove the image correction vi.

for example I tried to detect one object with corrected image and then I tried same object with out corrected image and I got big difference in coordinates.

Like with corrected image vi (X,Y) = (38, 38) without (37,44).

without corrected image has same coordinate like image without calibration.

 

Here in attachment 1, I am correcting the image and in picture 2 I have used pattern matching vi to detect the object.

is there any mistake I am doing there or??

 

Thank you once again for your time and suggestions.

Download All
0 Kudos
Message 5 of 9
(4,121 Views)

hey,

 

what about the real world coordinates? are they not the same?

 

regards

0 Kudos
Message 6 of 9
(4,117 Views)

Hi, 

 

No they are also different, because I am converting manually pixel to real world.

For example in 1 cm there are 30 pixels so using this parameters, I am getting real world coordinates.

Is this answer of your question?

 

Thank you very much for your reply.

 

Greetings, 

Ankit.

0 Kudos
Message 7 of 9
(4,107 Views)
Solution
Accepted by topic author AnkitRamani

hey,

 

so why do you do it manually? if you want to do so, then you should correct the image!

 

BUT much better and faster is to do it with the calibration. You actually should know what your grid parameters are! E.g. 5 mm grid spacing. Then just set a coordinate systen and tada...

 

Have also a look at the examples of VBAI. it is easier to understand the procedure there...

Message 8 of 9
(4,098 Views)

Thank you very much for your quick reply.

I will go for that approach and change my vi accordingly.

Will update as soon as I finished it.

 

Thanks. 

0 Kudos
Message 9 of 9
(4,094 Views)