Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

non rect ROI defined by 4 points

Hi, I would use the method countNonZero (InputArray src) on a ROI of my image; The ROI is not a rect, but it's defined by the points A, B, C, D like in the figure.

How can I use this method on this ROI?

image description

non not rect ROI defined by 4 points

Hi, I would use the method countNonZero (InputArray src) on a ROI of my image; The ROI is not a rect, but it's defined by the points A, B, C, D like in the figure.

How can I use this method on this ROI?

image description

not rect ROI defined by 4 points

Hi, I would use the method countNonZero (InputArray src) on a ROI of my image; The ROI is not a rect, but it's defined by the points A, B, C, D like the red zone in the figure.

How can I use this method on this ROI?

image description