Skip to content

Commit 628cfc8

Browse files
Update TPTBox/core/nii_wrapper.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c7a72c5 commit 628cfc8

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

TPTBox/core/nii_wrapper.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,8 +1147,20 @@ def smooth_gaussian_labelwise(
11471147
NII: The smoothed NII object.
11481148
"""
11491149
assert self.seg, "You cannot use this on a non-segmentation NII"
1150-
smoothed = np_smooth_gaussian_labelwise(self.get_seg_array(), label_to_smooth=label_to_smooth, sigma=sigma, radius=radius, truncate=truncate, boundary_mode=boundary_mode, dilate_prior=dilate_prior, dilate_connectivity=dilate_connectivity,smooth_background=smooth_background,background_threshold=background_threshold,dilate_channelwise=dilate_channelwise)
1151-
return self.set_array(smoothed,inplace,verbose=False)
1150+
smoothed = np_smooth_gaussian_labelwise(
1151+
self.get_seg_array(),
1152+
label_to_smooth=label_to_smooth,
1153+
sigma=sigma,
1154+
radius=radius,
1155+
truncate=truncate,
1156+
boundary_mode=boundary_mode,
1157+
dilate_prior=dilate_prior,
1158+
dilate_connectivity=dilate_connectivity,
1159+
smooth_background=smooth_background,
1160+
background_threshold=background_threshold,
1161+
dilate_channelwise=dilate_channelwise,
1162+
)
1163+
return self.set_array(smoothed, inplace, verbose=False)
11521164

11531165
def smooth_gaussian_labelwise_(
11541166
self,

0 commit comments

Comments
 (0)