Cog3DPatMaxPattern TrainVisionData Property Cognex VisionPro 9.22
Gets or sets the 3D data used to train this 3DPatMax pattern. Only the portions of the 3D data that lie within the TrainRegion are trained.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D (in Cognex.VisionPro3D.dll) Version: 87.0.0.0
Syntax

public ICogVisionData TrainVisionData { get; set; }

Property Value

Type: ICogVisionData
The 3D training data. Default value is null.
Events

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

3D vision data can be stored in a single CogImage16Range or stored in a CogVisionDataContainer as a matched pair, with one CogImage16Range holding the 3D data and one CogImage16Grey holding corresponding grey-level information or stored in a Cog3DPointCloudMesh. Either style of input is acceptable. All objects are referred to by the term "vision data" and all support the ICogVisionData interface.

You can use a train region to specify what part of the vision data is incorporated into the pattern at training time. 3DPatMax will only train 3D data points that fall inside the 3D shape specified by the TrainRegion property. If this train region is null, the entire vision data will be trained.

The only allowed shape for the train region is a Cog3DBox. The 3DPatMax training algorithm will completely ignore any 3D points that fall outside of the specified box.

If you change this value on a trained pattern object, the pattern will become untrained.

See Also