region_perimeter_estimate — FIT fit op

• Data kinds: mask → measurement

• Call: import fullseye as fs; fs.ledger.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float' (to call the implementation directly, import measure; measure.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float'; from the registry, opsfit.get("region_perimeter_estimate"))

• GPU: none (CPU reference implementation only)

Usage

Estimate a binary region's perimeter with a chosen estimator.

> The detailed description below is the original text — the summary and the headings are translated.

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 の既定値は変更しない。推定量を選ぶ必要があるときだけ、この関数を明示して使う。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• shape_factors_closed_form — py -3.11 examples/shape_factors_closed_form.py

Ops the type connects to (they accept measurement as input)

—

Same category (fit)

fit_circle_geometric · fit_curve_principal_axis


*Provenance: measure.py — FIT operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.