<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSImageHistogramInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@SA@MPSImageHistogramInfo"
  },
  "title" : "MPSImageHistogramInfo"
}
-->

# MPSImageHistogramInfo

The information used to compute the histogram channels of an image.

```
struct MPSImageHistogramInfo
```

## Topics

### Fields

[`numberOfHistogramEntries`](/documentation/MetalPerformanceShaders/MPSImageHistogramInfo/numberOfHistogramEntries)

Specifies the number of histogram entries (*bins*) for each channel.

[`histogramForAlpha`](/documentation/MetalPerformanceShaders/MPSImageHistogramInfo/histogramForAlpha)

Specifies whether the histogram for the alpha channel should be computed or not.

[`minPixelValue`](/documentation/MetalPerformanceShaders/MPSImageHistogramInfo/minPixelValue)

Specifies the minimum pixel value. Any pixel value less than this will be clipped to this value (for the purposes of histogram calculation), and assigned to the first histogram entry. This minimum value is applied to each of the four channels separately.

[`maxPixelValue`](/documentation/MetalPerformanceShaders/MPSImageHistogramInfo/maxPixelValue)

Specifies the maximum pixel value.  Any pixel value greater than this will be clipped to this value (for the purposes of histogram calculation), and assigned to the first histogram entry. This maximum value is applied to each of the four channels separately.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)