ram-lab / plycal

Extrinsic calibration of the camera and LiDAR via polygon plane
GNU General Public License v3.0
137 stars 24 forks source link

can fisheye be used for calibration? #2

Closed crankler closed 4 years ago

crankler commented 4 years ago

hi, we try to use realsense T265 and VLP16 and use your method for calibrtation, but the calibration result can't suit in picture. First, we ues the intrinsic parameters of the t265 api to undistort the camera and we want to use it as a common camera, then we follow your instrutment to calibration, but the result as follow: rrr Then we use the t265 api as the config parameters, but the result also is worse. So can we use this method?

neophack commented 4 years ago

https://github.com/ram-lab/plycal/blob/82a4cd0e53685ce41d5e09aeb733204d6072fd91/PlyCal_qt/data_reader.cpp#L135 you can change undistort use

  if (useFisheye_){
        cv::Mat D;
        D_.copyTo(D);
        D.pop_back();
        cv::Matx33d newK = K_;
        cv::fisheye::undistortImage(img_orig, *img, K_, D,newK);
    }else{
        cv::undistort(img_orig, *img, K_, D_);
    }
liaoqinghai commented 4 years ago

Thanks @neophack
@crankler please change the camera model.

arjunskumar commented 2 years ago

@crankler how do you calibrate the intrinsic params of the camera?