Commit 68253756 authored by anirudt's avatar anirudt

docs: adds note for python in docs related to moments

parent 4e8f8922
...@@ -3570,6 +3570,8 @@ results are returned in the structure cv::Moments. ...@@ -3570,6 +3570,8 @@ results are returned in the structure cv::Moments.
@param array Raster image (single-channel, 8-bit or floating-point 2D array) or an array ( @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 ). \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 @param binaryImage If it is true, all non-zero image pixels are treated as 1's. The parameter is
used for images only. used for images only.
@returns moments. @returns moments.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment