40 /** Use this class to undistort monocular images if the same distortion map is used over and over again.
41 * Using this class is much more efficient that calling mrpt::utils::CImage::rectifyImage or OpenCV's cvUndistort2(), since
42 * the remapping data is computed only once for the camera parameters (typical times: 640x480 image -> 70% build map / 30% actual undistort).
43 *
44 * Works with grayscale or color images.
45 *
46 * Example of usage:
47 * \code
48 * CUndistortMap unmap;
49 * mrpt::utils::TCamera cam_params;
50 *
51 * unmap.setFromCamParams( cam_params );
52 *
53 * mrpt::utils::CImage img, img_out;
54 *
55 * while (true) {
56 * unmap.undistort(img, img_out); // or:
57 * unmap.undistort(img); // output in place
58 * }
59 *
60 * \endcode
61 *
62 * \sa CStereoRectifyMap, mrpt::utils::TCamera, the application <a href="http://www.mrpt.org/Application:camera-calib" >camera-calib</a> for calibrating a camera.