Reads or sets the scaling in mm of pixel values. Used when generating range images with a camera. When ZScale is positive, pixel values increase towards the camera. When ZScale is negative, pixel values increase away from the camera. Values near 0.0 will be rounded to 0.00001 or -0.00001. Default is 0.01 mm/pixel value. The default was picked to be a round number which also provides the full accuracy of the camera.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Property Value
Type: DoubleDefines a distance between an object of interest and the camera in mm of pixel values.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this property changes. The following state flag may be affected: SfZScale |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If the supplied value is less than ZScaleMin or greater than ZScaleMax. |
See Also