---
title: contrastPivot
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vndetectcontoursrequest/contrastpivot
---

# contrastPivot

The pixel value to use as a pivot for the contrast.

## Declaration

```swift
var contrastPivot: NSNumber? { get set }
```

## Discussion

Discussion Numeric values range from 0.0 to 1.0. You can also specify nil to have the framework automatically detect the value according to image intensity. The default value is 0.5, which indicates the pixel center.

## See Also

### Configuring the Request

- [contrastAdjustment](vision/vndetectcontoursrequest/contrastadjustment.md)
- [detectsDarkOnLight](vision/vndetectcontoursrequest/detectsdarkonlight.md)
- [maximumImageDimension](vision/vndetectcontoursrequest/maximumimagedimension.md)
- [detectDarkOnLight](vision/vndetectcontoursrequest/detectdarkonlight.md)
