Module containing image transformation functions.

This module contains the function decorator jicbioimage.core.transform.transformation() that can be used to turn functions into image transformations.

Below is an example of how to create a transformation that inverts an image.

>>> import numpy as np
>>> @transformation
... def invert(image):
...     "Return the inverted image."
...     maximum = np.iinfo(image.dtype).max
...     maximum_array = np.ones(image.shape, dtype=image.dtype) * maximum
...     return maximum_array - image

Function decorator to turn another function into a transformation.