Undistortion Sample using C++

The Computer Vision API allows to undistort and distort events.

The sample metavision_undistortion.cpp shows how to use the Metavision SDK CV with its Metavision::CameraGeometry class to undistort and distort events. More specifically, this sample shows how to undistort events represented by Eigen types and also undistort events represented by other types.

Expected Output

The sample visualizes:

  • input (distorted) image on the left

  • undistorted image on the right

Expected Output from Metavision Undistortion Sample

It also outputs the coordinates of undistorted events.

How to start

First, compile the sample as described in this tutorial. It will use the image dist.jpg provided in the sample directory.

To start the sample, run the following command:

Linux

./metavision_undistortion

Windows

metavision_undistortion.exe