Compute lesion morphometric measures¶
Various morphometrics¶
Here, we will see how to compute various morphometric measures on segmented lesions. For example, the number of lesions, lesion length, lesion volume, etc. The statistics will be output in an Excel (XLS) file.
In the case of multiple lesions, the function assigns an ID value to each lesion (1, 2, 3, etc.) and then outputs morphometric measures for each lesion to an XLS file.
The following morphometric measures are computed:
volume [mm^3]
: volume of the lesionlength [mm]
: maximal length of the lesion along the Superior-Inferior (SI) axis across all slices
max_equivalent_diameter [mm]
: maximum diameter of the lesion, when approximating the lesion as a circle in the axial planemax_axial_damage_ratio []
: maximum axial damage ratio defined as the ratio of the lesion area divided by the spinal cord area. The ratio is computed in the axial plane for each slice and and the maximum ratio is reported.
midsagittal_spinal_cord_slice
: midsagittal slice of the spinal cord defined based on the spinal cord segmentationlength_midsagittal_slice [mm]
: length of the lesion along the Superior-Inferior (SI) axis in the midsagittal slicewidth_midsagittal_slice [mm]
: width of the lesion along the Anterior-Posterior (AP) axis in the midsagittal slicedorsal_bridge_width [mm]
: dorsal tissue bridges defined as the width of dorsal spared tissue (i.e. towards the posterior direction of the AP axis) at the minimum distance from the intramedullary lesion edge to the boundary between the spinal cord and cerebrospinal fluidventral_bridge_width [mm]
: ventral tissue bridges defined as the width of ventral spared tissue (i.e. towards the anterior direction of the AP axis) at the minimum distance from the intramedullary lesion edge to the boundary between the spinal cord and cerebrospinal fluid
Compute statistics¶
Run the following command to compute the lesion statistics:
sct_analyze_lesion -m t2_lesion_seg.nii.gz -s t2_sc_seg.nii.gz -qc ~/qc_singleSubj
- Input arguments:
-m
: 3D binary mask of the segmented lesion-s
: 3D binary mask of the segmented spinal cord-qc
: Directory for Quality Control reporting. QC report contains a figure for the tissue bridges
- Output files:
t2_lesion_analysis.xlsx
: XLSX file containing the morphometric measurest2_lesion_analysis.pkl
: Python Pickle file containing the morphometric measurest2_lesion_label.nii.gz
: 3D mask of the segmented lesion with lesion IDs (1, 2, 3, etc.)
Details: