# tf.image.adjust_hue

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/image/adjust_hue) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/image_ops_impl.py#L1913-L1954) |

Adjust hue of RGB images.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.image.adjust_hue`](https://www.tensorflow.org/api_docs/python/tf/image/adjust_hue), \`tf.compat.v2.image.adjust_hue\`

<br />

    tf.image.adjust_hue(
        image, delta, name=None
    )

This is a convenience method that converts an RGB image to float
representation, converts it to HSV, add an offset to the hue channel, converts
back to RGB and then back to the original data type. If several adjustments
are chained it is advisable to minimize the number of redundant conversions.

`image` is an RGB image. The image hue is adjusted by converting the
image(s) to HSV and rotating the hue channel (H) by
`delta`. The image is then converted back to RGB.

`delta` must be in the interval `[-1, 1]`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `image` | RGB image or images. Size of the last dimension must be 3. |
| `delta` | float. How much to add to the hue channel. |
| `name` | A name for this operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Adjusted image(s), same shape and DType as `image`. ||

<br />

#### Usage Example:

    >> import tensorflow as tf
    >> x = tf.random.normal(shape=(256, 256, 3))
    >> tf.image.adjust_hue(x, 0.2)