How to initlialize the 'RotationMatrices' property in a cameraParameters Object?

I want to generate / initialize my own cameraParamters object with the 'RotationMatrices' Property.
I'm getting this error:
'RotationMatrices' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
cPara = cameraParameters('IntrinsicMatrix',W','RotationMatrices',R,'TranslationVectors',T);
I try to convert it to a structure, add the field and then reconvert back but to no avail.
I'm doing this to use with the bundleAdjustment function. Can someone tell me how to go about this? Thanks

 Réponse acceptée

You cannot initialize that property. That property is a Dependent property, calculated from other properties, at approximately line 418 of toolbox/vision/vision/+vision/+internal/+calibration/CameraParametersImpl.m . The RotationVectors are used to compute it. The RotationVectors can be initialized.

6 commentaires

BLEARGH BUNY
BLEARGH BUNY le 24 Nov 2017
Modifié(e) : BLEARGH BUNY le 24 Nov 2017
Okay, Say I have Rotation Matrices of form 3x3x4, how to initialize rotation vectors so I can fill in the RM's in the struct?
can try this
for i = someding:someding
...
R(i,:) = rotationMatrixToVector(r);
...
end
cpas = cameraParameters('IntrinsicMatrix',W','RotationVectors',R,'TranslationVectors',T);
Dont know how well this would work though.. or what errors can creep in..
It appears to me that you could loop using vision.internal.calibration.rodriguesMatrixToVector to convert the rotation matrix back to the vectors that are used.
BLEARGH BUNY
BLEARGH BUNY le 25 Nov 2017
Modifié(e) : BLEARGH BUNY le 25 Nov 2017
Hey Walt,
Answer my other question if you can buddy, you would really be helping me out..
Thanks mate
BB
Sorry, I am not familiar with that topic.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by