Ask Your Question

Problems using the math.h class with OpenCV (c++, VS2012)

asked 2012-10-08 16:58:07 -0600

Jordan gravatar image


I'm trying to get my software to work with OpenCV, but am having compile issues. My code uses the math.h "min" function, which takes two numerical input parameters. When I include "core.hpp", however, it starts trying to use the xutility "min" function instead (which also seems to be in the "std" namespace?), which takes 3 parameters and seems to be for some other use. I cannot seem to get VS to use the math.h min function instead of the xutility one. Any suggestions?

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-10-10 05:59:52 -0600

Daniil Osokin gravatar image

Hi! You can specify required function by namespace prefix:


edit flag offensive delete link more

Question Tools


Asked: 2012-10-08 16:58:07 -0600

Seen: 1,248 times

Last updated: Oct 10 '12