I noticed nerfacc has a piece of code for calculating a rough bounding box:
if args.auto_aabb:
camera_locs = torch.cat(
[train_dataset.camtoworlds, test_dataset.camtoworlds]
)[:, :3, -1]
args.aabb = torch.cat(
[camera_locs.min(dim=0).values, camera_locs.max(dim=0).values]
).tolist()
print("Using auto aabb", args.aabb)
The bounding box calculated this way can potentially be too small for the desired area since some cameras observe outside. I wonder whether it is possible to calculate a bounding box from sparse point clouds (reconstructed by COLMAP), or is it necessary?
Hi, @liruilong940607
I noticed nerfacc has a piece of code for calculating a rough bounding box:
The bounding box calculated this way can potentially be too small for the desired area since some cameras observe outside. I wonder whether it is possible to calculate a bounding box from sparse point clouds (reconstructed by COLMAP), or is it necessary?