TF‘s Image Processing Module (Part 2)
Learn to apply color transformations and color space conversion using TF’s tf.image module.
We'll cover the following
The TF framework provides us with the tf.image
module to perform image processing. This module consists of numerous image processing functions for geometric and color transformations. Let’s explore the functions of the tf.image
module for color transformations.
Color transformations
Color transformations change the pixel values of images without altering their geometry. Some of the color transformations are given below.
Brightness adjustment
The tf.image.adjust_brightness
function adjusts image brightness according to the value of the delta
argument. A delta=0.3
value adds 30% brightness to the image.
The tf.image.random_brightness
function adjusts the image brightness using a random factor max_delta
. This function picks the delta
in the interval [-max_delta, max_delta)
.
Get hands-on with 1400+ tech skills courses.