Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Which is more efficient, calculate a contour area or count number of ROI pixels?

In a case were you only want relative areas, which one is faster to compute: calculate a contour area - contourArea() - or count the number of ROI non-zero pixels?

You can assume the contours have been found and you have everything needed to do either case.

Which is more efficient, calculate a contour area use contourArea() or count number of ROI non-zero pixels?

In a case were you only want relative areas, which one is faster to compute: calculate a contour area - contourArea() - or count the number of ROI non-zero pixels?

You can assume the contours have been found and you have everything needed to do either case.