from __future__ import division, unicode_literals, absolute_import

try:
    from PIL import Image, ImageFilter, ImageMath
except ImportError:  # pragma: no cover
    raise ImportError("Pillow is not installed. "
                      "Please install latest Pillow or Pillow-SIMD package.")

if not hasattr(ImageFilter, "Color3DLUT"):  # pragma: no cover
    raise ImportError("Pillow with the color LUT transformations is required. "
                      "Please install latest Pillow or Pillow-SIMD package.")

from .loaders import load_cube_file, load_hald_image
from .generators import identity_table, rgb_color_enhance
from .operations import (sample_lut_linear, sample_lut_cubic, resize_lut,
                         transform_lut, amplify_lut)

from __future__ import division, unicode_literals, absolute_import

try:
    from PIL import Image, ImageFilter, ImageMath
except ImportError:  # pragma: no cover
    raise ImportError("Pillow is not installed. "
                      "Please install latest Pillow or Pillow-SIMD package.")

if not hasattr(ImageFilter, "Color3DLUT"):  # pragma: no cover
    raise ImportError("Pillow with the color LUT transformations is required. "
                      "Please install latest Pillow or Pillow-SIMD package.")

from .loaders import load_cube_file, load_hald_image
from .generators import identity_table, rgb_color_enhance
from .operations import (sample_lut_linear, sample_lut_cubic, resize_lut,
                         transform_lut, amplify_lut)

# pragma: no cover # pragma: no cover