curvature_flow — SEGMENTATION contour op

• Data kinds: mask → table

• Call: import fullseye as fs; fs.ledger.curvature_flow(phi, *, t_end: 'float' = 50.0, dt: 'float' = 0.2, eta: 'float' = 1e-08, record_every: 'int' = 0) -> 'Dict[str, object]' (implementation को सीधे call करना हो तो import segcontour; segcontour.curvature_flow(phi, *, t_end: 'float' = 50.0, dt: 'float' = 0.2, eta: 'float' = 1e-08, record_every: 'int' = 0) -> 'Dict[str, object]', registry से लेना हो तो opssegmentation.get("curvature_flow"))

उपयोग

mean curvature flow (curve-shortening flow) का level set रूप φ_t = |∇φ| div(∇φ/|∇φ|) (φ < 0 अंदर है, convex हिस्सों से सिकुड़ता है)।

Explicit central differences: φ_t = (φ_xx φ_y² − 2 φ_x φ_y φ_xy + φ_yy φ_x²) / (φ_x² + φ_y² + η), step dt ≤ 0.25 (stability condition)। phi = φ या bool mask (signed distance में बदला जाता है)। हर step पर area clip(0.5 − φ/|∇φ|, 0, 1) का योग है।

Gate: simple closed curve से घिरा area dA/dt = −∮ κ ds = −2π का पालन करता है (winding number 1, convex न हो तब भी)। circle के लिए r(t)² = r0² − 2t।

Returns: phi, mask, times, areas, area_rate (area बनाम time का least squares slope), area_rate_theory = −2π, history (हर record_every steps पर mask), n_steps।

उपयोग की विस्तृत guide

• halcon_segmentation family guide

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• active_contours_and_level_sets — Variational और active contours, level sets — कौन-सा contour कहाँ रुकता है, और वह क्या guarantee देता है

संदर्भ (sample data, साहित्य)

• 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 में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_active_contours — py -3.11 examples/poc_active_contours.py

वे अगले ops जिनसे type जुड़ता है (table को input के रूप में लेते हैं)

class_ndim_norm

इसी category के (contour)

snake_evolve · gvf_field · chan_vese_energy · chan_vese_evolve · morph_chan_vese · morph_geodesic_ac · edge_stop_g · level_set_reinit


*Provenance: segcontour.py — SEGMENTATION operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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