Extract a random crop of the requested size.
This operation will fail if the image is smaller than the requested
width and height.
- Parameters:
key (str) – The sample key that contains the array we are operating on.
w (int) – The width of the result.
h (int) – The height of the result.
output_key (str) – If it is not empty then write the result to this
key instead of overwriting key
. (default: ‘’)