-
Notifications
You must be signed in to change notification settings - Fork 354
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
Add from_gray16
for DepthImage
#8213
Conversation
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.
Hi! Thanks for opening this pull request.
Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.
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.
thanks for contributing! Looks good to me, but would be nice to make use of that in something that is tested from CI.
Doesn't need to be fancy, just compare outcome of from_gray16
with using try_from
. You could for instance the snippet from depth_image_simple
and check that it constructs the depth image the same way when built with from_gray16
or from_data_type_and_bytes
. Test can as a separate test function to crates/store/re_types/tests/types/depth_image.rs
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.
great, thanks again!
Depth image are usually stored in a 16-bit gray format. This pr is used to simplify this step