/// geometryCorrection_main, // GeometryCorrection geometryCorrection_main, // if is aux camera using main cameras' coordinates. Disparity is still in aux camera pixels
/// geometryCorrection_main, // GeometryCorrection geometryCorrection_main, // if is aux camera using main cameras' coordinates. Disparity is still in aux camera pixels
if(indx<(IMU_INDEX+2))returnvector[indx]*(inPix?(1000.0*geometryCorrection.focalLength/geometryCorrection.pixelSize):1.0);// omega_tilt and omega_azimuth
if(indx<(IMU_INDEX+2))returnsym_vect[indx]*(inPix?(1000.0*geometryCorrection.focalLength/geometryCorrection.pixelSize):1.0);// omega_tilt and omega_azimuth
v[i]=vector[i]*1000.0;// *distortionRadius/pixelSize; // movement mm/s
sv[i]=sym_vect[i]*1000.0;// *distortionRadius/pixelSize; // movement mm/s
}
// ← → ↑ ↓ ⇖ ⇗ ⇘ ⇙ ↔ ↕
s=String.format("tilt (up): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of the image center)\n",v[0],v[1],v[2],-(v[0]+v[1]+v[2]));
s+=String.format("azimuth (right): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of the image center)\n",v[3],v[4],v[5],-(v[3]+v[4]+v[5]));
s+=String.format("roll (CW): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the image half-width from the center)\n",v[6],v[7],v[8],v[9]);
s+=String.format("diff zoom (in): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the image half-width from the center)\n",v[10],v[11],v[12],-(v[10]+v[11]+v[12]));
cameraRadius=gc.cameraRadius;// =0; // average distance from the "mass center" of the sensors to the sensors
cameraRadius=gc.cameraRadius;// =0; // average distance from the "mass center" of the sensors to the sensors
disparityRadius=gc.disparityRadius;// 150.0; // distance between cameras to normalize disparity units to. sqrt(2)*disparityRadius for quad camera (~=150mm)?
disparityRadius=gc.disparityRadius;// 150.0; // distance between cameras to normalize disparity units to. sqrt(2)*disparityRadius for quad camera (~=150mm)?
rByRDist=gc.rByRDist;// =null;
rByRDist=gc.rByRDist;// =null;
...
@@ -689,7 +691,8 @@ public class ErsCorrection extends GeometryCorrection {
...
@@ -689,7 +691,8 @@ public class ErsCorrection extends GeometryCorrection {
XYZ_he=clone2d(XYZ_he);
XYZ_he=clone2d(XYZ_he);
XYZ_her=clone2d(XYZ_her);
XYZ_her=clone2d(XYZ_her);
rXY=clone2d(rXY);
rXY=clone2d(rXY);
rXY_ideal=clone2d(rXY_ideal);
// rXY_ideal = clone2d(rXY_ideal);
set_rXY_ideal(clone2d(gc.get_rXY_ideal()));//)
rByRDist=clone1d(rByRDist);// probably it is not needed
rByRDist=clone1d(rByRDist);// probably it is not needed
v[i]=vector[i]*1000.0;// *distortionRadius/pixelSize; // movement mm/s
sv[i]=sym_vect[i]*1000.0;// *distortionRadius/pixelSize; // movement mm/s
}
// ← → ↑ ↓ ⇖ ⇗ ⇘ ⇙ ↔ ↕
s=String.format("tilt (up): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of the image center)\n",v[0],v[1],v[2],-(v[0]+v[1]+v[2]));
s+=String.format("azimuth (right): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift of the image center)\n",v[3],v[4],v[5],-(v[3]+v[4]+v[5]));
s+=String.format("roll (CW): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the image half-width from the center)\n",v[6],v[7],v[8],v[9]);
s+=String.format("diff zoom (in): %8.5fpx %8.5fpx %8.5fpx %8.5fpx (shift at the image half-width from the center)\n",v[10],v[11],v[12],-(v[10]+v[11]+v[12]));