Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.