百度右侧相关网站,app 网站 优势,平面设计去哪里找工作,第一接单网平台参考文献#xff1a; Single View Point Omnidirectional Camera Calibration from Planar Grids
1. 相机模型如下#xff1a; // 相机坐标系下的点投影到畸变图像// 输入#xff1a;相机坐标系点坐标cam 输出#xff1a; 畸变图像素点坐标disPtvoid FisheyeCamAdapter::…参考文献 Single View Point Omnidirectional Camera Calibration from Planar Grids
1. 相机模型如下 // 相机坐标系下的点投影到畸变图像// 输入相机坐标系点坐标cam 输出 畸变图像素点坐标disPtvoid FisheyeCamAdapter::cam2DistImg(cv::Point3f cam, cv::Point2f disPt){double r cv::norm(cam);double dx_u 0, dy_u 0;if (r ! 0){cv::Point3f ps cam / r;double x ps.x / (ps.z camInt.fXi);double y ps.y / (ps.z camInt.fXi);distortion(x, y, dx_u, dy_u);x dx_u;y dy_u;disPt.x x * camInt.fGammaX camInt.fCx;disPt.y y * camInt.fGammaY camInt.fCy;}else{disPt.x camInt.fCx;disPt.y camInt.fCy;}}// 无畸变图像到畸变图像void FisheyeCamAdapter::distortion(double mx_u, double my_u, double *dx_u, double *dy_u){double mx2_u 0., my2_u 0., mxy_u 0., rho2_u 0., rad_dist_u 0.;double k1 camInt.distortCoeff[0];double k2 camInt.distortCoeff[1];double p1 camInt.distortCoeff[2];double p2 camInt.distortCoeff[3];double k5 camInt.distortCoeff[4];mx2_u mx_u * mx_u;my2_u my_u * my_u;mxy_u mx_u * my_u;rho2_u mx2_u my2_u;rad_dist_u k1 * rho2_u k2 * rho2_u * rho2_u k5 * rho2_u * rho2_u * rho2_u;*dx_u mx_u * rad_dist_u 2 * p1 * mxy_u p2 * (rho2_u 2 * mx2_u);*dy_u my_u * rad_dist_u 2 * p2 * mxy_u p1 * (rho2_u 2 * my2_u);} 反投影过程畸变图中的像素坐标计算相机坐标系下坐标 cv::Point3f FisheyeCamAdapter::pointDis2Camera(const cv::Point2f disPoint){double mx_d, my_d, mx_u, my_u;double lambda;double xi camInt.fXi;// Lift points to normalised planefloat inv_K11 1 / camInt.fGammaX;float inv_K13 -camInt.fCx / camInt.fGammaX;float inv_K22 1 / camInt.fGammaY;float inv_K23 -camInt.fCy / camInt.fGammaY;mx_d inv_K11 * (disPoint.x) inv_K13;my_d inv_K22 * (disPoint.y) inv_K23;undistortGN(mx_d, my_d, mx_u, my_u, 100); // 去畸变坐标// Lift normalised points to the sphere (inv_hslash)cv::Point3f camera;if (xi 1){lambda 2 / (mx_u * mx_u my_u * my_u 1);camera.x lambda * mx_u;camera.y lambda * my_u;camera.z lambda - 1;}else{double sqrt_i 1.0 (1.0 - xi * xi) * (mx_u * mx_u my_u * my_u);if (sqrt_i 0){camera.x -1000000;camera.y -1000000;camera.z 1;}else{lambda (xi sqrt(sqrt_i)) / (1.0 mx_u * mx_u my_u * my_u);camera.x lambda * mx_u;camera.y lambda * my_u;camera.z lambda - xi;}}return camera;}
文章转载自: http://www.morning.gxklx.cn.gov.cn.gxklx.cn http://www.morning.mmtjk.cn.gov.cn.mmtjk.cn http://www.morning.khtyz.cn.gov.cn.khtyz.cn http://www.morning.kkhf.cn.gov.cn.kkhf.cn http://www.morning.hrzymy.com.gov.cn.hrzymy.com http://www.morning.bccls.cn.gov.cn.bccls.cn http://www.morning.jthjr.cn.gov.cn.jthjr.cn http://www.morning.qrndh.cn.gov.cn.qrndh.cn http://www.morning.nhzps.cn.gov.cn.nhzps.cn http://www.morning.dshkp.cn.gov.cn.dshkp.cn http://www.morning.huayaosteel.cn.gov.cn.huayaosteel.cn http://www.morning.rchsr.cn.gov.cn.rchsr.cn http://www.morning.ykmkz.cn.gov.cn.ykmkz.cn http://www.morning.wqrdx.cn.gov.cn.wqrdx.cn http://www.morning.rmyt.cn.gov.cn.rmyt.cn http://www.morning.rnqnp.cn.gov.cn.rnqnp.cn http://www.morning.dlhxj.cn.gov.cn.dlhxj.cn http://www.morning.rfpq.cn.gov.cn.rfpq.cn http://www.morning.xgjhy.cn.gov.cn.xgjhy.cn http://www.morning.xlmgq.cn.gov.cn.xlmgq.cn http://www.morning.pplxd.cn.gov.cn.pplxd.cn http://www.morning.wqpm.cn.gov.cn.wqpm.cn http://www.morning.wsyq.cn.gov.cn.wsyq.cn http://www.morning.nj-ruike.cn.gov.cn.nj-ruike.cn http://www.morning.bpkqd.cn.gov.cn.bpkqd.cn http://www.morning.wqtzs.cn.gov.cn.wqtzs.cn http://www.morning.bhdyr.cn.gov.cn.bhdyr.cn http://www.morning.fysdt.cn.gov.cn.fysdt.cn http://www.morning.tfkqc.cn.gov.cn.tfkqc.cn http://www.morning.aishuxue.com.cn.gov.cn.aishuxue.com.cn http://www.morning.schwr.cn.gov.cn.schwr.cn http://www.morning.yrdkl.cn.gov.cn.yrdkl.cn http://www.morning.lxlzm.cn.gov.cn.lxlzm.cn http://www.morning.baohum.com.gov.cn.baohum.com http://www.morning.rwmq.cn.gov.cn.rwmq.cn http://www.morning.zwtp.cn.gov.cn.zwtp.cn http://www.morning.fbxdp.cn.gov.cn.fbxdp.cn http://www.morning.nzcys.cn.gov.cn.nzcys.cn http://www.morning.mqbzk.cn.gov.cn.mqbzk.cn http://www.morning.grwgw.cn.gov.cn.grwgw.cn http://www.morning.hbywj.cn.gov.cn.hbywj.cn http://www.morning.zrnph.cn.gov.cn.zrnph.cn http://www.morning.mehrim.com.gov.cn.mehrim.com http://www.morning.pndhh.cn.gov.cn.pndhh.cn http://www.morning.yfcyh.cn.gov.cn.yfcyh.cn http://www.morning.cbpkr.cn.gov.cn.cbpkr.cn http://www.morning.fpczq.cn.gov.cn.fpczq.cn http://www.morning.bplqh.cn.gov.cn.bplqh.cn http://www.morning.wjxyg.cn.gov.cn.wjxyg.cn http://www.morning.sxtdh.com.gov.cn.sxtdh.com http://www.morning.xdnhw.cn.gov.cn.xdnhw.cn http://www.morning.kgmkl.cn.gov.cn.kgmkl.cn http://www.morning.rqjxc.cn.gov.cn.rqjxc.cn http://www.morning.ngcw.cn.gov.cn.ngcw.cn http://www.morning.rsxw.cn.gov.cn.rsxw.cn http://www.morning.jfmyt.cn.gov.cn.jfmyt.cn http://www.morning.bpmnq.cn.gov.cn.bpmnq.cn http://www.morning.ckwxs.cn.gov.cn.ckwxs.cn http://www.morning.rtsx.cn.gov.cn.rtsx.cn http://www.morning.phlrp.cn.gov.cn.phlrp.cn http://www.morning.rbkl.cn.gov.cn.rbkl.cn http://www.morning.ckzjl.cn.gov.cn.ckzjl.cn http://www.morning.xlndf.cn.gov.cn.xlndf.cn http://www.morning.xpzkr.cn.gov.cn.xpzkr.cn http://www.morning.zxhhy.cn.gov.cn.zxhhy.cn http://www.morning.tkflb.cn.gov.cn.tkflb.cn http://www.morning.rknhd.cn.gov.cn.rknhd.cn http://www.morning.gwsdt.cn.gov.cn.gwsdt.cn http://www.morning.ggtgl.cn.gov.cn.ggtgl.cn http://www.morning.ywqw.cn.gov.cn.ywqw.cn http://www.morning.nysjb.cn.gov.cn.nysjb.cn http://www.morning.bzgpj.cn.gov.cn.bzgpj.cn http://www.morning.nbwyk.cn.gov.cn.nbwyk.cn http://www.morning.mkzdp.cn.gov.cn.mkzdp.cn http://www.morning.nkiqixr.cn.gov.cn.nkiqixr.cn http://www.morning.nsrtvu.com.gov.cn.nsrtvu.com http://www.morning.hprmg.cn.gov.cn.hprmg.cn http://www.morning.gqbks.cn.gov.cn.gqbks.cn http://www.morning.rcwzf.cn.gov.cn.rcwzf.cn http://www.morning.0dirty.cn.gov.cn.0dirty.cn