neuromaps.images.interp_surface
- neuromaps.images.interp_surface(data, src, trg, method='nearest')[source]
Interpolate data on src surface to trg surface.
- Parameters:
data (str or os.PathLike) – Path to (gifti) data file defined on src surface
src (str or os.PathLike) – Path to (gifti) file defining surface of data
trg (str or os.PathLike) – Path to (gifti) file defining desired output surface
method ({'nearest', 'linear'}) – Method for interpolation. Default {‘nearest’}
- Returns:
interp – Input data interpolated to trg surface
- Return type:
np.ndarray