Skip to content

Commit

Permalink
Minor bug fix in preprocessor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aecelaya committed Feb 26, 2024
1 parent 38934f9 commit 34c2381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def collect_spacings(self):
spacing = np.array(spacing)
target_spacing = np.median(spacing, axis=0)
if max(target_spacing) / min(target_spacing) >= 3:
lowres_axis = np.argmin(target_spacing)
lowres_axis = np.argmax(target_spacing)
target_spacing[lowres_axis] = np.percentile(spacing[:, lowres_axis], 10)
self.target_spacing = list(target_spacing)

Expand Down

0 comments on commit 34c2381

Please sign in to comment.