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

# histogram()

Calculates the histogram of an 8-bit-per-channel, 4-channel interleaved pixel buffer.

```
func histogram() -> vImage.PixelBuffer<Format>.Histogram8888
```

## Return Value

The histogram of the pixel buffer.

## See Also

[`func specifyHistogram(vImage.PixelBuffer<Format>.Histogram8888, destination: vImage.PixelBuffer<Format>)`](/documentation/Accelerate/vImage/PixelBuffer/specifyHistogram(_:destination:)-7xiz4)

Performs a histogram specification operation on an 8-bit-per-channel, 4-channel interleaved pixel buffer.

  <doc://com.apple.accelerate/documentation/Accelerate/specifying-histograms-with-vimage>



---

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)