Fits line to 2D or 3D point set
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.0.1010 (2.2.0.1010)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- points
- IntPtr
Sequence or array of 2D or 3D points with 32-bit integer or floating-point coordinates
- distType
- DIST_TYPE
The distance used for fitting
- param
- Double
Numerical parameter (C) for some types of distances, if 0 then some optimal value is chosen
- reps
- Double
Sufficient accuracy for radius (distance between the coordinate origin and the line), 0.01 would be a good default
- aeps
- Double
Sufficient accuracy for angle, 0.01 would be a good default
- line
- array<Single>[]()[][]
The output line parameters. In case of 2d fitting it is array of 4 floats (vx, vy, x0, y0) where (vx, vy) is a normalized vector collinear to the line and (x0, y0) is some point on the line. In case of 3D fitting it is array of 6 floats (vx, vy, vz, x0, y0, z0) where (vx, vy, vz) is a normalized vector collinear to the line and (x0, y0, z0) is some point on the line.