层级:四层 · 领域高阶算法层 定位:将图像提升为场实体,标量场(灰度)/矢量场(RGB)/张量场;场是一等几何对象。
| 场算子 | 图像处理含义 |
|---|---|
| field_gradient | 边缘检测(Sobel/Canny 的数学本质) |
| field_laplacian | 模糊/锐化(LoG) |
| field_integrate | 直方图/总量积分 |
| field_clamp | 阈值分割 |
| field_isosurface | 等值线提取 → 分割 |
| 文件 | 内容 |
|---|---|
| scalar_field.mbt | 标量场:2D 标量场类型 + 求值/设值/最值 |
| vector_field.mbt | 矢量场:2D 矢量场类型 + 求值/幅值 |
| tensor_field.mbt | 张量场:结构张量 + 特征值分解 |
| field_ops.mbt | 场算子:梯度/散度/旋度/拉普拉斯/积分/阈值/代数/等值/直方图 |
| field_bind.mbt | Image ↔ ScalarField / VectorField 双向转换 |
fn ScalarField::constant(width : Int, height : Int, value : Float) -> ScalarField raise core/types.LoadErrorfn ScalarField::make(width : Int, height : Int, data : Array[Float]) -> ScalarField raise core/types.LoadErrorfn TensorField::make(width : Int, height : Int, rows : Int, cols : Int, data : Array[Float]) -> TensorField raise core/types.LoadErrorfn TensorField::zeros(width : Int, height : Int, rows : Int, cols : Int) -> TensorField raise core/types.LoadErrorfn VectorField::make(width : Int, height : Int, dim : Int, data : Array[Float]) -> VectorField raise core/types.LoadErrorfn VectorField::zeros(width : Int, height : Int, dim : Int) -> VectorField raise core/types.LoadErrorfn field_blend(a : ScalarField, b : ScalarField, alpha : Float) -> ScalarField raise core/types.LoadErrorfn field_clamp(field : ScalarField, lo : Float, hi : Float) -> ScalarField raise core/types.LoadErrorfn field_histogram(field : ScalarField, min_val : Float, max_val : Float, bins : Int) -> Array[Int] raise core/types.LoadErrorfn field_isosurface(field : ScalarField, level : Float, epsilon : Float) -> ScalarField raise core/types.LoadErrorInstall
Download zipMoonBit computer vision: OCR, face recognition, pose estimation, SLAM, video, 3D vision.