princeton-vl / DROID-SLAM

BSD 3-Clause "New" or "Revised" License
1.75k stars 294 forks source link

fix resize changing intrinsic parameters bug #5

Closed xiesc closed 3 years ago

xiesc commented 3 years ago

I think the scale factor should be multiplied by (fx, cx) and (fy, cy), respectively. However, it will not have much effect since the scale is too close and only the int(*) will let them different. It should be intrinsics[0::2] and intrinsics[1::2] in case the scale is different. Please check if the modification is right.