| Cv2FishEyeUndistortImage Method |
Transforms an image to compensate for fisheye lens distortion.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void UndistortImage(
InputArray distorted,
OutputArray undistorted,
InputArray k,
InputArray d,
InputArray knew = null,
Size newSize = null
)
Public Shared Sub UndistortImage (
distorted As InputArray,
undistorted As OutputArray,
k As InputArray,
d As InputArray,
Optional knew As InputArray = Nothing,
Optional newSize As Size = Nothing
)
public:
static void UndistortImage(
InputArray^ distorted,
OutputArray^ undistorted,
InputArray^ k,
InputArray^ d,
InputArray^ knew = nullptr,
Size newSize = nullptr
)
static member UndistortImage :
distorted : InputArray *
undistorted : OutputArray *
k : InputArray *
d : InputArray *
?knew : InputArray *
?newSize : Size
(* Defaults:
let _knew = defaultArg knew null
let _newSize = defaultArg newSize null
*)
-> unit
Parameters
- distorted
- Type: OpenCvSharpInputArray
image with fisheye lens distortion. - undistorted
- Type: OpenCvSharpOutputArray
Output image with compensated fisheye lens distortion. - k
- Type: OpenCvSharpInputArray
Camera matrix - d
- Type: OpenCvSharpInputArray
Input vector of distortion coefficients (k_1, k_2, k_3, k_4). - knew (Optional)
- Type: OpenCvSharpInputArray
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: OpenCvSharpSize
[Missing <param name="newSize"/> documentation for "M:OpenCvSharp.Cv2.FishEye.UndistortImage(OpenCvSharp.InputArray,OpenCvSharp.OutputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.Size)"]
See Also