# Module: tf.contrib.image

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/image/__init__.py) |

Ops for image manipulation.

### API

This module provides functions for image manipulation; currently, chrominance
transforms (including changing saturation and hue) in YIQ space and
projective transforms (including rotation) are supported.

## Image Transformation `Ops`

## Image Segmentation `Ops`

## Matching `Ops`

## Random Dot Stereogram `Ops`

## Functions

[`angles_to_projective_transforms(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/angles_to_projective_transforms): Returns projective transform(s) for the given angle(s).

[`bipartite_match(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/bipartite_match): Find bipartite matching based on a given distance matrix.

[`compose_transforms(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/compose_transforms): Composes the transforms tensors.

[`connected_components(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/connected_components): Labels the connected components in a batch of images.

[`dense_image_warp(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/dense_image_warp): Image warping using per-pixel flow vectors.

[`flat_transforms_to_matrices(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/flat_transforms_to_matrices): Converts [`tf.contrib.image`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image) projective transforms to affine matrices.

[`interpolate_spline(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/interpolate_spline): Interpolate signal using polyharmonic interpolation.

[`matrices_to_flat_transforms(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/matrices_to_flat_transforms): Converts affine matrices to [`tf.contrib.image`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image) projective transforms.

[`rotate(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/rotate): Rotate image(s) counterclockwise by the passed angle(s) in radians.

[`single_image_random_dot_stereograms(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/single_image_random_dot_stereograms): Output a RandomDotStereogram Tensor for export via encode_PNG/JPG OP.

[`sparse_image_warp(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/sparse_image_warp): Image warping using correspondences between sparse control points.

[`transform(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/transform): Applies the given transform(s) to the image(s).

[`translate(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/translate): Translate image(s) by the passed vectors(s).

[`translations_to_projective_transforms(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/translations_to_projective_transforms): Returns projective transform(s) for the given translation(s).