We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470995d commit dc36a28Copy full SHA for dc36a28
nibabel/nicom/dicomreaders.py
@@ -32,7 +32,7 @@ def mosaic_to_nii(dcm_data):
32
if not dcm_w.is_mosaic:
33
raise DicomReadError('data does not appear to be in mosaic format')
34
data = dcm_w.get_data()
35
- aff = np.dot(DPCS_TO_TAL, dcm_w.get_affine())
+ aff = np.dot(DPCS_TO_TAL, dcm_w.affine)
36
return Nifti1Image(data, aff)
37
38
@@ -106,7 +106,7 @@ def read_mosaic_dir(dicom_path,
106
g = dcm_w.b_vector
107
b_values.append(b)
108
gradients.append(g)
109
- affine = np.dot(DPCS_TO_TAL, dcm_w.get_affine())
+ affine = np.dot(DPCS_TO_TAL, dcm_w.affine)
110
return (np.concatenate(arrays, -1),
111
affine,
112
np.array(b_values),
0 commit comments