hippomaps.utils.density_interp

hippomaps.utils.density_interp(indensity, outdensity, cdata, label, method='linear', unfoldiso_is_v2=False, return_faces=False)

Interpolates data from one surface density onto another via unfolded space, handling the v1 vs v2 space-unfold XY convention change.

Parameters:
  • indensity (str) – One of {β€˜0p5mm’,’1mm’,’2mm’,’18k’,’8k’,’2k’,’unfoldiso’}.

  • outdensity (str) – One of {β€˜0p5mm’,’1mm’,’2mm’,’18k’,’8k’,’2k’,’unfoldiso’}.

  • cdata (array-like, shape (N,)) – Data on the indensity surface (N vertices).

  • label ({'hipp','dentate'}) –

  • method ({'nearest','linear','cubic'}) –

  • unfoldiso_is_v2 (bool) – If True, treat β€˜unfoldiso’ as having the new v2 unfold XY convention. (Default False: treat unfoldiso like v1.)