mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
don't use constructors for C API structures
This commit is contained in:
@@ -815,7 +815,7 @@ CV_IMPL void cvMoments( const CvArr* arr, CvMoments* moments, int binary )
|
||||
src = cv::cvarrToMat(arr);
|
||||
cv::Moments m = cv::moments(src, binary != 0);
|
||||
CV_Assert( moments != 0 );
|
||||
*moments = m;
|
||||
*moments = cvMoments(m);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user