---
title: "histogram(binCount:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/histogram(bincount:)-8wymg"
---

# histogram(binCount:)

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

## Declaration

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

## Parameters

- `binCount`: The number of histogram entries for each channel.

## Return Value

Return Value The histogram of the pixel buffer.

## See Also

### Related Documentation

- [specifyHistogram(_:destination:)](accelerate/vimage/pixelbuffer/specifyhistogram(_:destination:)-28844.md)
- [Specifying histograms with vImage](accelerate/specifying-histograms-with-vimage.md)

### Histogram calculation

- [histogram()](accelerate/vimage/pixelbuffer/histogram()-14a38.md)
- [histogram(binCount:)](accelerate/vimage/pixelbuffer/histogram(bincount:)-6pkfv.md)
- [histogram()](accelerate/vimage/pixelbuffer/histogram()-30tsp.md)
- [histogram()](accelerate/vimage/pixelbuffer/histogram()-6wxl5.md)
- [histogram(binCount:)](accelerate/vimage/pixelbuffer/histogram(bincount:)-5bqka.md)
