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

Fix intrinsics calculation for non BROWN D500 models #12618

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Jan 29, 2024

Currently if the coefficients table is not BROWN, we override it with BROWN parameters.
If we do that we need to remember it for next time as the original table was not brown.

This PR use a reserve place in the table the flag this change for next time we use the intrinsics

@Nir-Az Nir-Az requested a review from maloel January 29, 2024 14:00
@Nir-Az Nir-Az changed the title Fix intrinsics calculation for non BROWN D500 model s Fix intrinsics calculation for non BROWN D500 models Jan 29, 2024
@Nir-Az Nir-Az requested a review from OhadMeir January 29, 2024 14:01
false ); // symmetry not needed for RGB
bool use_base_intrinsics
= ( table->rgb_coefficients_table.distortion_model == RS2_DISTORTION_BROWN_CONRADY
&& table->rgb_coefficients_table.reserved[3] == 0 );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment that we use reserved[3] as a flag here to indicate the full distortion module is not really brown but we treat it as such because the HW fixes fisheye distortion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

= ( table->rgb_coefficients_table.distortion_model == RS2_DISTORTION_BROWN_CONRADY
&& table->rgb_coefficients_table.reserved[3] == 0 );

auto rect_params = compute_rect_params_from_resolution(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look like clang-format formatting :)

@Nir-Az Nir-Az merged commit b81de78 into IntelRealSense:development Jan 30, 2024
16 of 17 checks passed
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