A filter for undistorting images. More...
#include <cvb/undistortion.hpp>
Public Member Functions | |
| const Size2D< int > & | OutSize () const |
| Gives the dimensions of the undistorted images. | |
| std::unique_ptr< Image > | Undistort (const Image &image) const |
| Undistort an image. | |
| void | Undistort (const Image &imageIn, Image &imageOut) const |
| Undistort an image. | |
Static Public Member Functions | |
| static std::unique_ptr< UndistImageFilter > | Create (const Cvb::String &calibrationData, const Size2D< int > &imageSize, bool crop, UndistInterpolationMode interpolationMode=UndistInterpolationMode::Bilinear) |
| Creates an image undistortion filter for a given calibration configuration. | |
A filter for undistorting images.
This filter enables the correction of lens-distorted images. The corresponding correction table is generated for a calibration configuration and a specified image size, which is then applied to distorted images of the same size. To correct individual pixel positions, see UndistPointFilter.
|
inlinestatic |
Creates an image undistortion filter for a given calibration configuration.
| [in] | calibrationData | The calibration configuration in JSON-format. |
| [in] | imageSize | Width and height of the images to undistort. |
| [in] | crop | Whether the output image contains only valid pixels. |
| [in] | interpolationMode | Interpolation mode. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Gives the dimensions of the undistorted images.
|
inline |
Undistort an image.
| [in] | image | The distorted image. |
| Any | exception derived from std::exception including CvbException. |
Undistort an image.
| [in] | imageIn | The distorted image. |
| [out] | imageOut | Buffer receiving the undistorted image. |
| Any | exception derived from std::exception including CvbException. |