[BUG]: Extra dimension added to parcellation after warping to another template space via ANTs #324
2 changed files with 4 additions and 1 deletions
1
docs/changes/newsfragments/324.bugfix
Normal file
1
docs/changes/newsfragments/324.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Remove extra dimension from parcellations warped via ANTs to other template spaces by `Synchon Mandal`_
|
||||||
|
|
@ -195,7 +195,9 @@ class ParcelAggregation(BaseMarker):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Get binarized parcellation image for masking
|
# Get binarized parcellation image for masking
|
||||||
parcellation_bin = math_img("img != 0", img=parcellation_img)
|
parcellation_bin = math_img(
|
||||||
|
"np.squeeze(img) != 0", img=parcellation_img
|
||||||
|
)
|
||||||
|
|
||||||
# Load mask
|
# Load mask
|
||||||
if self.masks is not None:
|
if self.masks is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue