Commit 63c75b69 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

open3d display in color

parent 2dc4726f
......@@ -61,12 +61,12 @@ Example:
*path-to-depth-file* - 16-bit png, defaults to **output/example-test_cube-depth-10cm.png**
What is does:
1. Opens RGB-D pair using Open3D python library. First it displays side-to-side, upon closing the first plot - it display a 3D view. 3D view is BW, didn't check if it can do in color.
1. Opens RGB-D pair using Open3D python library. First it displays side-to-side, upon closing the first plot - it display a 3D view.
2. Hardcoded parameters inside the script: w=2592, h=1902, fx=fy=2045, cx=1296, cy=951
Example:
```
~$ python3 obj2rgbd.py output/example-test_cube-image.jpeg output/example-test_cube-depth-10cm.png
~$ python3 open3d_test.py output/example-test_cube-image.jpeg output/example-test_cube-depth-10cm.png
```
## blender_generate_image_and_depth.py
......
......@@ -19,7 +19,7 @@ if __name__ == "__main__":
color_raw = o3d.io.read_image(image_path)
depth_raw = o3d.io.read_image(depth_path)
rgbd_image = o3d.geometry.RGBDImage.create_from_color_and_depth(
color_raw, depth_raw)
color_raw, depth_raw,convert_rgb_to_intensity=False)
print(rgbd_image)
plt.subplot(1, 2, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment