moments 214 modules/features2d/src/blobdetector.cpp Moments moms = moments(Mat(contours[contourIdx])); moments 3287 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W Moments moments( InputArray array, bool binaryImage = false ); moments 3308 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS void HuMoments( const Moments& moments, double hu[7] ); moments 360 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvMoments( const CvArr* arr, CvMoments* moments, int binary CV_DEFAULT(0)); moments 363 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(double) cvGetSpatialMoment( CvMoments* moments, int x_order, int y_order ); moments 365 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(double) cvGetCentralMoment( CvMoments* moments, int x_order, int y_order ); moments 367 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(double) cvGetNormalizedCentralMoment( CvMoments* moments, moments 373 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvGetHuMoments( CvMoments* moments, CvHuMoments* hu_moments ); moments 71 modules/imgproc/perf/opencl/perf_moments.cpp OCL_TEST_CYCLE() m = cv::moments(src, binaryImage); moments 35 modules/imgproc/perf/perf_moments.cpp TEST_CYCLE() m = cv::moments(src, binaryImage); moments 52 modules/imgproc/src/matchcontours.cpp HuMoments( moments(contour1), ma ); moments 53 modules/imgproc/src/matchcontours.cpp HuMoments( moments(contour2), mb ); moments 48 modules/imgproc/src/moments.cpp static void completeMomentState( Moments* moments ) moments 53 modules/imgproc/src/moments.cpp assert( moments != 0 ); moments 55 modules/imgproc/src/moments.cpp if( fabs(moments->m00) > DBL_EPSILON ) moments 57 modules/imgproc/src/moments.cpp inv_m00 = 1. / moments->m00; moments 58 modules/imgproc/src/moments.cpp cx = moments->m10 * inv_m00; moments 59 modules/imgproc/src/moments.cpp cy = moments->m01 * inv_m00; moments 63 modules/imgproc/src/moments.cpp mu20 = moments->m20 - moments->m10 * cx; moments 65 modules/imgproc/src/moments.cpp mu11 = moments->m11 - moments->m10 * cy; moments 67 modules/imgproc/src/moments.cpp mu02 = moments->m02 - moments->m01 * cy; moments 69 modules/imgproc/src/moments.cpp moments->mu20 = mu20; moments 70 modules/imgproc/src/moments.cpp moments->mu11 = mu11; moments 71 modules/imgproc/src/moments.cpp moments->mu02 = mu02; moments 74 modules/imgproc/src/moments.cpp moments->mu30 = moments->m30 - cx * (3 * mu20 + cx * moments->m10); moments 77 modules/imgproc/src/moments.cpp moments->mu21 = moments->m21 - cx * (mu11 + cx * moments->m01) - cy * mu20; moments 79 modules/imgproc/src/moments.cpp moments->mu12 = moments->m12 - cy * (mu11 + cy * moments->m10) - cx * mu02; moments 81 modules/imgproc/src/moments.cpp moments->mu03 = moments->m03 - cy * (3 * mu02 + cy * moments->m01); moments 87 modules/imgproc/src/moments.cpp moments->nu20 = moments->mu20*s2; moments->nu11 = moments->mu11*s2; moments->nu02 = moments->mu02*s2; moments 88 modules/imgproc/src/moments.cpp moments->nu30 = moments->mu30*s3; moments->nu21 = moments->mu21*s3; moments->nu12 = moments->mu12*s3; moments->nu03 = moments->mu03*s3; moments 397 modules/imgproc/src/moments.cpp static void momentsInTile( const Mat& img, double* moments ) moments 438 modules/imgproc/src/moments.cpp moments[x] = (double)mom[x]; moments 441 modules/imgproc/src/moments.cpp typedef void (*MomentsInTileFunc)(const Mat& img, double* moments); moments 766 modules/imgproc/src/moments.cpp CV_IMPL void cvMoments( const CvArr* arr, CvMoments* moments, int binary ) moments 774 modules/imgproc/src/moments.cpp cv::Moments m = cv::moments(src, binary != 0); moments 775 modules/imgproc/src/moments.cpp CV_Assert( moments != 0 ); moments 776 modules/imgproc/src/moments.cpp *moments = m; moments 780 modules/imgproc/src/moments.cpp CV_IMPL double cvGetSpatialMoment( CvMoments * moments, int x_order, int y_order ) moments 784 modules/imgproc/src/moments.cpp if( !moments ) moments 789 modules/imgproc/src/moments.cpp return (&(moments->m00))[order + (order >> 1) + (order > 2) * 2 + y_order]; moments 793 modules/imgproc/src/moments.cpp CV_IMPL double cvGetCentralMoment( CvMoments * moments, int x_order, int y_order ) moments 797 modules/imgproc/src/moments.cpp if( !moments ) moments 802 modules/imgproc/src/moments.cpp return order >= 2 ? (&(moments->m00))[4 + order * 3 + y_order] : moments 803 modules/imgproc/src/moments.cpp order == 0 ? moments->m00 : 0; moments 807 modules/imgproc/src/moments.cpp CV_IMPL double cvGetNormalizedCentralMoment( CvMoments * moments, int x_order, int y_order ) moments 811 modules/imgproc/src/moments.cpp double mu = cvGetCentralMoment( moments, x_order, y_order ); moments 812 modules/imgproc/src/moments.cpp double m00s = moments->inv_sqrt_m00; moments 1709 modules/imgproc/test/test_convhull.cpp CvMoments moments0, moments; moments 1770 modules/imgproc/test/test_convhull.cpp cvMoments( points, &moments ); moments 1775 modules/imgproc/test/test_convhull.cpp moments = (CvMoments)cv::moments(cv::cvarrToMat(points)); moments 1784 modules/imgproc/test/test_convhull.cpp int i, n = (int)(sizeof(moments)/sizeof(moments.inv_sqrt_m00)); moments 1802 modules/imgproc/test/test_convhull.cpp double v = i < n ? (&moments.m00)[i] : area; moments 181 modules/imgproc/test/test_moments.cpp moments(u, is_binary != 0); moments 183 modules/imgproc/test/test_moments.cpp Moments new_m = moments(u, is_binary != 0); moments 453 modules/imgproc/test/test_moments.cpp Moments m = moments(points, false); moments 81 modules/video/src/camshift.cpp Moments m = isUMat ? moments(umat(cur_rect)) : moments(mat(cur_rect)); moments 141 modules/video/src/camshift.cpp Moments m = isUMat ? moments(umat(window)) : moments(mat(window)); moments 66 samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp { mu[i] = moments( contours[i], false ); }