ClassifyPattern MethodsCognex VisionPro 9.21 SR1

The ClassifyPattern type exposes the following members.

Methods

  NameDescription
Public methodAddClass

Creates a ClassifyClassItem object and adds it the Classes collection.

Public methodAddImage

Creates a ClassifyImageItem object and adds it the Images collection.

Public methodAddTrainItem(String, String)

Creates a ClassifyTrainItem object and adds it to the LabeledImages collection.

Public methodAddTrainItem(IImage, String)

Creates a ClassifyTrainItem object and adds it to the LabeledImages. returns the image id;.

Public methodClearClasses

Clears the Labels collection.

Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodExecute

Runs the trained pattern on the input image and returns the result. The object in the input image should have the approximate appearance to the object in the train images with respect to position and orientation.

Public methodGetClass

Returns the class with the specified class id from Classes Collection.

Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetImage

Returns the image with the specified image id from Images Collection.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodRemoveClassItem

Removes the class item from Classes Collection.

Public methodRemoveClassItemAt

Removes the class item at index from Classes Collection.

Public methodRemoveClassItemUsingId

Removes the class item with the specified class id from Classes Collection.

Public methodRemoveImageItem

Removes the image item from Images Collection.

Public methodRemoveImageItemAt

Removes the image item at index from Images Collection.

Public methodRemoveImageItemUsingId

Removes the image item with the specified image id from Images Collection.

Public methodRemoveTrainItem

Removes the train item from LabeledImages.

Public methodRemoveTrainItemAt

Removes the train item at index from LabeledImages.

Public methodRemoveTrainItemUsingImageId

Removes the train item with the specified image id from LabeledImages.

Public methodRenameClass

Rename a class in the Classes collection.

Public methodReset

Clears train data.

Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Public methodTrain

Trains the pattern using the LabeledImages.

Top
See Also