# Module: tfg.image.transformer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/image/transformer.py) |

This module implements image transformation functionalities.

## Classes

[`class BorderType`](https://www.tensorflow.org/graphics/api_docs/python/tfg/image/transformer/BorderType): An enumeration.

[`class PixelType`](https://www.tensorflow.org/graphics/api_docs/python/tfg/image/transformer/PixelType): An enumeration.

[`class ResamplingType`](https://www.tensorflow.org/graphics/api_docs/python/tfg/image/transformer/ResamplingType): An enumeration.

## Functions

[`perspective_transform(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/image/transformer/perspective_transform): Applies a projective transformation to an image.

[`sample(...)`](https://www.tensorflow.org/graphics/api_docs/python/tfg/image/transformer/sample): Samples an image at user defined coordinates.