Got rid of deprecated convertFp16 in imgcodecs module.

This commit is contained in:
Alexander Smorkalov 2024-05-03 11:05:08 +03:00
parent 6bf758ecc4
commit 9fe5615f2f

View File

@ -729,7 +729,7 @@ bool ExrEncoder::write( const Mat& img, const std::vector<int>& params )
Mat exrMat;
if( type == HALF )
{
convertFp16(img, exrMat);
img.convertTo(exrMat, CV_16F);
buffer = (char *)const_cast<uchar *>( exrMat.ptr() );
bufferstep = exrMat.step;
size = 2;