FastSurferCNN.quick_qc

FastSurferCNN.quick_qc.check_volume(asegdkt_segfile, voxvol, thres=0.7)[source]

Check if total volume is bigger or smaller than threshold.

Parameters:
asegdkt_segfilenp.ndarray

The segmentation file.

voxvolfloat

The volume of a voxel.

thresfloat, default=0.7

The threshold for the total volume (Default value = 0.70).

Returns:
bool

Whether or not total volume is bigger or smaller than threshold.

FastSurferCNN.quick_qc.get_ventricle_bg_intersection_volume(seg_array, voxvol)[source]

Return a volume estimate for the intersection of ventricle voxels with background voxels.

Parameters:
seg_arraynumpy.ndarray

Segmentation array.

voxvolfloat

Voxel volume.

Returns:
intersection_volumefloat

Estimated volume of voxels in ventricle and background intersection.

FastSurferCNN.quick_qc.options_parse()[source]

Command line option parser.

Returns:
options

Object holding options.