---
title: MPSImageStatisticsMean
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsimagestatisticsmean
---

# MPSImageStatisticsMean

A kernel that computes the mean for a given region of an image.

## Declaration

```swift
class MPSImageStatisticsMean
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsimagestatisticsmean/init(coder:device:).md)
- [init(device:)](metalperformanceshaders/mpsimagestatisticsmean/init(device:).md)

### Instance Properties

- [clipRectSource](metalperformanceshaders/mpsimagestatisticsmean/cliprectsource.md)

## Relationships

### Inherits From

- [MPSUnaryImageKernel](metalperformanceshaders/mpsunaryimagekernel.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Image Statistics Filters

- [MPSImageStatisticsMeanAndVariance](metalperformanceshaders/mpsimagestatisticsmeanandvariance.md)
- [MPSImageStatisticsMinAndMax](metalperformanceshaders/mpsimagestatisticsminandmax.md)
