Skip to content
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 Tensor::from_image_file and Tensor::from_image_bytes #2097

Merged
merged 6 commits into from
May 12, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented May 12, 2023

Add convenience functions to create Tensors from the contents or path of an image file.

Also adds support for PNG in rr.log_image_file

Checklist

PR Build Summary: https://build.rerun.io/pr/2097

@emilk emilk added enhancement New feature or request 🦀 Rust API Rust logging API labels May 12, 2023
@Wumpf Wumpf self-requested a review May 12, 2023 07:35
crates/re_log_types/src/component_types/tensor.rs Outdated Show resolved Hide resolved
crates/re_log_types/src/component_types/tensor.rs Outdated Show resolved Hide resolved
emilk and others added 2 commits May 12, 2023 10:01
Co-authored-by: Andreas Reich <andreas@rerun.io>
@emilk emilk requested a review from Wumpf May 12, 2023 08:04
@emilk emilk merged commit e4bdad8 into main May 12, 2023
15 checks passed
@emilk emilk deleted the emilk/tensor-from-image branch May 12, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🦀 Rust API Rust logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants