From 9fe5615f2fe6aa7a3f0f676d7bbd5229d3ade087 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Fri, 3 May 2024 11:05:08 +0300 Subject: [PATCH] Got rid of deprecated convertFp16 in imgcodecs module. --- modules/imgcodecs/src/grfmt_exr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgcodecs/src/grfmt_exr.cpp b/modules/imgcodecs/src/grfmt_exr.cpp index 786b9d176b..65a0e5e03b 100644 --- a/modules/imgcodecs/src/grfmt_exr.cpp +++ b/modules/imgcodecs/src/grfmt_exr.cpp @@ -729,7 +729,7 @@ bool ExrEncoder::write( const Mat& img, const std::vector& params ) Mat exrMat; if( type == HALF ) { - convertFp16(img, exrMat); + img.convertTo(exrMat, CV_16F); buffer = (char *)const_cast( exrMat.ptr() ); bufferstep = exrMat.step; size = 2;