Techn. Fakultät Website deprecated and outdated. Click here for the new site. FAU-Logo

Computer Vision Exercises


Two exercise sessions:


Monday: 12:15 - 13:00, Room 00.151-133 (NEW! MORE SPACE!)

Wednesday: 10:15 - 11:00, Room: 09.150


In the exercises, we will have theoretical and practical assignments. The theoretical assignments aim at a deeper understanding of the principles tought in the lecture. The practical part offers hands-on examples to the participants.

Exercises are not mandatory, but students are strongly encouraged to work through the exercise sheets. Usually we will have one exercise sheet per week. Solutions will be discussed in the exercise at the stated due date.

In case you have questions or need feedback on your work, do not hesitate to contact Opens window for sending emailSimone!



All mathematical concepts that are used in the lecture and exercises should have been covered in the basic lectures on mathematics. Even if you don't remember, it should be possible for you to catch up on-the-fly.

However, if you are interested in refreshing your mind, these are the main concepts used (Disclaimer: probably not an exhaustive list, just a general guideline):


- Linear Algebra, Matrix-/Vector operations
- (Gaussian) Distributions
- Convolution
- Partial derivatives, Gradient
- conditional probability, Bayes Law

- Projections (Orthographic, perspective, ...)
- homogeneous coordinates
- parameterized lines/surfaces
- coordinate transforms




Beginning next week, the exercise slides and solutions will be password protected. The login data will be provided in the lecture and exercises.


Change of rooms: The exercise rooms in the computer science building will be closed next week, so the last exercise sessions will be held at room 01.255-128 (new computer science building)!!

Coding Setup

We use C++ and the Opens external link in new windowOpenCV framework in the assignments.

Have a look at the Opens external link in new windowcurrent OpenCV documentation.


The easiest way is working at the Computer Science CIP-Pools. OpenCV is ready to use there.

First, set the following environmental variables:

export PKG_CONFIG_PATH=/local/opencv/lib/pkgconfig/
export LD_LIBRARY_PATH=/local/opencv/lib

Then, the compiler flags needed to build with OpenCV should be available through this command:

pkg-config opencv --cflags --libs

You can use the output on the command line on the fly:

g++ `pkg-config opencv --cflags --libs` -o example example.cpp

For more convenience, write a Makefile.



Use, e.g., the free Opens external link in new windowExpress Editions of Visual Studio.


Our Linux-Computer-Vision-Guys like to use Opens external link in new windowQT Creator, as it works well with CMake.


Get OpenCV, useOpens external link in new window CMake to create your projects (compare Slides1, see above Slides section).

OpenCV in your code

To use OpenCV for basic image operations, this include line is needed:

#include <opencv2/imgproc/imgproc.hpp>

For file I/O functionality, you also need the "highgui" module:

#include <opencv2/highgui/highgui.hpp>