fit op• Data kinds: mask → measurement
• Call: import fullseye as fs; fs.ledger.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float' (implementation को सीधे call करना हो तो import measure; measure.region_perimeter_estimate(region, method: 'str' = 'skimage') -> 'float', registry से लेना हो तो opsfit.get("region_perimeter_estimate"))
• GPU: नहीं (केवल CPU reference implementation)
चुने हुए estimator से binary region की परिधि मापता है。
> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।
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 の既定値は変更しない。推定量を選ぶ必要があるときだけ、この関数を明示して使う。
• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।
• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।
• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।
• shape_factors_closed_form — py -3.11 examples/shape_factors_closed_form.py
measurement को input के रूप में लेते हैं)—
fit)fit_circle_geometric · fit_curve_principal_axis
*Provenance: measure.py — FIT operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.