is_3d_img

bidsaid.metadata.is_3d_img(nifti_file_or_img)[source]

Determines if nifti_file_or_img is a 3D image.

Parameters

nifti_file_or_imgstr, Path, or Nifti1Image

Path to the NIfTI file or a NIfTI image.

Returns

bool

True if nifti_file_or_img is a 3D image.