LUTEffect

@objcMembers
@objc(PESDKLUTEffect)
open class LUTEffect : Effect

A concrete Effect that uses an image-based lookup table (LUT) to alter colors.

Accessors

  • The URL of the lut image that should be used to generate a color cube.

    Declaration

    Swift

    public let lutURL: URL?
  • The number of horizontal tiles in the LUT image.

    Declaration

    Swift

    public let horizontalTileCount: UInt
  • The number of vertical tiles in the LUT image.

    Declaration

    Swift

    public let verticalTileCount: UInt

Initializers

  • Creates an effect that uses the LUT at url lutURL to generate the color cube data for the filter.

    The tile configuration is parsed from the lutURL filename that matches the scheme: *_horizontalTileCount_verticalTileCount_resolution*, e.g. a filename that contains _5_5_128 would create a LUT configuration with 5x5 tiles and expect a image resolution of 128^2 pixels. If the tile configuration cannot be parsed it defaults to a 8x8 512^2 LUT configuration.

    Declaration

    Swift

    public init(identifier: String, lutURL: URL?, displayName: String)

    Parameters

    identifier

    An identifier that uniquely identifies the effect.

    lutURL

    The URL of the lut image that should be used to generate a color cube.

    displayName

    The name that is displayed to the user.

    Return Value

    A newly initialized LUTEffect object.

  • Creates an effect that uses the LUT at url lutURL to generate the color cube data for the filter.

    Declaration

    Swift

    public init(
      identifier: String,
      lutURL: URL?,
      displayName: String,
      horizontalTileCount: UInt,
      verticalTileCount: UInt
    )

    Parameters

    identifier

    An identifier that uniquely identifies the effect.

    lutURL

    The URL of the lut image that should be used to generate a color cube.

    displayName

    The name that is displayed to the user.

    horizontalTileCount

    The number of horizontal tiles in the LUT image.

    verticalTileCount

    The number of vertical tiles in the LUT image.

    Return Value

    A newly initialized LUTEffect object.

  • Returns a new CIFilter object.

    Declaration

    Swift

    open override var newEffectFilter: CIFilter? { get }