---
title: "contour(at:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/vncontoursobservation/contour(at:)-52odo"
---

# contour(at:)

Retrieves the contour object at the specified index path.

## Declaration

```swift
func contour(at indexPath: IndexPath) throws -> VNContour
```

## Parameters

- `indexPath`: The hierarchical index path to the contour.

## Return Value

Return Value The contour object at the specified index path.

## See Also

### Inspecting the Observation

- [contourCount](vision/vncontoursobservation/contourcount.md)
- [normalizedPath](vision/vncontoursobservation/normalizedpath.md)
- [topLevelContours](vision/vncontoursobservation/toplevelcontours.md)
- [topLevelContourCount](vision/vncontoursobservation/toplevelcontourcount.md)
- [contour(at:)](vision/vncontoursobservation/contour(at:)-9on0y.md)
- [VNContour](vision/vncontour.md)
