CogAcqRangeImage ZScale Property Cognex VisionPro 9.5
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.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public virtual double ZScale { get; set; }

Property Value

Type: Double
Defines a distance between an object of interest and the camera in mm of pixel values.

Implements

ICogAcqRangeImage ZScale
Events

Event TypeReason
ICogChangedEvent ChangedFires when this property changes. The following state flag may be affected: SfZScale
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf the supplied value is less than ZScaleMin or greater than ZScaleMax.
See Also