kornia / kornia-rs

Low-level Computer Vision library in Rust
https://docs.rs/kornia-rs
Apache License 2.0
139 stars 8 forks source link

Support properly OpenEXR #6

Open edgarriba opened 2 years ago

edgarriba commented 2 years ago

the crate image-rs supports openexr images so that we can import/export floating point images. However, the cv::Tensor class assumes for now only byte representation.

carlosb1 commented 2 years ago

https://github.com/cessen/openexr-rs/blob/master/examples/simple_input.rs - can be done something like this to import images to tensor?

edgarriba commented 2 years ago

With the current image-rs we already can decode exr, however we need to somehow redesign the cv:: Tensor class so that can hold not only uint8 but also floating point data.

gau-nernst commented 1 year ago

I think using Rust generics might work? I can try when I have some time.