---
title: AVSemanticSegmentationMatte
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avsemanticsegmentationmatte
---

# AVSemanticSegmentationMatte

An object that wraps a matting image for a particular semantic segmentation.

## Declaration

```swift
class AVSemanticSegmentationMatte
```

## Overview

Overview The matting image stores its pixel data as CVPixelBuffer objects in kCVPixelFormatType_OneComponent8 format. The image file contains the semantic segmentation matte as an auxiliary image, accessible using the ImageIO framework’s CGImageSourceCopyAuxiliaryDataInfoAtIndex(_:_:_:) function.

## Topics

### Creating a segmentation matte

- [init(fromImageSourceAuxiliaryDataType:dictionaryRepresentation:)](avfoundation/avsemanticsegmentationmatte/init(fromimagesourceauxiliarydatatype:dictionaryrepresentation:).md)
- [replacingSemanticSegmentationMatte(with:)](avfoundation/avsemanticsegmentationmatte/replacingsemanticsegmentationmatte(with:).md)
- [applyingExifOrientation(_:)](avfoundation/avsemanticsegmentationmatte/applyingexiforientation(_:).md)
- [dictionaryRepresentation(forAuxiliaryDataType:)](avfoundation/avsemanticsegmentationmatte/dictionaryrepresentation(forauxiliarydatatype:).md)

### Inspecting a segmentation matte

- [matteType](avfoundation/avsemanticsegmentationmatte/mattetype-swift.property.md)
- [AVSemanticSegmentationMatte.MatteType](avfoundation/avsemanticsegmentationmatte/mattetype-swift.struct.md)
- [mattingImage](avfoundation/avsemanticsegmentationmatte/mattingimage.md)
- [pixelFormatType](avfoundation/avsemanticsegmentationmatte/pixelformattype.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Matte data

- [AVPortraitEffectsMatte](avfoundation/avportraiteffectsmatte.md)
