LUTConverter

@objc(IMGLYLUTConverter) open class LUTConverter: NSObject

LUTConverter creates the color cube data needed for a CIColorCube filter by reading the LUT from an identity image and an effect image and interpolating between them.

  • The intensity by which the identity and the actual LUT should be interpolated.

    Declaration

    Swift

    open var intensity = Float(1)
  • The url of the LUT to use.

    Declaration

    Swift

    open var lutURL: URL?
  • The resulting color cube data. Calling this is expensive and the result should be cached.

    Declaration

    Swift

    open var colorCubeData: Data?
  • Creates a newly allocated instance of LUTConverter with an identity LUT at the given URL.

    Declaration

    Swift

    public init(identityLUT: URL)

    Parameters

    identityLUT

    The url to the identity LUT.

    Return Value

    An instance of LUTConverter.

  • This method reads an LUT image and converts it to a cube color space representation. The resulting data can be used to feed an CIColorCube filter, so that the transformation realised by the LUT is applied with a core image standard filter

    Declaration

    Swift

    open class func colorCubeData(fromLUTAt lutURL: URL) -> Data?