Skip to content

Commit acb19db

Browse files
authored
Merge pull request #30 from zivy/updateDocumentation
Updating the resize documentation.
2 parents 3359c5a + d1b114a commit acb19db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SimpleITK/utilities/resize.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def resize(
2828
isotropic. The physical extent of the image's data is retained in the new image, with the new image's spacing
2929
adjusted to achieve the desired size. The image is centered in the new image.
3030
31+
Anti-aliasing is enabled by default.
32+
33+
Runtime performance can be increased by disabling anti-aliasing ( anti_aliasing_sigma=0 ), and by setting
34+
the interpolator to sitkNearestNeighbor at the cost of decreasing image quality.
35+
3136
:param image: A SimpleITK image.
3237
:param new_size: The new image size in pixels.
3338
:param isotropic: If False, the original image is resized to fill the new image size by adjusting space. If True,

0 commit comments

Comments
 (0)