<!--
{
  "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:)-7wmzq",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)initWithCVImageBuffer:"
  },
  "title" : "init(cvImageBuffer:)"
}
-->

# init(cvImageBuffer:)

Initializes an image object from the contents of a Core Video image buffer.

```
init(cvImageBuffer imageBuffer: CVImageBuffer)
```

## Parameters

`imageBuffer`

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

## 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:`](/documentation/CoreImage/CIImage/imageWithCVImageBuffer:)

Creates and returns an image object from the contents of  `CVImageBuffer` object.



---

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)