Ask Your Question

what is the rule to check if a macro definition is in cv namespace

asked 2013-04-15 11:36:50 -0600

I found some of the macro definitions in opencv are within the namespace of cv, while others are not. For example, CV_32F is not within cv namespace, but NORM_L2 is.

Could someone tell me what the rule is to determine if a macro definition is within cv namespace or not? Thanks.

edit retag flag offensive close merge delete



most probably anything changed/added since 2.0 is inside the cv namespace, and anything invented before is not. ( so it does not break bw compatibility )

berak gravatar imageberak ( 2013-04-15 11:44:59 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-16 02:42:09 -0600

Andrey Pavlenko gravatar image

CV_32F is a macro (#define) that can't be under namespace (since v 1.x) NORM_L2 is a enum value that is under namespace cv similar to most of v 2.x stuff.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-15 11:36:50 -0600

Seen: 234 times

Last updated: Apr 16 '13