librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Align Color to Depth

Open mjfoo21 opened this issue 9 years ago • 3 comments

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?

mjfoo21 avatar Nov 28 '17 14:11 mjfoo21

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

dorodnic avatar Nov 29 '17 16:11 dorodnic

@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 avatar Dec 06 '17 09:12 zivsha

Hi @zivsha,

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

mjfoo21 avatar Dec 14 '17 02:12 mjfoo21