Fit a line to the points collection

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

Syntax

C#
public static void Line2DFitting(
	PointF[] points,
	DIST_TYPE type,
	out PointF normalizedDirection,
	out PointF aPointOnLine
)
Visual Basic (Declaration)
Public Shared Sub Line2DFitting ( _
	points As PointF(), _
	type As DIST_TYPE, _
	<OutAttribute> ByRef normalizedDirection As PointF, _
	<OutAttribute> ByRef aPointOnLine As PointF _
)
Visual C++
public:
static void Line2DFitting(
	array<PointF>^ points, 
	DIST_TYPE type, 
	[OutAttribute] PointF% normalizedDirection, 
	[OutAttribute] PointF% aPointOnLine
)

Parameters

points
Type: array< System.Drawing..::.PointF >[]()[]
The points to be fitted
type
Type: Emgu.CV.CvEnum..::.DIST_TYPE
The type of the fitting
normalizedDirection
Type: System.Drawing..::.PointF %
The normalized direction of the fitted line
aPointOnLine
Type: System.Drawing..::.PointF %
A point on the fitted line

See Also