This will solve #518.
oriented_contour_area will first check the provided points, if there are no points, 1 point or 2 points (line) then the result will be 0.0, otherwise triangle formula is used with the last difference computed first.
contour_area will return the absolute value of the oriented_contour_area. I don't like the boolean flag for orientation as in OpenCV, because it will be very easy to confuse it
This will solve #518.
oriented_contour_area
will first check the provided points, if there are no points, 1 point or 2 points (line) then the result will be 0.0, otherwise triangle formula is used with the last difference computed first.contour_area
will return the absolute value of theoriented_contour_area
. I don't like the boolean flag for orientation as in OpenCV, because it will be very easy to confuse it