Skip to content

Commit

Permalink
edge in resize_multichannel_image
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianIsensee committed Aug 26, 2021
1 parent 319983b commit 35622ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchgenerators/augmentations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def resize_multichannel_image(multichannel_image, new_shape, order=3):
new_shp = [multichannel_image.shape[0]] + list(new_shape)
result = np.zeros(new_shp, dtype=multichannel_image.dtype)
for i in range(multichannel_image.shape[0]):
result[i] = resize(multichannel_image[i].astype(float), new_shape, order, "constant", 0, True, anti_aliasing=False)
result[i] = resize(multichannel_image[i].astype(float), new_shape, order, "edge", clip=True, anti_aliasing=False)
return result.astype(tpe)


Expand Down

0 comments on commit 35622ba

Please sign in to comment.