Is exr support possible in Winrt or uwp apps

asked 2018-03-29 18:53:18 -0500

Trying to build opencv for a UWP app, the cmake process to make the binaries has configurations similar to a winrt app. I can't seem to make it so EXR support is built into those opencv binaries. Is it possible?

We have explicitly a line where WITH_OPENEXR is turned off if it's WinRt, so it hints towards some possible missing API in WinRt. I tried commenting that condition to see what happened, and while I got the cv::getBuildInformation() to say: OpenEXR: build (ver 1.7.1) , my matrices have still null data after reading the exr file. Same code used for non Winrt configuration is working fine.

edit retag flag offensive close merge delete

Comments

support for exr is compiled into the opencv libs at build time.

so, if you don't recall building opencv libs from src and explicitly enabling exr -- you probably won't have it.

berak gravatar imageberak ( 2018-03-30 01:01:56 -0500 )edit

I'm building the opencv libs, but there's a check for winrt in order to enable exr support. Even if I artificially overpass that check, the support does not work, leading me to believe it's not possible to have exr support. I'd like to know a confirmation of that or if someone knows how, the steps to enable it.

I've found the PR that added the support for WINRT in opencv, you can look for WITH_OPENEXR and see how they skip to turn that flag for those systems. https://github.com/opencv/opencv/pull...

josguil gravatar imagejosguil ( 2018-03-30 13:58:06 -0500 )edit