atduskgreg / opencv-processing

OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API
Other
1.32k stars 464 forks source link

Contour.area should call cvContourArea #82

Open jondo opened 8 years ago

jondo commented 8 years ago

... instead of just giving the area of the bounding box.

yaxu commented 7 years ago

Agreed. The documentation says that "In most cases, this is a good approximation for the Contour's area", but I disagree. If you for example want to find out how spiky a contour is, you'll want to find the actual area and compare it with the perimeter.