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)
Syntaxpublic static void FitLine(
PointF[] points,
out PointF direction,
out PointF pointOnLine,
DistType distType,
double param,
double reps,
double aeps
)
Public Shared Sub FitLine (
points As PointF(),
<OutAttribute> ByRef direction As PointF,
<OutAttribute> ByRef pointOnLine As PointF,
distType As DistType,
param As Double,
reps As Double,
aeps As Double
)
public:
static void FitLine(
array<PointF>^ points,
[OutAttribute] PointF% direction,
[OutAttribute] PointF% pointOnLine,
DistType distType,
double param,
double reps,
double aeps
)
static member FitLine :
points : PointF[] *
direction : PointF byref *
pointOnLine : PointF byref *
distType : DistType *
param : float *
reps : float *
aeps : float -> unit
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