<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#L923-L948) |

Applies color jitter to an image, similarly to torchvision\`s ColorJitter.

    tfm.vision.preprocess_ops.color_jitter(
        image: tf.Tensor,
        brightness: Optional[float] = 0.0,
        contrast: Optional[float] = 0.0,
        saturation: Optional[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. |
| `brightness` | `float, optional` <br /> Magnitude for brightness jitter. Defaults to 0. |
| `contrast` | `float, optional` <br /> Magnitude for contrast jitter. Defaults to 0. |
| `saturation` | `float, optional` <br /> Magnitude for saturation 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 />