http://www.emgu.com
Fit a line to the points collection

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

Syntax

C#
public static void Line2DFitting(
	PointF[] points,
	DIST_TYPE type,
	out PointF normalizedDirection,
	out PointF aPointOnLine
)
Visual Basic
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