MCPcopy
hub / github.com/zju3dv/4K4D / get_fuser

Function get_fuser

easyvolcap/utils/fusion_utils.py:717–745  ·  view source on GitHub ↗

Returns the depth fuser required. Our fuser doesn't allow for

(opts, scan)

Source from the content-addressed store, hash-verified

715
716
717def get_fuser(opts, scan):
718 """Returns the depth fuser required. Our fuser doesn't allow for """
719
720 if opts.dataset == "scannet":
721 gt_path = ScannetDataset.get_gt_mesh_path(opts.dataset_path,
722 opts.split, scan)
723 else:
724 gt_path = None
725
726 if opts.depth_fuser == "ours":
727 if opts.fuse_color:
728 print("WARNING: fusing color using 'ours' fuser is not supported, "
729 "Color will not be fused.")
730
731 return OurFuser(
732 gt_path=gt_path,
733 fusion_resolution=opts.fusion_resolution,
734 max_fusion_depth=opts.fusion_max_depth,
735 fuse_color=False,
736 )
737 if opts.depth_fuser == "open3d":
738 return Open3DFuser(
739 gt_path=gt_path,
740 fusion_resolution=opts.fusion_resolution,
741 max_fusion_depth=opts.fusion_max_depth,
742 fuse_color=opts.fuse_color,
743 )
744 else:
745 raise ValueError("Unrecognized fuser!")

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
OurFuserClass · 0.85
Open3DFuserClass · 0.85

Tested by

no test coverage detected