Skip to content

Commit

Permalink
Bug fix in RGBD based reconstruction system example (#6660)
Browse files Browse the repository at this point in the history
* Update make_fragments.py: update 'write_point_cloud' variables
* Update color_map_optimization_for_reconstruction_system.py: link 'initialize_config' function in color_map_optimization
  • Loading branch information
bell-one authored Mar 18, 2024
1 parent dc7e93e commit fa91f2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pyexample_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(pyexample_path)
from open3d_example import *
from initialize_config import initialize_config


def parse_keys(filename):
Expand Down
7 changes: 5 additions & 2 deletions examples/python/reconstruction_system/make_fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,11 @@ def make_pointcloud_for_fragment(path_dataset, color_files, depth_files,
pcd.colors = mesh.vertex_colors
pcd_name = join(path_dataset,
config["template_fragment_pointcloud"] % fragment_id)
o3d.io.write_point_cloud(pcd_name, pcd, False, True)

o3d.io.write_point_cloud(pcd_name,
pcd,
format='auto',
write_ascii=False,
compressed=True)

def process_single_fragment(fragment_id, color_files, depth_files, n_files,
n_fragments, config):
Expand Down

0 comments on commit fa91f2e

Please sign in to comment.