Skip to content

Commit 288cd91

Browse files
committed
wrong affine in apply
1 parent 97c43cd commit 288cd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mne/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,6 @@ def apply_volume_registration(moving, static, reg_affine, sdr_morph=None,
17421742
logger.info('Appling SDR warp ...')
17431743
reg_data = sdr_morph.transform(
17441744
_get_img_fdata(moving), interpolation=interpolation)
1745-
reg_img = SpatialImage(reg_data, static.affine)
1745+
reg_img = SpatialImage(reg_data, reg_affine)
17461746
logger.info('[done]')
17471747
return reg_img

0 commit comments

Comments
 (0)