-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
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 ); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 :)
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