<!--
{
  "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/planarBuffers()-82ook",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC14InterleavedFx3VRszrlE13planarBuffersSayAEy_AC7PlanarFVGGyF"
  },
  "title" : "planarBuffers()"
}
-->

# planarBuffers()

Returns three 32-bit planar pixel buffers that contain the deinterleaved channels of the buffer.

```
func planarBuffers() -> [vImage.PixelBuffer<vImage.PlanarF>]
```

## Return Value

An array of planar pixel buffers.

## Discussion

Use this function to deinterleave a buffer and create three new planar buffers that contain copies of each source channel. For example, the following code generates three 1 x 1 planar buffers from an [`vImage.InterleavedFx3`](/documentation/Accelerate/vImage/InterleavedFx3) pixel buffer:

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

let planarBuffers = src.planarBuffers()

// Prints "[0.125] [0.25] [0.5]"
for planarBuffer in planarBuffers {
    print(planarBuffer.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)