ClassifyPattern RemoveClassItemAt Method Cognex VisionPro 9.20

Removes the class item at index from Classes Collection.

Namespace: Cognex.Vision.ViDiEL
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.10.0.0
Syntax

public void RemoveClassItemAt(
	int index
)

Parameters

index
Type: System Int32
The index of the item in the Classes collection to remove.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf the supplied index is outside the collection range.
Remarks

If the pattern is trained, and the class id is in the LabeledImages, the pattern will become untrained.

If the class id is used in the LabeledImages, all train items referencing the class id will be removed as well.

Changed Raised when the value of this property changes. The following state flags may be affected:

See Also