Skip to content

Commit

Permalink
this seems to be correct!
Browse files Browse the repository at this point in the history
- m_camMatrix is filled correctly
  • Loading branch information
kalwalt committed Nov 4, 2023
1 parent 40017fc commit d13feef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ class WebARKitTracker::WebARKitTrackerImpl {
_camera->setupCamera(frameWidth, frameHeight);
_camera->printSettings();
//m_camMatrix = cv::Mat(3, 3, CV_64FC1, _camera->getCameraData().data());
/*m_camMatrix = cv::Mat(3, 3, CV_64FC1);
//m_camMatrix = cv::Mat(3, 3, CV_64FC1);
std::array<double, 9> camData = _camera->getCameraData();
for(auto i = 0; i < 3; i++) {
for(auto j = 0; j < 3; j++) {
//WEBARKIT_LOGi("Camera Matrix: %d\n", camData[i*3+j]);
m_camMatrix.at<double>(i, j) = camData[i*3+j];
}
}*/
}

m_camMatrix.at<double>(0,0) = 833.63;
/*m_camMatrix.at<double>(0,0) = 833.63;
m_camMatrix.at<double>(0,1) = 0.0;
m_camMatrix.at<double>(0,2) = 353.50;
m_camMatrix.at<double>(1,0) = 0.0;
m_camMatrix.at<double>(1,1) = 833.63;
m_camMatrix.at<double>(1,2) = 464.50;
m_camMatrix.at<double>(2,0) = 0.0;
m_camMatrix.at<double>(2,1) = 0.0;
m_camMatrix.at<double>(2,2) = 1.0;
m_camMatrix.at<double>(2,2) = 1.0;*/


for(auto i = 0; i < 3; i++) {
Expand Down

0 comments on commit d13feef

Please sign in to comment.