---
title: vImageTransferFunction
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/vimagetransferfunction
---

# vImageTransferFunction

A transfer function to convert from linear to nonlinear RGB.

## Declaration

```swift
struct vImageTransferFunction
```

## Overview

Overview The transfer function here is in the style of ITU-R BT.709, and is the inverse operation of what appears in an ICC color profile. For example, the following code defines the transfer function for ITU-R BT.709-5: var transferFunction = vImageTransferFunction(     c0: 1.099,     c1: 1.0,     c2: 0.0,     c3: -0.099,     gamma: 0.45,     cutoff: 0.018,     c4: 4.5,     c5: 0) The following is the conversion: if (R >= cutoff) {     R' = c0 * pow( c1 * R + c2, gamma ) + c3 }  else {     R' = c4 * R + c5                              }

## Topics

### Initializers

- [init(c0:c1:c2:c3:gamma:cutoff:c4:c5:)](accelerate/vimagetransferfunction/init(c0:c1:c2:c3:gamma:cutoff:c4:c5:).md)
- [init()](accelerate/vimagetransferfunction/init().md)

### Transfer function properties

- [c0](accelerate/vimagetransferfunction/c0.md)
- [c1](accelerate/vimagetransferfunction/c1.md)
- [c2](accelerate/vimagetransferfunction/c2.md)
- [c3](accelerate/vimagetransferfunction/c3.md)
- [cutoff](accelerate/vimagetransferfunction/cutoff.md)
- [gamma](accelerate/vimagetransferfunction/gamma.md)
- [c4](accelerate/vimagetransferfunction/c4.md)
- [c5](accelerate/vimagetransferfunction/c5.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Creating Core Graphics color spaces

- [vImageCreateRGBColorSpaceWithPrimariesAndTransferFunction(_:_:_:_:_:)](accelerate/vimagecreatergbcolorspacewithprimariesandtransferfunction(_:_:_:_:_:).md)
- [vImageRGBPrimaries](accelerate/vimagergbprimaries.md)
- [vImageCreateMonochromeColorSpaceWithWhitePointAndTransferFunction(_:_:_:_:_:)](accelerate/vimagecreatemonochromecolorspacewithwhitepointandtransferfunction(_:_:_:_:_:).md)
- [vImageWhitePoint](accelerate/vimagewhitepoint.md)
