FastSurferCNN.reduce_to_aseg¶
- FastSurferCNN.reduce_to_aseg.flip_wm_islands(aseg_data)[source]¶
Flip labels of disconnected white matter islands to the other hemisphere.
- Parameters:
- aseg_data
numpy.ndarray
The input segmentation data.
- aseg_data
- Returns:
- flip_data
numpy.ndarray
The segmentation data with flipped WM labels.
- flip_data
- FastSurferCNN.reduce_to_aseg.options_parse()[source]¶
Command line option parser.
- Returns:
options
Object holding options.
- FastSurferCNN.reduce_to_aseg.reduce_to_aseg(data_inseg)[source]¶
Reduce the input segmentation to a simpler segmentation.
- Parameters:
- data_inseg
np.ndarray
,torch.Tensor
The input segmentation. This should be a 3D array where the value at each position represents the segmentation label for that position.
- data_inseg
- Returns:
- data_inseg
np.ndarray
,torch.Tensor
The reduced segmentation.
- data_inseg