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.2.1777 (2.4.2.1777)

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
)

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

The rotation matrix that rotate the source image to the destination image.

See Also