<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/dimensionsForSemanticSegmentationMatte(ofType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureResolvedPhotoSettings(im)dimensionsForSemanticSegmentationMatteOfType:"
  },
  "title" : "dimensionsForSemanticSegmentationMatte(ofType:)"
}
-->

# dimensionsForSemanticSegmentationMatte(ofType:)

Retrieves the resolved dimensions of the semantic segmentation mattes that the photo output delivers.

```
func dimensionsForSemanticSegmentationMatte(ofType semanticSegmentationMatteType: AVSemanticSegmentationMatte.MatteType) -> CMVideoDimensions
```

## Parameters

`semanticSegmentationMatteType`

The segmentation matte type for which to retrieve dimensions.

## Return Value

A <doc://com.apple.documentation/documentation/CoreMedia/CMVideoDimensions> structure that provides the height and width of the image mattes.

---

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)