IntrinsicCameraParametersUndistortTColor, TDepth Method (ImageTColor, TDepth) |
http://www.emgu.com
Transforms the image to compensate radial and tangential lens distortion.
The camera matrix and distortion parameters can be determined using cvCalibrateCamera2. For every pixel in the output image the function computes coordinates of the corresponding location in the input image using the formulae in the section beginning. Then, the pixel value is computed using bilinear interpolation. If the resolution of images is different from what was used at the calibration stage, fx, fy, cx and cy need to be adjusted appropriately, while the distortion coefficients remain the same
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.3.0.2824 (3.3.0.2824)
Syntaxpublic Image<TColor, TDepth> Undistort<TColor, TDepth>(
Image<TColor, TDepth> src
)
where TColor : struct, new(), IColor
where TDepth : new()
Public Function Undistort(Of TColor As {Structure, New, IColor}, TDepth As New) (
src As Image(Of TColor, TDepth)
) As Image(Of TColor, TDepth)
public:
generic<typename TColor, typename TDepth>
where TColor : value class, gcnew(), IColor
where TDepth : gcnew()
Image<TColor, TDepth>^ Undistort(
Image<TColor, TDepth>^ src
)
member Undistort :
src : Image<'TColor, 'TDepth> -> Image<'TColor, 'TDepth> when 'TColor : struct, new() and IColor when 'TDepth : new()
Parameters
- src
- Type: Emgu.CVImageTColor, TDepth
The distorted image
Type Parameters
- TColor
- The color type of the image
- TDepth
- The depth of the image
Return Value
Type:
ImageTColor,
TDepthThe corrected image
See Also