vol_euler_number — 3D feature op

Datenarten: voxelmeasurement

Aufruf: import fullseye as fs; fs.ledger.vol_euler_number(vol_binary, connectivity=26) (die Implementierung direkt: import volops; volops.vol_euler_number(vol_binary, connectivity=26); aus dem Register: ops3d.get("vol_euler_number"))

Rückgabewert über das Register: fullseye.ledger.vol_euler_number(...) liefert **nur den Wert des deklarierten Out-Typs measurement** (die zugrunde liegende Funktion gibt zusätzlich Hilfsinformationen zurück). Wird das Verworfene gebraucht, nutze fullseye.ledger.vol_euler_number.raw(...) oder rufe volops.vol_euler_number direkt auf.

• Rückgabe der Funktion: chi(b0-b1+b2)

Verwendung

Euler-Charakteristik eines Binärvolumens, aufgeschlüsselt in ihre drei Betti-Zahlen.

> Die ausführliche Beschreibung unten ist der Originaltext — Zusammenfassung und Überschriften sind übersetzt.

`chi = b0 - b1 + b2 where b0 counts **separate objects**, b1`

counts tunnels (handles that pass right through) and `b2` counts

enclosed cavities. For porous media that split is the whole point:

`b1` is open, connected porosity — the paths a fluid can take — while

`b2 is closed porosity that no fluid reaches. A single chi` cannot

tell a foam with many tunnels from one with many sealed bubbles; the three

numbers can.

*connectivity* is `6, 18 or 26` for the foreground; the background

is counted with the complementary neighbourhood (`26 vs 6`), which is

what makes the pair of counts consistent — using the same neighbourhood for

both is the classical way to produce a set that is simultaneously connected

and disconnected.

Returns ``{"euler": chi, "objects": b0, "tunnels": b1, "cavities": b2,

"connectivity": connectivity}`. b1 is derived as b0 + b2 - chi`, so

it inherits the exactness of the other three.

HALCON's `euler_number` is 2-D (regions) only; there is no voxel

equivalent.

Referenzen (Beispieldaten, Literatur)

• Katalog der Beispieldaten (Download-URLs / Lizenzen) — 2-D nutzt skimage.data (BSD/Public Domain) plus synthetische Bilder, 3-D nennt Download-URLs echter Datenquellen (Stanford, PDS, …).

• Herkunft und Literatur der Operatoren — die Quellen der Forschung/Verfahren, auf denen diese Operatorfamilie beruht.

Ausführbare Beispiele (verifizierte Samples, die diesen Operator wirklich aufrufen)

ct_porosity_and_fibre_morphometrypy -3.11 examples_3d/ct_porosity_and_fibre_morphometry.py

Typkompatible Folge-Operatoren (nehmen measurement als Eingabe)

vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle

Gleiche Kategorie (feature)

sobel3d · hessian3d · curvature_maps · edt_jfa · vol_frangi · vol_local_std · vol_local_thickness · vol_orientation_coherence


*Provenance: volops.py — 3D Operator-Registry. Diese Notiz wird von tools/opdocs.py md erzeugt (nicht von Hand bearbeiten).*

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