PyContourPoint

class multimodars.PyContourPoint(frame_index, point_index, x, y, z, aortic)

Bases: object

Python representation of a 3D contour point.

frame_index

Frame number in the acquisition sequence.

Type:

int

point_index

Index of this point within its contour.

Type:

int

x

X-coordinate in mm.

Type:

float

y

Y-coordinate in mm.

Type:

float

z

Z-coordinate (depth) in mm.

Type:

float

aortic

True when the point is at an aortic position (relevant for intramural vessel courses).

Type:

bool

Examples

>>> point = PyContourPoint(
...     frame_index=0,
...     point_index=1,
...     x=1.23,
...     y=4.56,
...     z=7.89,
...     aortic=True
... )
distance(other)

Euclidean distance to another PyContourPoint.

Parameters:

other (PyContourPoint) – The target point to measure the distance to.

Returns:

Euclidean distance between the two points in mm.

Return type:

float

Examples

>>> p1.distance(p2)