# Module: tf.keras.preprocessing.image

<br />

DO NOT EDIT.

This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.

## Classes

[`class DirectoryIterator`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/DirectoryIterator): Iterator capable of reading images from a directory on disk.

[`class ImageDataGenerator`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/ImageDataGenerator): DEPRECATED.

[`class Iterator`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/Iterator): Base class for image data iterators.

[`class NumpyArrayIterator`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/NumpyArrayIterator): Iterator yielding data from a Numpy array.

## Functions

[`apply_affine_transform(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/apply_affine_transform): Applies an affine transformation specified by the parameters given.

[`apply_brightness_shift(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/apply_brightness_shift): Performs a brightness shift.

[`apply_channel_shift(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/apply_channel_shift): Performs a channel shift.

[`array_to_img(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/utils/array_to_img): Converts a 3D NumPy array to a PIL Image instance.

[`img_to_array(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/utils/img_to_array): Converts a PIL Image instance to a NumPy array.

[`load_img(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/utils/load_img): Loads an image into PIL format.

[`random_brightness(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_brightness): Performs a random brightness shift.

[`random_channel_shift(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_channel_shift): Performs a random channel shift.

[`random_rotation(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_rotation): DEPRECATED.

[`random_shear(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_shear): DEPRECATED.

[`random_shift(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_shift): DEPRECATED.

[`random_zoom(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/random_zoom): DEPRECATED.

[`save_img(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/utils/save_img): Saves an image stored as a NumPy array to a path or file object.

[`smart_resize(...)`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/smart_resize): Resize images to a target size without aspect ratio distortion.