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 refactoring #1068

Merged
merged 3 commits into from
Jan 24, 2018
Merged

Conversation

zivsha
Copy link
Contributor

@zivsha zivsha commented Jan 24, 2018

Refactored align processing block.

  1. Fixed stream-to-depth alignment
    • Using depth deprojection to "reverse" map each frame, instead of previous method of reversing the transformation
  2. Added support for multiple-streams-to-depth alignment.
    • E.g. passing Color+Infrared+Depth to align when aligning to depth will return a frameset of 3 images where both Color and Ingrared frames are aligned to depth

Depth to Color:

image

Color to Depth:

image

Technical changes

  1. Made align object stateless (up to which stream to align against).
    • Intrinsics / extrinsics / etc.. are fetched per frame (non-noticeable performance impact)
  2. Moved internal_frame_processor_callback to types.h to make it common (and used it in align).

…e-streams-to-depth alignment.

Made align object stateless (up to which stream to align agains).
Moved internal_frame_processor_callback to types.h to make it common (and used in align).
@dorodnic
Copy link
Contributor

Manually tested on MacOS

@dorodnic dorodnic merged commit 1bf59f0 into IntelRealSense:development Jan 24, 2018
@zivsha zivsha deleted the align_refactor branch February 4, 2018 07:16
@Superlee506
Copy link

Hi, thanks for this work, what's the difference between "rs.align" and "profile.get_extrinsics_to"? Is the latter function do the same thing with the former one?

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

Successfully merging this pull request may close these issues.

3 participants