Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Color to Depth #858

Closed
mjfoo21 opened this issue Nov 28, 2017 · 3 comments
Closed

Align Color to Depth #858

mjfoo21 opened this issue Nov 28, 2017 · 3 comments

Comments

@mjfoo21
Copy link

mjfoo21 commented Nov 28, 2017

Required Info
Camera Model SR300
Firmware Version 3.21.0.0
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only) 4.8.0.58

Can rs2::align align depth to other streams? The example states that

A rs2::align object always transforms depth images to some target image

When I do

rs2::align align(RS2_STREAM_DEPTH);
frame = pipe.wait_for_frames();
rs2::frameset proccessed = align.proccess(frame);
rs2::video_frame color_processed = proccessed.first(RS2_STREAM_COLOR);

it gives the error Frame of requested stream type was not found!.

Is there any way to generate color_aligned_to_depth stream like librealsense-1 in Version 2?

@dorodnic
Copy link
Contributor

Hi @mjfoo21
I believe it's a bug. We will look into it and update this thread.

@zivsha
Copy link
Contributor

zivsha commented Dec 6, 2017

@mjfoo21 , I'm closing the issue since we pushed the fix to development, please let us know if this solved it for you or not.

@zivsha zivsha closed this as completed Dec 6, 2017
@mjfoo21
Copy link
Author

mjfoo21 commented Dec 14, 2017

Hi @zivsha,

I got the aligned-to-depth function. Thanks for fixing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants