cosanlab / nltools

Python toolbox for analyzing imaging data
https://nltools.org
MIT License
120 stars 42 forks source link

add interpolation option to append #354

Open ljchang opened 4 years ago

ljchang commented 4 years ago

@Marissa-Clark I think the best place to add the interpolation functionality we discussed is in the append or concatenate methods. We should have an option to interpolate voxel responses between the two images.

Look to to stats.upsample for an example using scipy interpolate methods.

interpolate = interp1d(orig_spacing, data, kind=method)