Ask Your Question
0

About CV_SWAP macro

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

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
0

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

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

Comments

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 -0500 )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 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 225 times

Last updated: Jul 05 '13