---
title: transform
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vnhorizonobservation/transform
---

# transform

The transform to apply to the detected horizon.

## Declaration

```swift
var transform: CGAffineTransform { get }
```

## Discussion

Discussion Apply the transform’s inverse to orient the image in an upright position and make the detected horizon level.

## See Also

### Evaluating the Horizon

- [angle](vision/vnhorizonobservation/angle.md)
- [transform(forImageWidth:height:)](vision/vnhorizonobservation/transform(forimagewidth:height:).md)
