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:
midlinePoints2dType

Equidistant points along the midline.

split_pointsnp.ndarray

Points on the midline where it was split (for orthogonal subdivision).

Returns:
mean_curvaturefloat

Overall mean curvature.

curvature_bodyfloat

Mean curvature of the central 65% of the midline.

curvature_subsegmentsnp.ndarray

Mean curvature for each subsegment.

CorpusCallosum.shape.curvature.compute_curvature(path)[source]

Compute curvature by computing edge angles.

Parameters:
pathnp.ndarray

Array of shape (N, 2) containing path coordinates.

Returns:
np.ndarray

Array of angle differences between consecutive edges.

CorpusCallosum.shape.curvature.compute_mean_curvature(path)[source]

Compute mean absolute curvature of a path in degrees.

Parameters:
pathnp.ndarray

Array of shape (N, 2) containing path coordinates.

Returns:
float

Mean absolute curvature of the path in degrees.