CogTrevistaDepthImageParams DepthLevel Property Cognex VisionPro 9.25 SR1
Gets or sets the depth calculation level.

Namespace: Cognex.VisionPro.Trevista
Assembly: Cognex.VisionPro.Trevista (in Cognex.VisionPro.Trevista.dll) Version: 93.1.0.0
Syntax

public int DepthLevel { get; set; }

Property Value

Type: Int32
Depth calculation level. Larger values expand the region that affects a computed depth value. Default value is 20.
Events

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

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than 0.
Remarks

If you are using Global depth mode, you should set the depth level to a number that is approximately the size (in pixels) of the entire surface over which you wish to compute the depth.

If you are using Local depth mode, you should set the depth level to a number that is bigger than the size (in pixels) of the local surface patch over which you wish to compute the depth. Notice that the depth computation in Local mode will become slower as you increase the DepthLevel.

A depth level of 0 is valid and has a unique behavior when in Global depth mode. In this case, the depth level will be treated as "infinite" and use all available data. If the Local depth mode is used, then a depth level of 0 will instead produce the same result as a depth level of 1.

See Also