cortex.polyutils.Distortion

class cortex.polyutils.Distortion(flat, ref, polys)[source]

Used to compute distortion metrics between fiducial and another (e.g. flat) surface.

Parameters
flat2D ndarray, shape (total_verts, 3)

Location of each vertex in flatmap space.

ref2D ndarray, shape (total_verts, 3)

Location of each vertex in fiducial (reference) space.

polys2D ndarray, shape (total_polys, 3)

Triangle vertex indices in both flat and ref.

Methods

__init__(flat, ref, polys)

Initialize self.

Attributes

areal

Compute areal distortion of the flatmap.

metric

Compute metric distortion of the flatmap.