Skip to content

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
Contributor

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 realsenseai:development Jan 30, 2024
@Nir-Az Nir-Az deleted the fix-distortion branch September 30, 2024 11:42
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