Ask Your Question
1

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

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

Jordan gravatar image

Hello,

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
1

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

Daniil Osokin gravatar image

Hi! You can specify required function by namespace prefix:

std::min(...)

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 1,286 times

Last updated: Oct 10 '12