Fit a line to the points collection

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

Syntax

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

Parameters

points
array< PointF >[]()[]
The points to be fitted
type
DIST_TYPE
The type of the fitting
normalizedDirection
PointF %
The normalized direction of the fitted line
aPointOnLine
PointF %
A point on the fitted line

See Also