<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/init(cvImageBuffer:options:)-8upim",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)initWithCVImageBuffer:options:"
  },
  "title" : "init(cvImageBuffer:options:)"
}
-->

# init(cvImageBuffer:options:)

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

```
init(cvImageBuffer imageBuffer: CVImageBuffer, options: [CIImageOption : Any]? = nil)
```

## Parameters

`imageBuffer`

A  `CVImageBuffer` object in a supported pixel format constant. For more information, see <doc://com.apple.documentation/documentation/CoreVideo>.

`options`

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

## Return Value

The initialized image object.

## Discussion

The `imageBuffer` parameter must be in one of the following formats:

- <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_32ARGB>
- <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_422YpCbCr8>
- <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_32BGRA>

## See Also

[`imageWithCVImageBuffer:options:`](/documentation/CoreImage/CIImage/imageWithCVImageBuffer:options:)

Creates and returns an image object from the contents of  `CVImageBuffer` object, using the specified options.



---

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)