• zhijackchen's avatar
    Merge pull request #10283 from zhijackchen:exr_export · 6df8ac03
    zhijackchen authored
    * Fix issue #10114
    Convert table change
    From:
    CV_8U -> HALF
    CV_8S -> HALF
    CV_16U -> UINT
    CV_16S -> UINT
    CV_32S -> UINT
    CV_32F -> FLOAT
    To:
    CV_8U -> HALF
    CV_8S -> HALF
    CV_16U -> UINT
    CV_16S -> FLOAT
    CV_32S -> FLOAT loss precision
    CV_32F -> FLOAT
    Signed integer can't be presented well with UINT. Even adjust bias, CV16S and CV32S will be confused when load from exr file.
    Also fix CV_8S negative value incorrect bug
    
    * EXR import and export
    imread() from EXR returns CV_32F only
    imwrite() accepts CV_32 cv::Mat only and stores FLOAT images by default. Add imwrite() flag to store in HALF format.
    
    * fix compiling error
    
    * clean up
    
    * fix EXR import issues
    6df8ac03
Name
Last commit
Last update
.github Loading commit data...
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...