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

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

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
)
F#
static member Line2DFitting : 
        points : PointF[] * 
        type : DIST_TYPE * 
        normalizedDirection : PointF byref * 
        aPointOnLine : PointF byref -> unit 

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