CorpusCallosum.data.fsaverage_cc_template¶
- CorpusCallosum.data.fsaverage_cc_template.load_fsaverage_cc_template()[source]¶
Load and process the fsaverage corpus callosum template.
This function loads the fsaverage segmentation from FreeSurfer’s data directory, extracts the corpus callosum mask, and processes it to create a smooth template.
- Returns:
CCContourObject with all the contour information including: - contour : tuple[np.ndarray, np.ndarray] : x and y coordinates of the contour points. - anterior_endpoint_idx : np.ndarray : Index of the anterior endpoint. - posterior_endpoint_idx : np.ndarray : Index of the posterior endpoint.
- Raises:
OSErrorIf FREESURFER_HOME environment variable is not set correctly.