Undistortion Sample

The Computer Vision API allows to undistort and distort events.

The sample <install-prefix>/share/metavision/sdk/cv/samples/metavision_undistortion/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.

To start the sample using an image provided in the same directory, run the following command: