graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
12.47k stars 1.56k forks source link

Do points3D and camera poses by COLMAP in the same coordinate system? #844

Open silkmeloni opened 3 weeks ago

silkmeloni commented 3 weeks ago

tu1 In picture above, I use the codes below to generate my own gaussians, which only execute when finally saving ply(means they won't be optimized). tu2 Blue gs means colmap's initial sfm points, and Green ones mean camera pose( self.scene.getTrainCameras() ), Red means camera poses' center. I record the video around the object, so Blue gs should be surrounded by green ones, but they not !!! Who can tell me why plz! From the source code I think points3D and camera poses should be directly from the colmap .bin files. Do points3D and camera poses by COLMAP in the same coordinate system?

jaco001 commented 3 weeks ago

If you want to compare camera positions, load it in Colmap GUI. import model-> choose sparse directory

silkmeloni commented 3 weeks ago

If you want to compare camera positions, load it in Colmap GUI. import model-> choose sparse directory

Thank you a lot ! I have solved this problem. camera poses gained by scene.getTrainCameras() are in CAMERA COORDINATE SYSTEM. So I multiplied C2M matrix then it went on well.