Structure

vImageTransferFunction

A structure that represents a transfer function to convert from linear to nonlinear RGB.

Declaration

struct vImageTransferFunction

Overview

The transfer function here is defined in the style of ITU-R BT.709 and is the inverse operation of what appears in an ICC color profile.

The conversion is:

if (R >= cutoff) {
    R' = c0 * pow( c1 * R + c2, gamma ) + c3
} 
else {
    R' = c4 * R + c5                             
}

Topics

Initializers

init(c0: CGFloat, c1: CGFloat, c2: CGFloat, c3: CGFloat, gamma: CGFloat, cutoff: CGFloat, c4: CGFloat, c5: CGFloat)

Creates a structure that represents a transfer function to convert from linear to nonlinear RGB.

Transfer Function Properties

var c0: CGFloat

The c0 in the transfer function.

var c1: CGFloat

The c1 in the transfer function.

var c2: CGFloat

The c2 in the transfer function.

var c3: CGFloat

The c3 in the transfer function.

var cutoff: CGFloat

The cutoff in the transfer function.

var gamma: CGFloat

The gamma in the transfer function.

var c4: CGFloat

The c4 in the transfer function.

var c5: CGFloat

The c5 in the transfer function.

See Also

Creating Core Graphics Image Formats

struct vImage_CGImageFormat

The description of a Core Graphics image.

struct vImageRGBPrimaries

A structure that represents the chromaticity of primaries defining a color space.

struct vImageWhitePoint

A structure that represents a white point according to the CIE 1931 color space.