camera_params convert to CV_32F: what is it for in stitching_detailed.cpp

asked 2016-10-26 13:25:22 -0600

DaePa gravatar image

Hello!

I am practicing the stitching_detailed.cpp tutorial from itseez opencv latest repository.

At one point, this conversion is called:

for (size_t i = 0; i < cameras.size(); ++i)
    {
        Mat R;
        cameras[i].R.convertTo(R, CV_32F);
        cameras[i].R = R;
        LOGLN("Initial camera intrinsics #" << indices[i]+1 << ":\nK:\n" << cameras[i].K() << "\nR:\n" << cameras[i].R);
    }

question: what is it for, exactly?

question: Is there any reason why cv::detail::Estimator class should output a type that the program needs explicitly to convert?

Thank you.

edit retag flag offensive close merge delete