needs_resampling
- bidsaid.metadata.needs_resampling(source_file_or_img, target_file_or_img)[source]
Determines if a source image needs to be resampled.
Parameters
- source_file_or_img
str,Path, orNifti1Image The source image that may need to be resampled.
- target_file_or_img
str,Path, orNifti1Image The target image that it may need to be resampled to.
Returns
- bool
True if resampling is needed and False if no resampling is needed.
- source_file_or_img