Files
lipan 29f1d45d66 feat: 算法升级、整车配准集成与性能分析文档
算法更新: delivery v1.2.1、平整度v1.5、测距v2.2、整车配准v1.3
适配器: vehicle-registration 新增、各算法 manifest 和 adapter 更新
后端: taskCadFiles/source 字段迁移、derivedPointClouds 注册、取消任务联动
前端: ElapsedTime 时长显示、两步算法流程、canRun 逻辑修复
文档: 新增5份算法性能分析报告
2026-06-25 08:22:20 +00:00

68 lines
2.1 KiB
Python

"""Point-cloud-only underframe beam deflection measurement.
Public API (stable across patch releases — see USAGE.md):
- :func:`compute_deflection` — pure, in-memory computation; returns a
:class:`DeflectionResult`.
- :func:`load_point_cloud` — read a PLY/XYZ/CSV file into a numpy array.
- :class:`DeflectionResult`, :class:`SideDeflection`, :class:`DeflectionCurves`
— the result schema.
- :mod:`underframe_deflection.artifacts` — optional file writers
(JSON / CSV / PNG plots / coloured PLY overlays).
- :mod:`underframe_deflection.exceptions` — exception hierarchy.
- :func:`run_measurement_pipeline` — convenience wrapper that does
read + compute + write-all in one call.
"""
from ._version import ALGORITHM_VERSION, SCHEMA_VERSION, __version__
from .api import (
DeflectionCurves,
DeflectionResult,
ProgressCallback,
SideDeflection,
compute_deflection,
load_point_cloud,
)
from .cad_io import read_cad_reference
from .exceptions import (
DeflectionError,
FrameInferenceError,
InsufficientPointsError,
InvalidPointCloudError,
UnsupportedFormatError,
)
from .pipeline import run_measurement_pipeline
from .preprocess import bilateral_filter_points
from .registration import RegistrationResult, register_to_cad
from .roi import apply_passthrough, load_roi_aabb
from .single_beam import SingleBeamResult, measure_single_beam
from .single_beam_pipeline import run_both_beams, run_single_beam_pipeline
__all__ = [
"__version__",
"ALGORITHM_VERSION",
"SCHEMA_VERSION",
"compute_deflection",
"load_point_cloud",
"DeflectionResult",
"SideDeflection",
"DeflectionCurves",
"ProgressCallback",
"run_measurement_pipeline",
"DeflectionError",
"InvalidPointCloudError",
"InsufficientPointsError",
"FrameInferenceError",
"UnsupportedFormatError",
"read_cad_reference",
"load_roi_aabb",
"apply_passthrough",
"bilateral_filter_points",
"register_to_cad",
"RegistrationResult",
"measure_single_beam",
"SingleBeamResult",
"run_single_beam_pipeline",
"run_both_beams",
]