<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/preprocess_ops.py#L972-L989) |

Jitters contrast of an image, similarly to torchvision\`s ColorJitter.

    tfm.vision.preprocess_ops.random_contrast(
        image: tf.Tensor, contrast: float = 0.0, seed: Optional[int] = None
    ) -> tf.Tensor

<br />

<br />

<br />

| ## Args ||
|---|---|
| `image` | [`tf.Tensor`](https://www.tensorflow.org/api_docs/python/tf/Tensor) <br /> Of shape \[height, width, 3\] and type uint8. |
| `contrast` | `float, optional` <br /> Magnitude for contrast jitter. Defaults to 0. |
| `seed` | `int, optional` <br /> Random seed. Defaults to None. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| [`tf.Tensor`](https://www.tensorflow.org/api_docs/python/tf/Tensor) | The augmented `image` of type uint8. |

<br />