Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Moment and Archlength return values - confused

$
0
0
Hello, I had used the moment coding together with the arch length [code](http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html) and found out the number do not match what I had expected. I had an image 500X500 pixel as in this [C:\fakepath\ImageTest.png](/upfiles/14389334882708997.png). Info: Area and Contour Length * Contour[0] - Area (M_00) = 0.00 - Area OpenCV: 0.00 - Length: 994.83 - Hu:0.00 * Contour[1] - Area (M_00) = 0.00 - Area OpenCV: 0.00 - Length: 994.00 - Hu:0.00 For the M00 it state = 0? why 0?? There should be maybe 500 pixel? and the contour found are 2, I may agree due to the two lines in the result window. The biggest confusion is the arch length value. Why 994? if it is a straight line, it should be the size of the image which is 500 pixels. Can someone show me where should I look on?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>