Fixed texture projection when fx!=fy, cx!=w/2 or cy!=h/2

This commit is contained in:
matlabbe
2021-01-24 10:39:36 -05:00
parent 47e40ef34d
commit 57326214f1

View File

@@ -629,7 +629,10 @@ pcl::texture_mapping::CameraVector createTextureCameras(
}
UASSERT(modelIter->second[i].fx()>0 && modelIter->second[i].imageHeight()>0 && modelIter->second[i].imageWidth()>0);
cam.focal_length=modelIter->second[i].fx();
cam.focal_length_w=modelIter->second[i].fx();
cam.focal_length_h=modelIter->second[i].fy();
cam.center_w=modelIter->second[i].cx();
cam.center_h=modelIter->second[i].cy();
cam.height=modelIter->second[i].imageHeight();
cam.width=modelIter->second[i].imageWidth();
if(modelIter->second.size() == 1)