FisheyeUndistorImage Method |
http://www.emgu.com
Transforms an image to compensate for fisheye lens distortion. The function is simply a combination of fisheye::initUndistortRectifyMap (with unity R ) and remap (with bilinear interpolation).
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void UndistorImage(
IInputArray distorted,
IOutputArray undistored,
IInputArray K,
IInputArray D,
IInputArray Knew = null,
Size newSize = null
)
Public Shared Sub UndistorImage (
distorted As IInputArray,
undistored As IOutputArray,
K As IInputArray,
D As IInputArray,
Optional Knew As IInputArray = Nothing,
Optional newSize As Size = Nothing
)
public:
static void UndistorImage(
IInputArray^ distorted,
IOutputArray^ undistored,
IInputArray^ K,
IInputArray^ D,
IInputArray^ Knew = nullptr,
Size newSize = nullptr
)
static member UndistorImage :
distorted : IInputArray *
undistored : IOutputArray *
K : IInputArray *
D : IInputArray *
?Knew : IInputArray *
?newSize : Size
(* Defaults:
let _Knew = defaultArg Knew null
let _newSize = defaultArg newSize null
*)
-> unit
Parameters
- distorted
- Type: Emgu.CVIInputArray
Image with fisheye lens distortion. - undistored
- Type: Emgu.CVIOutputArray
Output image with compensated fisheye lens distortion. - K
- Type: Emgu.CVIInputArray
Camera matrix - D
- Type: Emgu.CVIInputArray
Input vector of distortion coefficients (k1,k2,k3,k4). - Knew (Optional)
- Type: Emgu.CVIInputArray
Camera matrix of the distorted image. By default, it is the identity matrix but you may additionally scale and shift the result by using a different matrix. - newSize (Optional)
- Type: System.DrawingSize
The function transforms an image to compensate radial and tangential lens distortion.
See Also