-
Notifications
You must be signed in to change notification settings - Fork 12
update Rerun API V0.18.2 #16
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
Conversation
rec.log(entity_path, rerun::Image(tensor_shape(img), rerun::TensorBuffer::u8(img))); | ||
rec.log( | ||
entity_path, | ||
rerun::Image::from_rgb24(rerun::Collection<uint8_t>(img), width_height(img)) |
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.
I honestly don't know what is the proper way to use CollectionAdapters here. Without contstructor/casting it does not compile and I yet to find a recent example that works
since I was here I fixed #17 and added |
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.
Code LGTM
rec.log(entity_path, rerun::Image(tensor_shape(img), rerun::TensorBuffer::u8(img))); | ||
rec.log( | ||
entity_path, | ||
rerun::Image::from_rgb24(rerun::Collection<uint8_t>(img), width_height(img)) |
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.
Seems related to this issue:
But I think this code this is fine, since it borrows data that lives longer than rerun::Image
Co-authored-by: Emil Ernerfeldt <[email protected]>
bump API version, update log calls, fix #17