| Cv2FitLine Method (IEnumerablePoint, DistanceTypes, Double, Double, Double) |
Fits line to the set of 2D points using M-estimator algorithm
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Line2D FitLine(
IEnumerable<Point> points,
DistanceTypes distType,
double param,
double reps,
double aeps
)
Public Shared Function FitLine (
points As IEnumerable(Of Point),
distType As DistanceTypes,
param As Double,
reps As Double,
aeps As Double
) As Line2D
public:
static Line2D^ FitLine(
IEnumerable<Point>^ points,
DistanceTypes distType,
double param,
double reps,
double aeps
)
static member FitLine :
points : IEnumerable<Point> *
distType : DistanceTypes *
param : float *
reps : float *
aeps : float -> Line2D
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint
Input vector of 2D or 3D points - distType
- Type: OpenCvSharpDistanceTypes
Distance used by the M-estimator - param
- Type: SystemDouble
Numerical parameter ( C ) for some types of distances.
If it is 0, an optimal value is chosen. - reps
- Type: SystemDouble
Sufficient accuracy for the radius
(distance between the coordinate origin and the line). - aeps
- Type: SystemDouble
Sufficient accuracy for the angle.
0.01 would be a good default value for reps and aeps.
Return Value
Type:
Line2DOutput line parameters.
See Also