-
Notifications
You must be signed in to change notification settings - Fork 366
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
Port SegmentationImage
to the new image archetype style
#6928
Conversation
Deployed docs
|
return Err(ImageConstructionError::BadImageShape(tensor_data.shape)); | ||
} | ||
|
||
let (blob, data_type) = match tensor_data.buffer { |
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 now is the time to add a conversion function that is shared between segmentation_image_ext
and depth_image_ext
?
|
||
/// New segmentation image from tensor data. | ||
/// Row-major. |
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.
these are pretty sporadic, would be nice to write something nicer imho. Same on DepthImage, but didn't pay enough attention last time.
- what is row major?
- what does "borrows" mean? That's not a common concept in C++ and the implication (crashes at random) needs to be clarified
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'll add a TODO to #6844
What
DepthImage
archetype #6915Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.