mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed texture projection when fx!=fy, cx!=w/2 or cy!=h/2
This commit is contained in:
@@ -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);
|
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.height=modelIter->second[i].imageHeight();
|
||||||
cam.width=modelIter->second[i].imageWidth();
|
cam.width=modelIter->second[i].imageWidth();
|
||||||
if(modelIter->second.size() == 1)
|
if(modelIter->second.size() == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user