Can not calculate full area of contour
When I rotated the object, I calculated the area of the contours. I do not know why there is so far differences between two areas although the shape was not changed so much.
1st image: area is about 11300 2nd image: area is about 120
The program is the same in this link, so simple: http://docs.opencv.org/2.4/doc/tutori...
Please help me to solve this problems!
Is the second contour the contour of a contour? can you post the 2 images on witch you have computed the contours?
I projected the object to image. The object was turned 36degree before projected to the 2nd image. Both of two images are the largest contour for each one. Here there are.
Ok, that is strange, can you post also the code of computing the area of the contour? Is it a vector of contours and you are computing the area of the 1st and the 2nd contours? Aren't there more than 2 contours in your result?
I must wait for 48hours from the 1st post. But my code is the same with OpenCv source: http://docs.opencv.org/2.4/doc/tutori... I have just found the largest contour from lots of other contours, absolutely, I have already checked all areas.