mteillet / PyVexr

Python open Exr Viewer
MIT License
5 stars 0 forks source link

Can't change exposure / saturation if the filetype is not .exr #5

Closed mteillet closed 1 year ago

mteillet commented 1 year ago

Crash / error when trying to raise exposure using jpeg files:

cv2.error: OpenCV(4.6.0) d:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:94: error: (-2:Unspecified error) in function '__cdecl cv::impl::anonymous-namespace'::CvtHelper<struct cv::impl::anonymous namespace'::Set<3,4,-1>,struct cv::impl::A0xf2302844::Set<3,4,-1>,struct cv::impl::A0xf2302844::Set<0,2,5>,2>::CvtHelper(const class cv::_InputArray &,const class cv::_OutputArray &,int)'

Unsupported depth of input image: 'VDepth::contains(depth)' where 'depth' is 6 (CV_64F)

mteillet commented 1 year ago

Fixed in this commit : https://github.com/mteillet/PyVexr/commit/8da28acef9ce272735da5f7ec1634933c5a3035e

will be part of the next release (v0.0.5-Alpha)