isl-org / isl-org/Open3D

creating an geometry::image from a data vector on c++

Open
#6,292 2 comments 0 reactions 0 assignees View on GitHub
sensor
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### My Question

I am trying to capture images from a realsense camera using the realsense package, and not the open3d::t::io::RealSenseSensor. the reason is that there are more configurable options such as aligning the images to the depth and not the color images, and more.

and so i want to do this:
m_pipeline = rs2::pipeline();
auto frame = m_pipeline.wait_for_frames();
auto rgbImageData = frame.get_color_frame();
auto depthImageData = frame.get_depth_frame();

//I would like there to be a constructor of some sort like this...
open3d::geometry::image depthOpen3dImage = open3d::geometry::image(depthImageData.get_data());
open3d::geometry::image rgbOpen3dImage = open3d::geometry::image(rgbImageData.get_data());

how can i do this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.