PyGeometryPair

class multimodars.PyGeometryPair(geom_a, geom_b, label)

Bases: object

Python representation of a diastolic/systolic geometry pair.

geom_a

First geometry (typically diastolic).

Type:

PyGeometry

geom_b

Second geometry (typically systolic).

Type:

PyGeometry

label

Human-readable label for this geometry pair.

Type:

str

Examples

>>> pair = PyGeometryPair(
...     geom_a=diastole,
...     geom_b=systole,
...     label="Pat00_rest"
... )
create_deformation_table()
get_summary()

Get summaries for both geometries and a per-frame deformation table.

Calls PyGeometry.get_summary() on each contained geometry and additionally computes per-frame area and elliptic ratio for both phases.

Returns:

  • summaries (tuple) – ((dia_mla, dia_max_stenosis, dia_len_mm), (sys_mla, sys_max_stenosis, sys_len_mm)).

  • table (list of list of float) – Matrix of shape (N, 6) with columns [id, area_dia, ellip_dia, area_sys, ellip_sys, z].