/* Get rectified params from P matrix in camera_info:
*
* | au 0 u0 tx |
* P = | 0 av v0 ty |
* | 0 0 1 0 |
*/
pinhole_model_rectified[0]=projection[2];// u0
pinhole_model_rectified[1]=projection[6];// v0
pinhole_model_rectified[2]=projection[0];// au
pinhole_model_rectified[3]=projection[5];// av
/* Get distortion params from vector D in camera_info:
*
* D = [ r1 r2 t1 t2 r3 ], with ri: dadial params; ti: tangential params
*
* NOTE: Wolf ignores tangential params!!!
*/
assert(distort.size()==5&&"Distortion size must be size 5!");
assert(distort.size()==5&&"Distortion size must be size 5!");
WOLF_WARN_COND(distort(2)!=0||distort(3)!=0,"Wolf does not handle tangential distortion. Please consider re-calibrating without tangential distortion!");
WOLF_WARN_COND(distort(2)!=0||distort(3)!=0,"Wolf does not handle tangential distortion. Please consider re-calibrating without tangential distortion!");