Module: tf.keras.preprocessing.image
Stay organized with collections
Save and categorize content based on your preferences.
DO NOT EDIT.
This file was autogenerated. Do not edit it by hand,
since your modifications would be overwritten.
Classes
class DirectoryIterator
: Iterator capable of reading images from a directory on disk.
class ImageDataGenerator
: DEPRECATED.
class Iterator
: Base class for image data iterators.
class NumpyArrayIterator
: Iterator yielding data from a Numpy array.
Functions
apply_affine_transform(...)
: Applies an affine transformation specified by the parameters given.
apply_brightness_shift(...)
: Performs a brightness shift.
apply_channel_shift(...)
: Performs a channel shift.
array_to_img(...)
: Converts a 3D NumPy array to a PIL Image instance.
img_to_array(...)
: Converts a PIL Image instance to a NumPy array.
load_img(...)
: Loads an image into PIL format.
random_brightness(...)
: Performs a random brightness shift.
random_channel_shift(...)
: Performs a random channel shift.
random_rotation(...)
: DEPRECATED.
random_shear(...)
: DEPRECATED.
random_shift(...)
: DEPRECATED.
random_zoom(...)
: DEPRECATED.
save_img(...)
: Saves an image stored as a NumPy array to a path or file object.
smart_resize(...)
: Resize images to a target size without aspect ratio distortion.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tf.keras.preprocessing.image\n\n\u003cbr /\u003e\n\nDO NOT EDIT.\n\nThis file was autogenerated. Do not edit it by hand,\nsince your modifications would be overwritten.\n\nClasses\n-------\n\n[`class DirectoryIterator`](../../../tf/keras/preprocessing/image/DirectoryIterator): Iterator capable of reading images from a directory on disk.\n\n[`class ImageDataGenerator`](../../../tf/keras/preprocessing/image/ImageDataGenerator): DEPRECATED.\n\n[`class Iterator`](../../../tf/keras/preprocessing/image/Iterator): Base class for image data iterators.\n\n[`class NumpyArrayIterator`](../../../tf/keras/preprocessing/image/NumpyArrayIterator): Iterator yielding data from a Numpy array.\n\nFunctions\n---------\n\n[`apply_affine_transform(...)`](../../../tf/keras/preprocessing/image/apply_affine_transform): Applies an affine transformation specified by the parameters given.\n\n[`apply_brightness_shift(...)`](../../../tf/keras/preprocessing/image/apply_brightness_shift): Performs a brightness shift.\n\n[`apply_channel_shift(...)`](../../../tf/keras/preprocessing/image/apply_channel_shift): Performs a channel shift.\n\n[`array_to_img(...)`](../../../tf/keras/utils/array_to_img): Converts a 3D NumPy array to a PIL Image instance.\n\n[`img_to_array(...)`](../../../tf/keras/utils/img_to_array): Converts a PIL Image instance to a NumPy array.\n\n[`load_img(...)`](../../../tf/keras/utils/load_img): Loads an image into PIL format.\n\n[`random_brightness(...)`](../../../tf/keras/preprocessing/image/random_brightness): Performs a random brightness shift.\n\n[`random_channel_shift(...)`](../../../tf/keras/preprocessing/image/random_channel_shift): Performs a random channel shift.\n\n[`random_rotation(...)`](../../../tf/keras/preprocessing/image/random_rotation): DEPRECATED.\n\n[`random_shear(...)`](../../../tf/keras/preprocessing/image/random_shear): DEPRECATED.\n\n[`random_shift(...)`](../../../tf/keras/preprocessing/image/random_shift): DEPRECATED.\n\n[`random_zoom(...)`](../../../tf/keras/preprocessing/image/random_zoom): DEPRECATED.\n\n[`save_img(...)`](../../../tf/keras/utils/save_img): Saves an image stored as a NumPy array to a path or file object.\n\n[`smart_resize(...)`](../../../tf/keras/preprocessing/image/smart_resize): Resize images to a target size without aspect ratio distortion."]]