def tiff_loader(f):
    """Loads a 16-bit tiff image and returns it as a numpy array."""
    with open(f, "rb") as f:
        image = Image.open(f)
        return np.array(image)
Loads a 16-bit tiff image and returns it as a numpy array.
docs/source/tutorials_source/package/tutorial_custom_augmentations.py