キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Image calibration

Hello,
I'm trying to use the function LearnCalibrationPoints with VB.NET and NI Vision 8.5 passing at the function these 4 points:
 
Point1   pixel 50,50      real 0,0
Point2   pixel 300,50     real 200,0
Point3   pixel 50,300     real 0,200
Point4   pixel 300,300    real 200,200
 
The function work properly (the return value of the function is 0). My problem is the position coordinate reference of the image that stay in the point 0,0: If i use the ConvertPixelToRealWorldCoordinates passing the point 50,50 (pixel) I have the result point 40,40 when I aspect a 0,0 result (in real coordinate).
 
Can anybody explain me how resolve the problem?
 
Thank You.
0 件の賞賛
メッセージ1/11
5,659件の閲覧回数
Gualty -

In order for LearnCalibrationPoints to work properly, you need to set the origin of the coordinate system correctly.  In your case, since (50, 50) corresponds to (0, 0), that means that (50, 50) will be the origin.  To do this, assuming that LearnCalibrationOptions is the CWIMAQLearnCalibrationOptions object that you're passing in to LearnCalibrationPoints:

        LearnCalibrationOptions.CalibrationAxisInfo.Origin.Initialize(50, 50)

Let me know if you have any other issues with LearnCalibrationPoints.

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 件の賞賛
メッセージ2/11
5,651件の閲覧回数
ThankYou very much. I have set the position of the origin how You tell me and now my calibration is correct.  
0 件の賞賛
メッセージ3/11
5,641件の閲覧回数

Hi, i am having similar problem....

 

So what happend if the origin of the coordinate system is outside the camera?

 

for example if I have something like

 

Point1   pixel 50,50      real 400,400

Point2   pixel 300,50     real 750,400

Point3   pixel 50,300     real 400,750

Point4   pixel 300,300    real 750,750

 

So lets say the origin in realworld coordinates is in a pixel that i actually don't see from the camera?

 

I don't really undestand why you have to include a origin, if you are giving points to it the origin should be easily calculated from thise points, but if i have to give the origin in pixel coordinate system then in some applications this origin can be outside the camera view.

 

Any ideas?

0 件の賞賛
メッセージ4/11
5,201件の閲覧回数

Hi,

you can use negative numbers to set the origin position if it is outside the image.

 

Best regards,

Serena

0 件の賞賛
メッセージ5/11
5,161件の閲覧回数

 

Hi

 

Yeah off course is posible to put negative numbers in the pixel origin, but i don't know those and i can not check them with the camera since the vision area is outside the robot origin. For example, if you would have a denso robot is easier because with the same matrix calibration you can actually teach a new coordinate system for the robot, same coordinate system than the matrix used for the camera calibration. As our in our own robot constructed system we can not have more than one coordinate system (it could be implemented but is just extra work), i would like that the camera software makes the coordinates trasformation. I quite don't understan why under NI calibration (point selection) you have to give a reference system if you are anyway giving the positions for the world system. Origin should be always in the origin of those position since they are calculated related from some origin.

 

BR

0 件の賞賛
メッセージ6/11
5,156件の閲覧回数

hi gregstoll,

     

 i need to do point coordinates calibration in labview vi file  

 

Point1   pixel 50,50      real 400,400

Point2   pixel 300,50     real 750,400

Point3   pixel 50,300     real 400,750

Point4   pixel 300,300    real 750,750

             

 if i have 4 pixels point and real world location means how to apply this value to create calibrate image in labview .. (without vision assistant ) 

0 件の賞賛
メッセージ7/11
4,626件の閲覧回数

Hello,

 

this should work (check out the help for IMAQ Learn Perspective Calibration for more information) :

 

Example_VI_BD.png

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 件の賞賛
メッセージ8/11
4,618件の閲覧回数

Hi Sir .. i need VI file please if dont mind 

0 件の賞賛
メッセージ9/11
4,613件の閲覧回数

(No need vi file ) sir thanks a lot .... 

 

 

0 件の賞賛
メッセージ10/11
4,612件の閲覧回数