<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/PixelBuffer/init(interleavedBuffer:)-2hc6f",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC9PlanarFx4VRszrlE011interleavedD0AEy_AGGAEy_AC011InterleavedF0VG_tcfc"
  },
  "title" : "init(interleavedBuffer:)"
}
-->

# init(interleavedBuffer:)

Creates a 4-channel, 32-bit-per-channel multiple-plane buffer from a 4-channel, 32-bit-per-channel interleaved buffer.

```
init(interleavedBuffer: vImage.PixelBuffer<vImage.InterleavedFx4>)
```

## Parameters

`interleavedBuffer`

The source pixel buffer.

## Discussion

Use this function to deinterleave a pixel buffer and store the result as homogeneous planes that are represented by multiple underlying vImage buffers.

For example, the following code creates a new [`vImage.PlanarFx4`](/documentation/Accelerate/vImage/PlanarFx4) pixel buffer from a [`vImage.InterleavedFx4`](/documentation/Accelerate/vImage/InterleavedFx4) pixel buffer:

```swift
let src = vImage.PixelBuffer<vImage.InterleavedFx4>(
    pixelValues: [0.2, 0.4, 0.6, 0.8] as [Float],
    size: vImage.Size(width: 1, height: 1))

let dest = vImage.PixelBuffer<vImage.PlanarFx4>(interleavedBuffer: src)

// Prints "[0.2] [0.4] [0.6] [0.8]"
dest.withUnsafePixelBuffers { pixelBuffers in
    for pixelBuffer in pixelBuffers {
        print(pixelBuffer.array)
    }
}
```

---

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)