<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSDataLayoutImageCHW",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSDataLayout@BNNSDataLayoutImageCHW"
  },
  "title" : "BNNSDataLayoutImageCHW"
}
-->

# BNNSDataLayoutImageCHW

A constant that represents a 3D image stack.

```
var BNNSDataLayoutImageCHW: BNNSDataLayout { get }
```

## Discussion

The value `(x, y, channel)` is at index `x * stride[0] + y * stride[1] + channel * stride[2]`.

- `size[0]` is the image width in pixels.
- `size[1]` is the image height in pixels.
- `size[2]` is the number of channels.

---

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)