fit op• 数据种类:mask → measurement
• 调用: import fullseye as fs; fs.ledger.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float'(要直接调用实现,import measure; measure.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float';从台账取用则 opsfit.get("region_perimeter_estimate"))
• GPU:无(仅 CPU 参考实现)
使用明确选择的估计器测量二值区域的周长。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
method='skimage' uses skimage.measure.perimeter with its four-neighbour convention, the same estimator used by the existing contlength and compactness operators for a single connected component. 'crofton' uses skimage.measure.perimeter_crofton(..., directions=4). 'chain' counts exposed four-direction pixel edges (a Freeman 4-chain length); it is available without scikit-image and is exact for an axis-aligned pixel square, but has a large positive bias for a circle.
The value is in pixels and includes every foreground component and every hole. Foreground means region > 0.5. An empty input (region with zero elements) returns an empty perimeter (reason: without foreground pixels, no exposed edge exists to measure); its numeric value is 0.0. 空の入力(region が 0 要素)は空の周囲長を返す(理由: 前景画素が無く、測る露出辺も無い)。数値は 0.0 となる。これは普遍的に真な周囲長を選ぶのではなく、次の *measurement convention* である:
on the fixed closed-form probes (disc r=96, square side 128), the ratios to truth are respectively 1.0518 / 0.9922 (skimage), 1.0016 / 0.9459 (crofton), and 1.2799 / 1.0000 (chain). Do not substitute its result into an existing feature threshold without revalidating that threshold.
region must be a finite numeric 2-D array. Invalid dimensionality, values, or a method other than 'skimage', 'crofton' or 'chain' raises ValueError; the scikit-image methods raise ImportError when that optional dependency is unavailable. 既存 op の既定値は変更しない。推定量を選ぶ必要があるときだけ、この関数を明示して使う。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• shape_factors_closed_form — py -3.11 examples/shape_factors_closed_form.py
measurement 作为输入)—
fit)fit_circle_geometric · fit_curve_principal_axis
*Provenance: measure.py — FIT 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.