a big patch; use special proxy types (Input/OutputArray, Input/OutputArrayOfArrays) for passing in vectors, matrices etc.

This commit is contained in:
Vadim Pisarevsky
2011-04-17 13:14:45 +00:00
parent 335370a7c0
commit abeeb40d46
94 changed files with 10831 additions and 9631 deletions

View File

@@ -601,13 +601,14 @@ Moments::operator CvMoments() const
return m;
}
}
cv::Moments cv::moments( const Mat& array, bool binaryImage )
cv::Moments cv::moments( const InputArray& _array, bool binaryImage )
{
CvMoments om;
CvMat _array = array;
cvMoments(&_array, &om, binaryImage);
CvMat c_array = _array.getMat();
cvMoments(&c_array, &om, binaryImage);
return om;
}