<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImageTransferFunction/init(c0:c1:c2:c3:gamma:cutoff:c4:c5:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So22vImageTransferFunctionV2c02c12c22c35gamma6cutoff2c42c5AB14CoreFoundation7CGFloatV_A7Mtcfc"
  },
  "title" : "init(c0:c1:c2:c3:gamma:cutoff:c4:c5:)"
}
-->

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

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

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

## Parameters

`c0`

The `c0` value in the transfer function.

`c1`

The `c1` value in the transfer function.

`c2`

The `c2` value in the transfer function.

`c3`

The `c3` value in the transfer function.

`gamma`

The `gamma` value in the transfer function.

`cutoff`

The `cutoff` value in the transfer function.

`c4`

The `c4` value in the transfer function.

`c5`

The `c5` value in the transfer function.

## Return Value

A new structure that represents a transfer function.

## Discussion

Listing 1.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)