The CamUndist sample demonstrates how to use the MV Camera Undistortion filter in combination with the MV Smart Control to apply a camera calibration parameter set to a camera in order to eliminate geometrical distortion.
This and other sample applications can be found in the MV Development Kit installation directory.
Filter Graph Summary
The filter graph of the CamUndist sample is quite simple. It only contains the MV Camera Undistortion filter in a live video preview graph. To use the filter in your own application, insert the MV Camera Undistortion filter after the video source filter.
CamUndist Sample Filter Graph
The Application
The CamUndist sample application contains a few controls. It uses the MV Smart Control to load and control the filter configuration and shows the live video. The MV Video Source Combo Box and the MV Select Input Combo Box are used to select a video source. The Load button opens a file dialog in order to select a camera calibration parameter file (*.mvc) for the selected camera. To use the undistortion function of the MV Camera Undistortion filter, enable the Undistortion checkbox. Use the MV CamCalib application to create a camera calibration parameter file for you camera.