Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Many C++ files either include or define a min and max function that often overlaps definition with the OpenCV one.

Try specifying cv::min(), even if you have "using namespace cv;" specified.

You can also use the arguments different ways that make it less likely to have problems.

Normally you would do

result = cv::min(a, b);

but you can also do

cv::min(a, b, result);

You'll note that this does not overlap with any macros that take (x,y).