http://www.emgu.com
Create a rotation matrix for rotating an image

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

Syntax

C#
public static RotationMatrix2D<float> CreateRotationMatrix(
	PointF center,
	double angle,
	Size srcImageSize,
	out Size dstImageSize
)
Visual Basic
Public Shared Function CreateRotationMatrix ( 
	center As PointF,
	angle As Double,
	srcImageSize As Size,
	<OutAttribute> ByRef dstImageSize As Size
) As RotationMatrix2D(Of Single)
Visual C++
public:
static RotationMatrix2D<float>^ CreateRotationMatrix(
	PointF center, 
	double angle, 
	Size srcImageSize, 
	[OutAttribute] Size% dstImageSize
)
F#
static member CreateRotationMatrix : 
        center : PointF * 
        angle : float * 
        srcImageSize : Size * 
        dstImageSize : Size byref -> RotationMatrix2D<float32> 

Parameters

center
Type: System.Drawing..::..PointF
The rotation center
angle
Type: System..::..Double
The rotation angle in degrees. Positive values mean couter-clockwise rotation (the coordiate origin is assumed at image centre).
srcImageSize
Type: System.Drawing..::..Size
The source image size
dstImageSize
Type: System.Drawing..::..Size%
The minimun size of the destination image

Return Value

Type: RotationMatrix2D<(Of <(<'Single>)>)>
The rotation matrix that rotate the source image to the destination image.

See Also