提交 06e0fb25 编写于 作者: A anirudt

docs: adds doxygen @note for python in docs related to contour moments

上级 68253756
......@@ -3570,12 +3570,15 @@ results are returned in the structure cv::Moments.
@param array Raster image (single-channel, 8-bit or floating-point 2D array) or an array (
\f$1 \times N\f$ or \f$N \times 1\f$ ) of 2D points (Point or Point2f ).
Note: For Python users, note that the numpy type for the input array should be either np.int32 or
np.float32, or in general of type CV_32S or CV_32F.
@param binaryImage If it is true, all non-zero image pixels are treated as 1's. The parameter is
used for images only.
@returns moments.
@note Only applicable to contour moments calculations: For Python users, note that the numpy
type for the input array should be either np.int32 or np.float32, or in general of type CV_32S or CV_32F.
Thus, np.float will not work in this case, as it is the same as np.float64 and does not satisfy the
Point2f type check.
@sa contourArea, arcLength
*/
CV_EXPORTS_W Moments moments( InputArray array, bool binaryImage = false );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册