Merge pull request #15 from dkasuga/colmap_normalize_bugfix

fix bugs about normalizing after COLMAP process
This commit is contained in:
Kai Zhang 2020-12-11 12:45:22 -05:00 committed by GitHub
commit 03741cf85a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ def get_tf_cams(cam_dict, target_radius=1.):
return center.flatten(), diagonal
center, diagonal = get_center_and_diag(cam_centers)
radius = diagonal / 2. * 1.1
radius = diagonal * 1.1
translate = -center
scale = target_radius / radius