mirror of
https://github.com/opencv/opencv.git
synced 2024-12-04 00:39:11 +08:00
Got rid of deprecated convertFp16 in imgcodecs module.
This commit is contained in:
parent
6bf758ecc4
commit
9fe5615f2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user