/external/opencv/cv/src/ |
cvmoments.cpp | 43 /* The function calculates center of gravity and central second order moments */ 45 icvCompleteMomentState( CvMoments* moments ) 50 assert( moments != 0 ); 51 moments->inv_sqrt_m00 = 0; 53 if( fabs(moments->m00) > DBL_EPSILON ) 55 double inv_m00 = 1. / moments->m00; 56 cx = moments->m10 * inv_m00; 57 cy = moments->m01 * inv_m00; 58 moments->inv_sqrt_m00 = sqrt( fabs(inv_m00) ); 62 mu20 = moments->m20 - moments->m10 * cx [all...] |
cvcamshift.cpp | 64 CvMoments moments; local 75 moments.m00 = moments.m10 = moments.m01 = 0; 101 CV_CALL( cvMoments( &cur_win, &moments )); 104 if( fabs(moments.m00) < DBL_EPSILON ) 107 inv_m00 = moments.inv_sqrt_m00*moments.inv_sqrt_m00; 108 dx = cvRound( moments.m10 * inv_m00 - windowIn.width*0.5 ); 109 dy = cvRound( moments.m01 * inv_m00 - windowIn.height*0.5 ) 171 CvMoments moments; local [all...] |
cvmatchcontours.cpp | 61 CvMoments moments; local 76 /* first moments calculation */ 77 CV_CALL( cvMoments( contour1, &moments )); 79 /* Hu moments calculation */ 80 CV_CALL( cvGetHuMoments( &moments, &huMoments )); 91 /* second moments calculation */ 92 CV_CALL( cvMoments( contour2, &moments )); 94 /* Hu moments calculation */ 95 CV_CALL( cvGetHuMoments( &moments, &huMoments ));
|
/external/opencv3/modules/imgproc/src/ |
moments.cpp | 47 // The function calculates center of gravity and the central second order moments 48 static void completeMomentState( Moments* moments ) 53 assert( moments != 0 ); 55 if( fabs(moments->m00) > DBL_EPSILON ) 57 inv_m00 = 1. / moments->m00; 58 cx = moments->m10 * inv_m00; 59 cy = moments->m01 * inv_m00; 63 mu20 = moments->m20 - moments->m10 * cx 556 cv::Moments cv::moments( InputArray _src, bool binary ) function in class:cv [all...] |
matchcontours.cpp | 52 HuMoments( moments(contour1), ma ); 53 HuMoments( moments(contour2), mb );
|
/external/opencv3/modules/imgproc/perf/opencl/ |
perf_moments.cpp | 55 ///////////// Moments //////////////////////// 60 OCL_PERF_TEST_P(MomentsFixture, Moments, 67 cv::Moments m; 71 OCL_TEST_CYCLE() m = cv::moments(src, binaryImage);
|
/external/opencv3/modules/imgproc/perf/ |
perf_moments.cpp | 31 cv::Moments m; 35 TEST_CYCLE() m = cv::moments(src, binaryImage); 37 int len = (int)sizeof(cv::Moments) / sizeof(double); 39 //adding 1 to moments to avoid accidental tests fail on values close to 0
|
/external/opencv3/modules/imgproc/ |
opencl_kernels_imgproc.cpp | 5976 const struct ProgramEntry moments={"moments", member in namespace:cv::ocl::imgproc [all...] |
opencl_kernels_imgproc.hpp | 60 extern const struct ProgramEntry moments;
|
/external/opencv3/modules/video/src/ |
camshift.cpp | 81 Moments m = isUMat ? moments(umat(cur_rect)) : moments(mat(cur_rect)); 140 // Calculating moments in new center mass 141 Moments m = isUMat ? moments(umat(window)) : moments(mat(window));
|
/external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/ |
moments_demo.cpp | 3 * @brief Demo code to calculate moments 63 /// Get the moments 64 vector<Moments> mu(contours.size() ); 66 { mu[i] = moments( contours[i], false ); } 86 /// Calculate the area with the moments 00 and compare with the result of the OpenCV function
|
/external/opencv3/samples/python2/ |
digits_video.py | 70 m = cv2.moments(bin_roi)
|
digits.py | 60 m = cv2.moments(img)
|
/external/opencv3/modules/imgproc/include/opencv2/imgproc/ |
imgproc_c.h | 357 /** @brief Calculates all spatial and central moments up to the 3rd order 358 @see cv::moments 360 CVAPI(void) cvMoments( const CvArr* arr, CvMoments* moments, int binary CV_DEFAULT(0)); 362 /** @brief Retrieve spatial moments */ 363 CVAPI(double) cvGetSpatialMoment( CvMoments* moments, int x_order, int y_order ); 364 /** @brief Retrieve central moments */ 365 CVAPI(double) cvGetCentralMoment( CvMoments* moments, int x_order, int y_order ); 366 /** @brief Retrieve normalized central moments */ 367 CVAPI(double) cvGetNormalizedCentralMoment( CvMoments* moments, 370 /** @brief Calculates 7 Hu's invariants from precalculated spatial and central moments [all...] |
/external/opencv3/modules/imgproc/test/ |
test_moments.cpp | 53 // image moments 181 moments(u, is_binary != 0); 183 Moments new_m = moments(u, is_binary != 0); 301 /* calc normalized moments */ 453 Moments m = moments(points, false);
|
test_convhull.cpp | 1709 CvMoments moments0, moments; member in class:CV_ContourMomentsTest [all...] |
/external/opencv/cv/include/ |
cv.h | 347 /* Calculates all spatial and central moments up to the 3rd order */ 348 CVAPI(void) cvMoments( const CvArr* arr, CvMoments* moments, int binary CV_DEFAULT(0)); 350 /* Retrieve particular spatial, central or normalized central moments */ 351 CVAPI(double) cvGetSpatialMoment( CvMoments* moments, int x_order, int y_order ); 352 CVAPI(double) cvGetCentralMoment( CvMoments* moments, int x_order, int y_order ); 353 CVAPI(double) cvGetNormalizedCentralMoment( CvMoments* moments, 356 /* Calculates 7 Hu's invariants from precalculated spatial and central moments */ 357 CVAPI(void) cvGetHuMoments( CvMoments* moments, CvHuMoments* hu_moments ); 757 /* Compares two contours by matching their moments */ [all...] |
cvcompat.h | 344 #define cvContourMoments( contour, moments ) \ 345 cvMoments( contour, moments, 0 ) [all...] |
/external/opencv3/modules/imgproc/src/opencl/ |
moments.cl | 8 __kernel void moments(__global const uchar* src, int src_step, int src_offset,
|
/external/opencv3/modules/features2d/src/ |
blobdetector.cpp | 214 Moments moms = moments(Mat(contours[contourIdx]));
|
/external/ImageMagick/MagickCore/ |
statistic.c | 1784 *moments; local [all...] |
/external/opencv3/modules/imgproc/include/opencv2/ |
imgproc.hpp | [all...] |
/frameworks/base/docs/html/ |
gms_navtree_data.js | [all...] |
/external/ImageMagick/www/api/ |
statistic.php | 270 <p>GetImageMoments() returns the normalized moments of one or more image channels.</p>
|
/external/ImageMagick/Magick++/lib/Magick++/ |
Image.h | [all...] |