kornia-rs icon indicating copy to clipboard operation
kornia-rs copied to clipboard

Support properly OpenEXR

Open edgarriba opened this issue 2 years ago • 3 comments

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.

edgarriba avatar Mar 14 '22 11:03 edgarriba

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

carlosb1 avatar May 08 '22 23:05 carlosb1

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.

edgarriba avatar May 09 '22 07:05 edgarriba

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

gau-nernst avatar Feb 27 '23 07:02 gau-nernst