Click or drag to resize

CvInvokeFitLine Method (PointF, PointF, PointF, DistType, Double, Double, Double)

http://www.emgu.com
Fits line to 2D or 3D point set

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void FitLine(
	PointF[] points,
	out PointF direction,
	out PointF pointOnLine,
	DistType distType,
	double param,
	double reps,
	double aeps
)

Parameters

points
Type: System.DrawingPointF
Input vector of 2D points.
direction
Type: System.DrawingPointF
A normalized vector collinear to the line
pointOnLine
Type: System.DrawingPointF
A point on the line.
distType
Type: Emgu.CV.CvEnumDistType
The distance used for fitting
param
Type: SystemDouble
Numerical parameter (C) for some types of distances, if 0 then some optimal value is chosen
reps
Type: SystemDouble
Sufficient accuracy for radius (distance between the coordinate origin and the line), 0.01 would be a good default
aeps
Type: SystemDouble
Sufficient accuracy for angle, 0.01 would be a good default
See Also