Skip to content

Commit

Permalink
change max slice size
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocagnetta committed Mar 29, 2024
1 parent 051bf94 commit a7c9aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/armscan_env/slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def slice_volume(
h = volume_size[2]
# width of the image plane: original x size divided by cosine of z-rotation
w = int(abs(volume_size[0] // e1[0]))
if w > volume_size[1]:
w = volume_size[1]
if w > volume_size[0]:
w = volume_size[0]

resampler.SetOutputDirection(direction.tolist())
resampler.SetOutputOrigin(img_o.tolist())
Expand Down

0 comments on commit a7c9aaa

Please sign in to comment.