Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Switch length and width. I ended up just switching the length and width numbers in the input xml file, and it ended up working. Initially, I was getting a funky undistorted image, but I set all the following constraints to zero (false):

<calibrate_fixaspectratio> 1 </calibrate_fixaspectratio> <calibrate_assumezerotangentialdistortion>1</calibrate_assumezerotangentialdistortion> <calibrate_fixprincipalpointatthecenter> 1 </calibrate_fixprincipalpointatthecenter> and then it worked correctly.

Switch length and width. I ended up just switching the length and width numbers in the input xml file, and it ended up working. Initially, I was getting a funky undistorted image, but I set all the following constraints to zero (false):

 <calibrate_fixaspectratio> 1 </calibrate_fixaspectratio>
<!-- Consider only fy as a free parameter, the ratio fx/fy stays the same as in the input cameraMatrix.
   <calibrate_assumezerotangentialdistortion>1</calibrate_assumezerotangentialdistortion>
   <calibrate_fixprincipalpointatthecenter>    Use or not setting. 0 - False Non-Zero - True-->
  <Calibrate_FixAspectRatio> 1 </calibrate_fixprincipalpointatthecenter>
</Calibrate_FixAspectRatio>
  <!-- If true (non-zero) tangential distortion coefficients  are set to zeros and stay zero.-->
  <Calibrate_AssumeZeroTangentialDistortion>1</Calibrate_AssumeZeroTangentialDistortion>
  <!-- If true (non-zero) the principal point is not changed during the global optimization.-->
  <Calibrate_FixPrincipalPointAtTheCenter> 1 </Calibrate_FixPrincipalPointAtTheCenter>

and then it worked correctly.