mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Merge pull request #20248 from alalek:issue_20246
This commit is contained in:
commit
3ddf84534b
@ -358,7 +358,11 @@ _IplImage
|
|||||||
needed for correct deallocation */
|
needed for correct deallocation */
|
||||||
|
|
||||||
#if defined(CV__ENABLE_C_API_CTORS) && defined(__cplusplus)
|
#if defined(CV__ENABLE_C_API_CTORS) && defined(__cplusplus)
|
||||||
_IplImage() {}
|
_IplImage()
|
||||||
|
{
|
||||||
|
memset(this, 0, sizeof(*this)); // valid for POD structure
|
||||||
|
nSize = sizeof(IplImage);
|
||||||
|
}
|
||||||
_IplImage(const cv::Mat& m) { *this = cvIplImage(m); }
|
_IplImage(const cv::Mat& m) { *this = cvIplImage(m); }
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user