For the “Audio and Video Processing” lecture tomorrow I had to write some simple video filters. The professor recommended to use the DirectShow SDK. But everyone who knows me knows that when there is a way to do something without Windows I will do it without! So I used the OpenCV library from Intel. Which I know from my last semester project. I wrote a little program who uses the iSight as video source. (based on the OpenCV XCode example project) You can select 8 diffrent video filters by pressing number 1-8 on your keyboard.
0: no filter
1: 3×3 Sobelfilter Horizontal
2: 3×3 Sobelfilter Vertical
3: 3×3 Laplace
4: 3×3 Box Filter
5: 3×3 Gauss Filter
6: 5×5 Gauss Filter
5: 5×5 Box Filter
6: 7×7 Box Filter (overflow)
With the key ‘t’ you can add an additional filter who generates four abstract colored pictures.
Downloads:
Sourcecode: Filters.c XCode Project: Filters.zip OpenCV.framework Compiled Binary: FaceTracker.app.zip
April 2 2009, 2:58pm | Original Link »

