Home | History | Annotate | Download | only in moments
      1 Image Moments {#tutorial_moments}
      2 =============
      3 
      4 Goal
      5 ----
      6 
      7 In this tutorial you will learn how to:
      8 
      9 -   Use the OpenCV function @ref cv::moments
     10 -   Use the OpenCV function @ref cv::contourArea
     11 -   Use the OpenCV function @ref cv::arcLength
     12 
     13 Theory
     14 ------
     15 
     16 Code
     17 ----
     18 
     19 This tutorial code's is shown lines below. You can also download it from
     20 [here](https://github.com/Itseez/opencv/tree/master/samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp)
     21 @include samples/cpp/tutorial_code/ShapeDescriptors/moments_demo.cpp
     22 
     23 Explanation
     24 -----------
     25 
     26 Result
     27 ------
     28 
     29 Here it is:
     30 ![](images/Moments_Source_Image.jpg)
     31 ![](images/Moments_Result1.jpg)
     32 ![](images/Moments_Result2.jpg)
     33