1Image Moments {#tutorial_moments}
2=============
3
4Goal
5----
6
7In 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
13Theory
14------
15
16Code
17----
18
19This 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
23Explanation
24-----------
25
26Result
27------
28
29Here it is:
30![](images/Moments_Source_Image.jpg)
31![](images/Moments_Result1.jpg)
32![](images/Moments_Result2.jpg)
33