Transforms source image using the specified matrix
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
| | | | | | | | |
| C# | | | Visual Basic | | | Visual C++ | |
public Image<TColor, TDepth> WarpPerspective<TMapDepth>(
Matrix<TMapDepth> mapMatrix,
INTER interpolationType,
WARP warpType,
TColor backgroundColor
)
where TMapDepth : new()
Public Function WarpPerspective(Of TMapDepth As New) ( _
mapMatrix As Matrix(Of TMapDepth), _
interpolationType As INTER, _
warpType As WARP, _
backgroundColor As TColor _
) As Image(Of TColor, TDepth)
public:
generic<typename TMapDepth>
where TMapDepth : gcnew()
Image<TColor, TDepth>^ WarpPerspective(
Matrix<TMapDepth>^ mapMatrix,
INTER interpolationType,
WARP warpType,
TColor backgroundColor
)
Parameters
- mapMatrix
- Matrix<(Of <(<'TMapDepth>)>)>
3x3 transformation matrix
- interpolationType
- INTER
Interpolation type
- warpType
- WARP
Warp type
- backgroundColor
- 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