EllipseFitResult
01 Syntax
Microsoft.VisualBasic.Math.LinearAlgebra.EllipseFitResult
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| FitEllipse | 1 | 这个模块实现的是代数拟合椭圆(Algebraic ellipse fitting),通过 SVD 对给定点集拟合一条二次曲线,使其在最小二乘意义下逼近这些点。 |
| BuildDesignMatrix | 1 | 构建设计矩阵 M = [x², xy, y², x, y, 1] |
| ExtractEllipseParameters | 1 | 从系数向量提取椭圆几何参数 |
| NormalizeAngle | 1 | 规范化角度到 [0, π) 范围 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Center | 1 | 椭圆的中心点(h,k) |
| SemiMajorAxis | 1 | 长半轴 |
| SemiMinorAxis | 1 | 短半轴 |
| RotationAngle | 1 | 旋转角度(弧度) |
| Coefficients | 1 | 原始系数向量 [A, B, C, D, E, F] |
| Area | 1 | 计算并返回椭圆的面积。 |
04 Members
FitEllipse(
PointF(), Boolean)这个模块实现的是代数拟合椭圆(Algebraic ellipse fitting),通过 SVD 对给定点集拟合一条二次曲线,使其在最小二乘意义下逼近这些点。
Remarks
不适用于PCA的统计椭圆的拟合
Parameters
| Name | Type | Description |
|---|---|---|
points | PointF() | - |
strict | Boolean | - |
BuildDesignMatrix(
PointF())构建设计矩阵 M = [x², xy, y², x, y, 1]
ExtractEllipseParameters(Vector,
Boolean)从系数向量提取椭圆几何参数
NormalizeAngle(
Double)规范化角度到 [0, π) 范围
Center
椭圆的中心点(h,k)
SemiMajorAxis
长半轴
SemiMinorAxis
短半轴
RotationAngle
旋转角度(弧度)
Coefficients
原始系数向量 [A, B, C, D, E, F]
Area
计算并返回椭圆的面积。
Returns
椭圆的面积,类型为 Double。