Ask Your Question

About CV_SWAP macro

asked 2013-07-04 19:36:07 -0600

leossa gravatar image

What exactly does the macro CV_SWAP do? It seems like it's similar to cvCvtColor() but I can't find a reference to it at the official docs.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-05 04:52:54 -0600

You would be surprised how well google can help you! As seen in this topic on stackoverflow, the CV_SWAP macro basically takes into 2 variables and a temp variable, swapping the inner values of both variables, using the temp.

edit flag offensive delete link more


Look at the authors name on SO and the time he created the topic ;) it's the same person.

Notas gravatar imageNotas ( 2013-07-05 05:03:44 -0600 )edit

It's not the same name, but probably you are correct. Nevertheless, the solution still applies here. People looking for the problem on this forum, will now find an answer easily.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-05 06:19:54 -0600 )edit

Question Tools


Asked: 2013-07-04 19:36:07 -0600

Seen: 322 times

Last updated: Jul 05 '13