Skip to content

Commit

Permalink
remove single voxel shrinkage of provided roi in resample node
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Apr 9, 2024
1 parent 92e2756 commit 36225d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gunpowder/nodes/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def setup(self):
+ source_voxel_size[-self.ndim :]
)

spec.roi = spec.roi.grow(
-self.pad, -self.pad
) # Pad w/ 1 voxel per side for interpolation to avoid edge effects
spec.roi = spec.roi.snap_to_grid(
np.lcm(source_voxel_size, self.target_voxel_size), mode="shrink"
)
Expand Down

0 comments on commit 36225d4

Please sign in to comment.