Hello, after testing and debugging the code for ImageTest.png using this [code](http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html) I realized that the countours detected are two on the same white area image. This cause the calculation of moments are also 2 for the same white area. My question, why it detect two contours? [C:\fakepath\ImageTest.png](/upfiles/14389242754189891.png)
Second question, I tried also another type of image which the white area are continuous until at the end of the image as in test.png. running moment code does not reflect the white area as the contour is not detected at the end of the image. Is there any method that I can use for the program to know that the white area is the area that I want to calculate even it had touched the boundary of the image?
[C:\fakepath\test.png](/upfiles/1438924632571687.png)
↧