http://www.emgu.com
Transforms source image using the specified matrix

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public Image<TColor, TDepth> WarpPerspective<TMapDepth>(
	Matrix<TMapDepth> mapMatrix,
	int width,
	int height,
	INTER interpolationType,
	WARP warpType,
	TColor backgroundColor
)
where TMapDepth : new()
Visual Basic
Public Function WarpPerspective(Of TMapDepth As New) ( _
	mapMatrix As Matrix(Of TMapDepth), _
	width As Integer, _
	height As Integer, _
	interpolationType As INTER, _
	warpType As WARP, _
	backgroundColor As TColor _
) As Image(Of TColor, TDepth)
Visual C++
public:
generic<typename TMapDepth>
where TMapDepth : gcnew()
Image<TColor, TDepth>^ WarpPerspective(
	Matrix<TMapDepth>^ mapMatrix, 
	int width, 
	int height, 
	INTER interpolationType, 
	WARP warpType, 
	TColor backgroundColor
)

Parameters

mapMatrix
Type: Emgu.CV..::..Matrix<(Of <(<'TMapDepth>)>)>
3x3 transformation matrix
width
Type: System..::..Int32
The width of the resulting image
height
Type: System..::..Int32
the height of the resulting image
interpolationType
Type: Emgu.CV.CvEnum..::..INTER
Interpolation type
warpType
Type: Emgu.CV.CvEnum..::..WARP
Warp type
backgroundColor
Type: TColor
A value used to fill outliers

Type Parameters

TMapDepth
The depth type of mapMatrix, should be either float or double

Return Value

The result of the transformation

See Also