mirror of
https://github.com/opencv/opencv.git
synced 2026-07-28 23:03:03 +04:00
don't use constructors for C API structures
This commit is contained in:
@@ -487,7 +487,7 @@ imread_( const String& filename, int flags, int hdrtype, Mat* mat=0 )
|
||||
}
|
||||
else
|
||||
{
|
||||
image = cvCreateImage( size, cvIplDepth(type), CV_MAT_CN(type) );
|
||||
image = cvCreateImage(cvSize(size), cvIplDepth(type), CV_MAT_CN(type));
|
||||
temp = cvarrToMat( image );
|
||||
}
|
||||
|
||||
@@ -834,7 +834,7 @@ imdecode_( const Mat& buf, int flags, int hdrtype, Mat* mat=0 )
|
||||
}
|
||||
else
|
||||
{
|
||||
image = cvCreateImage( size, cvIplDepth(type), CV_MAT_CN(type) );
|
||||
image = cvCreateImage(cvSize(size), cvIplDepth(type), CV_MAT_CN(type));
|
||||
temp = cvarrToMat(image);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user