cortex.polyutils.Distortion.metric

property Distortion.metric

Compute metric distortion of the flatmap.

Metric distortion is calculated as the difference in squared distance from each vertex to its neighbors between the flatmap and the reference.

Positive values of metric distortion mean that vertices are farther from their neighbors in the flatmap than in the reference surface (expansion), etc.

See: Fishl, Sereno, and Dale, 1999.

Returns:
vertdists1D ndarray, shape (total_verts,)

Metric distortion at each vertex.