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

# histogram(binCount:)

Calculates the histogram of a 32-bit-per-channel, 3-channel multiple-plane pixel buffer.

```
func histogram(binCount: Int) -> vImage.PixelBuffer<Format>.HistogramFFF
```

## Parameters

`binCount`

The number of histogram entries for each channel.

## Return Value

The histogram of the pixel buffer.

## See Also

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

Performs a histogram specification operation on a 32-bit-per-channel, 3-channel multiple-plane 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)