| Cv2WarpPerspective Method (InputArray, OutputArray, InputArray, Size, InterpolationFlags, BorderTypes, NullableScalar) |
Applies a perspective transformation to an image.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void WarpPerspective(
InputArray src,
OutputArray dst,
InputArray m,
Size dsize,
InterpolationFlags flags = InterpolationFlags.Linear,
BorderTypes borderMode = BorderTypes.Constant,
Nullable<Scalar> borderValue = null
)
Public Shared Sub WarpPerspective (
src As InputArray,
dst As OutputArray,
m As InputArray,
dsize As Size,
Optional flags As InterpolationFlags = InterpolationFlags.Linear,
Optional borderMode As BorderTypes = BorderTypes.Constant,
Optional borderValue As Nullable(Of Scalar) = Nothing
)
public:
static void WarpPerspective(
InputArray^ src,
OutputArray^ dst,
InputArray^ m,
Size dsize,
InterpolationFlags flags = InterpolationFlags::Linear,
BorderTypes borderMode = BorderTypes::Constant,
Nullable<Scalar> borderValue = nullptr
)
static member WarpPerspective :
src : InputArray *
dst : OutputArray *
m : InputArray *
dsize : Size *
?flags : InterpolationFlags *
?borderMode : BorderTypes *
?borderValue : Nullable<Scalar>
(* Defaults:
let _flags = defaultArg flags InterpolationFlags.Linear
let _borderMode = defaultArg borderMode BorderTypes.Constant
let _borderValue = defaultArg borderValue null
*)
-> unit
Parameters
- src
- Type: OpenCvSharpInputArray
input image. - dst
- Type: OpenCvSharpOutputArray
output image that has the size dsize and the same type as src. - m
- Type: OpenCvSharpInputArray
3x3 transformation matrix. - dsize
- Type: OpenCvSharpSize
size of the output image. - flags (Optional)
- Type: OpenCvSharpInterpolationFlags
combination of interpolation methods (INTER_LINEAR or INTER_NEAREST)
and the optional flag WARP_INVERSE_MAP, that sets M as the inverse transformation (dst -> src). - borderMode (Optional)
- Type: OpenCvSharpBorderTypes
pixel extrapolation method (BORDER_CONSTANT or BORDER_REPLICATE). - borderValue (Optional)
- Type: SystemNullableScalar
value used in case of a constant border; by default, it equals 0.
See Also