CorpusCallosum.shape.curvature¶
- CorpusCallosum.shape.curvature.calculate_curvature_metrics(midline, split_points)[source]¶
Calculate curvature metrics for the CC midline, including overall mean, body (central 65%), and subsegment curvatures.
- Parameters:
- midline
Points2dType Equidistant points along the midline.
- split_points
np.ndarray Points on the midline where it was split (for orthogonal subdivision).
- midline
- Returns:
- mean_curvature
float Overall mean curvature.
- curvature_body
float Mean curvature of the central 65% of the midline.
- curvature_subsegments
np.ndarray Mean curvature for each subsegment.
- mean_curvature
- CorpusCallosum.shape.curvature.compute_curvature(path)[source]¶
Compute curvature by computing edge angles.
- Parameters:
- path
np.ndarray Array of shape (N, 2) containing path coordinates.
- path
- Returns:
np.ndarrayArray of angle differences between consecutive edges.
- CorpusCallosum.shape.curvature.compute_mean_curvature(path)[source]¶
Compute mean absolute curvature of a path in degrees.
- Parameters:
- path
np.ndarray Array of shape (N, 2) containing path coordinates.
- path
- Returns:
floatMean absolute curvature of the path in degrees.