tf.image.random_contrast

View source on GitHub

Adjust the contrast of an image or images by a random factor.

tf.image.random_contrast(
    image, lower, upper, seed=None
)

Equivalent to adjust_contrast() but uses a contrast_factor randomly picked in the interval [lower, upper].

Args:

Returns:

The contrast-adjusted image(s).

Raises: