Table of Contents

Method PerspectiveTransform

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

PerspectiveTransform(InputArray, OutputArray, InputArray)

performs perspective transformation of each element of multi-channel input matrix

public static void PerspectiveTransform(InputArray src, OutputArray dst, InputArray m)

Parameters

src InputArray

The source two-channel or three-channel floating-point array; each element is 2D/3D vector to be transformed

dst OutputArray

The destination array; it will have the same size and same type as src

m InputArray

3x3 or 4x4 transformation matrix

PerspectiveTransform(IEnumerable<Point2f>, Mat)

performs perspective transformation of each element of multi-channel input matrix

public static Point2f[] PerspectiveTransform(IEnumerable<Point2f> src, Mat m)

Parameters

src IEnumerable<Point2f>

The source two-channel or three-channel floating-point array; each element is 2D/3D vector to be transformed

m Mat

3x3 or 4x4 transformation matrix

Returns

Point2f[]

The destination array; it will have the same size and same type as src

PerspectiveTransform(IEnumerable<Point2d>, Mat)

performs perspective transformation of each element of multi-channel input matrix

public static Point2d[] PerspectiveTransform(IEnumerable<Point2d> src, Mat m)

Parameters

src IEnumerable<Point2d>

The source two-channel or three-channel floating-point array; each element is 2D/3D vector to be transformed

m Mat

3x3 or 4x4 transformation matrix

Returns

Point2d[]

The destination array; it will have the same size and same type as src

PerspectiveTransform(IEnumerable<Point3f>, Mat)

performs perspective transformation of each element of multi-channel input matrix

public static Point3f[] PerspectiveTransform(IEnumerable<Point3f> src, Mat m)

Parameters

src IEnumerable<Point3f>

The source two-channel or three-channel floating-point array; each element is 2D/3D vector to be transformed

m Mat

3x3 or 4x4 transformation matrix

Returns

Point3f[]

The destination array; it will have the same size and same type as src

PerspectiveTransform(IEnumerable<Point3d>, Mat)

performs perspective transformation of each element of multi-channel input matrix

public static Point3d[] PerspectiveTransform(IEnumerable<Point3d> src, Mat m)

Parameters

src IEnumerable<Point3d>

The source two-channel or three-channel floating-point array; each element is 2D/3D vector to be transformed

m Mat

3x3 or 4x4 transformation matrix

Returns

Point3d[]

The destination array; it will have the same size and same type as src