Contents

init(targetWidth:targetHeight:)

Creates an augmentation that crops an input image at a random location to the specified target width and height.

Declaration

init(targetWidth: Double, targetHeight: Double)

Parameters

  • targetWidth:

    The target width of the cropping rectangle. Must be positive.

  • targetHeight:

    The target height of the cropping rectangle. Must be positive.

See Also

Creating an image cropper