---
title: "init(cvPixelBuffer:options:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/ciimage/init(cvpixelbuffer:options:)-9x2pz"
---

# init(cvPixelBuffer:options:)

Initializes an image object from the contents of a Core Video pixel buffer using the specified options.

## Declaration

```swift
init(cvPixelBuffer pixelBuffer: CVPixelBuffer, options: [CIImageOption : Any]? = nil)
```

## Parameters

- `pixelBuffer`: A CVPixelBuffer object.
- `options`: A dictionary that contains options for creating an image object. (See Image Dictionary Keys.) The pixel format is supplied by the CVPixelBuffer object.

## Return Value

Return Value The initialized image object.

## See Also

### Creating an Image

- [empty()](coreimage/ciimage/empty().md)
- [init(image:)](coreimage/ciimage/init(image:).md)
- [init(image:options:)](coreimage/ciimage/init(image:options:).md)
- [init(contentsOf:)](coreimage/ciimage/init(contentsof:).md)
- [init(contentsOf:options:)](coreimage/ciimage/init(contentsof:options:).md)
- [init(cgImage:)](coreimage/ciimage/init(cgimage:)-2kvvb.md)
- [init(cgImage:options:)](coreimage/ciimage/init(cgimage:options:)-8663h.md)
- [init(cgImageSource:index:options:)](coreimage/ciimage/init(cgimagesource:index:options:)-e2bz.md)
- [init(data:)](coreimage/ciimage/init(data:).md)
- [init(data:options:)](coreimage/ciimage/init(data:options:).md)
- [init(bitmapData:bytesPerRow:size:format:colorSpace:)](coreimage/ciimage/init(bitmapdata:bytesperrow:size:format:colorspace:).md)
- [init(bitmapImageRep:)](coreimage/ciimage/init(bitmapimagerep:).md)
- [init(imageProvider:size:_:format:colorSpace:options:)](coreimage/ciimage/init(imageprovider:size:_:format:colorspace:options:).md)
- [init(depthData:)](coreimage/ciimage/init(depthdata:).md)
- [init(depthData:options:)](coreimage/ciimage/init(depthdata:options:).md)
