<!--
{
  "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:)-77n3i",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC9PlanarFx3VRszrlE011interleavedD0AEy_AGGAEy_AC011InterleavedF0VG_tcfc"
  },
  "title" : "init(interleavedBuffer:)"
}
-->

# init(interleavedBuffer:)

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

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

## 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.PlanarFx3`](/documentation/Accelerate/vImage/PlanarFx3) pixel buffer from a [`vImage.InterleavedFx3`](/documentation/Accelerate/vImage/InterleavedFx3) pixel buffer:

```swift
let src = vImage.PixelBuffer<vImage.InterleavedFx3>(
    pixelValues: [0.25, 0.5, 0.75] as [Float],
    size: vImage.Size(width: 1, height: 1))

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

// Prints "[0.25] [0.5] [0.75]".
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)