AUGMENTIMAGES Procedure
The CROP statement creates modified versions of images by applying the crop augmentation. You can configure a crop augmentation as a single crop operation at a specific location or as a series of crop operations that sweep across the image.
You must specify the following options:
-
HEIGHT=number
specifies the height of the cropped images in pixels, where number is a positive integer.
-
WIDTH=number
specifies the width of the cropped images in pixels, where number is a positive integer.
You can also specify the following options:
-
SWEEP (suboptions)
-
specifies that the crop operation should sweep across the image.
You can specify the following suboptions:
-
STEP=number
STEPX=number
specifies the step size of the sweeping crop operation in pixels, where number is a positive integer. If you specify both the STEP= option (instead of the STEPX= option) and the STEPY= option, then the STEP= option value is used as the step size in the horizontal (or column) direction. By default, STEP=1.
-
STEPY=number
specifies the step size of the sweeping crop operation in the vertical (or row) direction in pixels, where number is a positive integer. By default, STEPY=1.
-
X=number
specifies the X-axis location of the crop, where number is a positive integer. By default, X=0.
-
Y=number
specifies the Y-axis location of the crop, where number is a positive integer. By default, Y=0.
Last updated: March 26, 2026