---
title: histogram()
framework: accelerate
role: symbol
role_heading: Instance Method
path: accelerate/vimage/pixelbuffer/histogram()-30tsp
---

# histogram()

Calculates the histogram of an 8-bit-per-channel, 3-channel multiple-plane pixel buffer.

## Declaration

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

## Return Value

Return Value The histogram of the pixel buffer.

## See Also

### Related Documentation

- [specifyHistogram(_:destination:)](accelerate/vimage/pixelbuffer/specifyhistogram(_:destination:)-qeqr.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(binCount:)](accelerate/vimage/pixelbuffer/histogram(bincount:)-8wymg.md)
- [histogram()](accelerate/vimage/pixelbuffer/histogram()-6wxl5.md)
- [histogram(binCount:)](accelerate/vimage/pixelbuffer/histogram(bincount:)-5bqka.md)
