I am trying to resample a nii. file, I am applying transformations below; the voxel dimensions are resampled as I can see from the header information; however, the final resampled file after .get_fdata() has all zeros.
import nibabel.processing
import nibabel as nib
img_SA_path=r'C:\My_Data\M2M Data\data\train\001/001'+'_LA_ES.nii.gz'
img_LA_gt =nib.load(img_SA_path)
n1_header = img_LA_gt.header
print(n1_header)
resample_img = nibabel.processing.conform(img_LA_gt,voxel_size=(1.0, 1.0, 1.0), out_shape=img_LA_gt.shape, order=3, cval=0.0, orientation='RAS')
n2_header = resample_img.header
print(n2_header)
resample_img = resample_img.get_fdata() ## this now coniatns all zeros```