hippomaps.utils.profile_align

hippomaps.utils.profile_align(P, patchdist=None, V=[], F=[], maxroll=5)

Aligns microstructural profiles in the depth direction across a set of surfaces.

Parameters:
  • P (A VxD matrix of intensities (vertices x depths).) –

  • V (The midthickness surface vertices.) –

  • F (The midthickness surface faces.) –

  • patchdist (Radius (in mm) of geodesic distance to compute the average profile.) – If None, then all profiles are used. Default is None.

  • maxroll (int) – Maximum shift.

Returns:

with the patch average is achieved.

Return type:

A matrix the same size as P, pads profiles by maxroll, then rolls them by +/- maxroll until maximum overlap

Notes

  • If patchdist is None, the function aligns profiles based on the mean profile across all vertices.

  • If patchdist is specified, the function aligns profiles based on the mean profile within a geodesic patch around each vertex.

  • The alignment is performed by rolling the profiles to achieve maximum correlation with the reference profile.