Playing with OpenCV

February 26, 2008

OpenCV is a cross platform video library I’ve been playing with. Today I coded up a horizontal mirror effect, took about 30 minutes. I worked out all the byte manipulations on a piece of paper, that took the longest. Coding was a breeze with OpenCV, and I tried out some of the built in effects too, stacking them on top of each other.

Here’s my first version source for the mirror effect, it’s rough since I just translated what I had written down into code. “frame” is a captured IplImage.

Here is the reformed version, cleaner by far.

And here is what it looks like. The first one is without any other effects, the second is with the OpenCV effect “erode”.


You can get the full source of my fxTest.cpp here if you want it.

The Introduction to programming with OpenCV was a great resource for me.

Comments

  1. […] been playing with OpenCV recently and was having troubles with creating effects. That’s all over now thanks to the […]

  2. omid says:

    hi
    thank you

Leave A Comment

Your email will not be published.