The landmark_utils.py
module#
Summary#
Compute the long and short axes of the left ventricle. |
|
Compute the AHA17 label for left ventricle elements. |
|
Compute elemental coordinate system for AHA elements. |
Description#
Module for computing heart anatomical landmarks.
Module detail#
- landmark_utils.compute_anatomy_axis(mv_center: numpy.ndarray, av_center: numpy.ndarray, apex: numpy.ndarray, first_cut_short_axis: float = 0.2) tuple[dict, dict, dict] #
Compute the long and short axes of the left ventricle.
- Parameters:
- mv_center
np.ndarray
Mitral valve center.
- av_center
np.ndarray
Aortic valve center.
- apex
np.ndarray
Left ventricle epicardium apex point.
- first_cut_short_axis
float
, default: 0.2 Relative distance between the mitral valve center and apex, which is used for defining the center of the short axis.
- mv_center
- Returns:
- landmark_utils.compute_aha17(model: ansys.health.heart.models.HeartModel, short_axis: dict, l4cv_axis: dict, seg: Literal[16, 17] = 17, p_junction: numpy.ndarray = None) numpy.ndarray #
Compute the AHA17 label for left ventricle elements.
- Parameters:
- model
HeartModel
Heart model.
- short_axis
dict
Short axis.
- l4cv_axis
dict
Long 4CV axis.
- seg
Literal
[16, 17], default: 17 Compute 16 or 17 segments.
- p_junction
np.ndarray
, default:None
LV and RV junction points. If these points are given, they defines the start of segment 1. If they are not given, the start point is defined by rotating 60 degrees from the 4CV axis.
- model
- Returns:
np.ndarray
AHA17 IDs. No concerned elements are assigned with
np.nan
.
- landmark_utils.compute_element_cs(model: ansys.health.heart.models.HeartModel, short_axis: dict, aha_element: numpy.ndarray) tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray] #
Compute elemental coordinate system for AHA elements.