简体   繁体   中英

Computing a Projection Matrix with Image/Object Points

I've been trying to understand how to compute a projection matrix using image points and object points (3D and 2D points), but I can't seem to find a clear understanding of how you'd do this. I have a function as follows:

void calculateprojectionmatrix(Mat image_points, Mat object_points, Mat projection_matrix)

I've tried researching solutions for this (preferably in a C++ implementation), but can't find any clear explanation, and no background resources I can find seem to shed enough light on the topic. Any help would be greatly appreciated!

Given that you're using openCV you may want to scan some of the OpenCV docs.

Say, like initCameraMatrix2D ?

You might want to read Find 2D-3D correspondence of 4 non-coplanar points

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM