# tf.keras.preprocessing.image.apply_channel_shift

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras-preprocessing/tree/1.1.2/keras_preprocessing/image/affine_transformations.py#L159-L180) |

Performs a channel shift.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.keras.preprocessing.image.apply_channel_shift`](https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/apply_channel_shift)

<br />

    tf.keras.preprocessing.image.apply_channel_shift(
        x, intensity, channel_axis=0
    )

<br />

<br />

<br />

| ## Arguments ||
|---|---|
| `x` | Input tensor. Must be 3D. |
| `intensity` | Transformation intensity. |
| `channel_axis` | Index of axis for channels in the input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Numpy image tensor. ||

<br />