CogAutoSelect ClassCognex VisionPro 9.5
This class automatically selects an image model for either CogPMAlign or CogCNLSearch based upon the supplied input image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.AutoSelect CogAutoSelect

Namespace: Cognex.VisionPro.AutoSelect
Assembly: Cognex.VisionPro.AutoSelect (in Cognex.VisionPro.AutoSelect.dll) Version: 69.0.0.0
Syntax

[SerializableAttribute]
public class CogAutoSelect : CogSerializableChangedEventBase, 
	IDisposable

The CogAutoSelect type exposes the following members.

Constructors

  NameDescription
Public methodCogAutoSelect 
Public methodCogAutoSelect(CogAutoSelect)
Construct a deep copy of the supplied CogAutoSelect object.
Protected methodCogAutoSelect(SerializationInfo, StreamingContext)
Top
Methods

  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Perform auto selection on the supplied input image.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetDiagImages
Produce the actual image and mask that would be processed if the Execute method were called with the supplied input image and region. This method is provided as a diagnostic aid to help the user visualize the actual image and mask that will be used at run time.
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodQueryPointAdd
Add the specified query point to the internal list of query points. These X,Y coordinates are in the selected space of the input image.
Public methodQueryPointClear
Remove all defined query points from this CogAutoSelect's internal list.
Public methodQueryPointGetX
Get the X coordinate of the query point at the supplied index. This value is in the selected space of the input image.
Public methodQueryPointGetY
Get the Y coordinate of the query point at the supplied index. This value is in the selected space of the input image.
Public methodQueryPointRemoveAt
Remove from this CogAutoSelect's internal list the query point at the specified index.
Public methodQueryPointSetX
Set the X coordinate of the query point at the supplied index. This value is in the selected space of the input image.
Public methodQueryPointSetY
Set the Y coordinate of the query point at the supplied index. This value is in the selected space of the input image.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event 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.
(Inherited from CogSerializableChangedEventBase.)
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfCNLSearchRunParams
This bit will be set in the EventArgs of a Changed event every time the value returned by CNLSearchRunParams may have changed.
Public fieldStatic memberSfInputImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMask may have changed.
Public fieldStatic memberSfInputImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetX may have changed.
Public fieldStatic memberSfInputImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetY may have changed.
Public fieldStatic memberSfMaxNumResults
This bit will be set in the EventArgs of a Changed event every time the value returned by MaxNumResults may have changed.
Public fieldStatic memberSfModelMask
This bit will be set in the EventArgs of a Changed event every time the value returned by ModelMask may have changed.
Public fieldStatic memberSfModelSizeX
This bit will be set in the EventArgs of a Changed event every time the value returned by ModelSizeX may have changed.
Public fieldStatic memberSfModelSizeY
This bit will be set in the EventArgs of a Changed event every time the value returned by ModelSizeY may have changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfPMAlignRunParams
This bit will be set in the EventArgs of a Changed event every time the value returned by PMAlignRunParams may have changed.
Public fieldStatic memberSfQueryPointCount
This bit will be set in the EventArgs of a Changed event every time the value returned by QueryPointCount may have changed.
Public fieldStatic memberSfQueryPointGetX
This bit will be set in the EventArgs of a Changed event every time the value returned by QueryPointGetX may have changed.
Public fieldStatic memberSfQueryPointGetY
This bit will be set in the EventArgs of a Changed event every time the value returned by QueryPointGetY may have changed.
Public fieldStatic memberSfRegionMode
This bit will be set in the EventArgs of a Changed event every time the value returned by RegionMode may have changed.
Public fieldStatic memberSfRunMode
This bit will be set in the EventArgs of a Changed event every time the value returned by RunMode may have changed.
Public fieldStatic memberSfSamplingInterval
This bit will be set in the EventArgs of a Changed event every time the value returned by SamplingInterval may have changed.
Public fieldStatic memberSfScoringCombineMethod
This bit will be set in the EventArgs of a Changed event every time the value returned by ScoringCombineMethod may have changed.
Public fieldStatic memberSfScoringOrthogonalityWeight
This bit will be set in the EventArgs of a Changed event every time the value returned by ScoringOrthogonalityWeight may have changed.
Public fieldStatic memberSfScoringSymmetryWeight
This bit will be set in the EventArgs of a Changed event every time the value returned by ScoringSymmetryWeight may have changed.
Public fieldStatic memberSfScoringUniquenessWeight
This bit will be set in the EventArgs of a Changed event every time the value returned by ScoringUniquenessWeight may have changed.
Public fieldStatic memberSfTarget
This bit will be set in the EventArgs of a Changed event every time the value returned by Target may have changed.
Public fieldStatic memberSfXYOverlap
This bit will be set in the EventArgs of a Changed event every time the value returned by XYOverlap may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyCNLSearchRunParams
Get or sets the CogCNLSearchRunParams to be used during the auto selection process.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyInputImageMask
Gets or sets the input image mask to be used during the auto selection process. Only the three most significant bits of each mask image pixel are used:
  • Bit 7 (MSB): Care bit. One (1) means "Care", as in "use this feature in the model", while zero (0) means "do not use this feature in the model".
  • Bit 6: Don't Score bit. One (1) means "Don't Score", as in "don't compute clutter score", while zero means "Score", as in "do compute clutter score".
  • Bit 5: Position bit. One (1) means discard any model that includes this pixel, while zero (0) means the opposite.
Public propertyInputImageMaskOffsetX
Gets or sets the input image mask X offset in pixels. This offset is the horizontal distance in pixels from the upper left corner of the input image to the upper left corner of the InputImageMask.
Public propertyInputImageMaskOffsetY
Gets or sets the input image mask Y offset in pixels. This offset is the vertical distance in pixels from the upper left corner of the input image to the upper left corner of the InputImageMask.
Public propertyMaxNumResults
Gets or sets the maximum number of results.
Public propertyModelMask
Gets or sets the model mask to be used during the auto selection process. The size of this mask must match the run time values of ModelSizeX and ModelSizeY.
Public propertyModelSizeX
Gets or sets the desired image model X dimension in pixels.
Public propertyModelSizeY
Gets or sets the desired image model Y dimension in pixels.
Public propertyPMAlignRunParams
Get or sets the CogPMAlignRunParams to be used during the auto selection process.
Public propertyQueryPointCount
Get the number of currently defined query points.
Public propertyRegionMode
Gets or sets the region mode. Legal values include PixelAlignedBoundingBox and PixelAlignedBoundingBoxAdjustMask.
Public propertyRunMode
Gets or sets the run mode. Legal values include Search (process the entire input image) and Query (only consider specified locations).
Public propertySamplingInterval
Gets or sets the sampling interval in pixels. Increasing the sampling interval causes CogAutoSelect to run faster but produce lower quality results.
Public propertyScoringCombineMethod
Gets or sets the scoring combine method. Legal values include GeometricMean and ArithmeticMean.
Public propertyScoringOrthogonalityWeight
Gets or sets the orthogonality scoring weight.
Public propertyScoringSymmetryWeight
Gets or sets the symmetry scoring weight.
Public propertyScoringUniquenessWeight
Gets or sets the uniqueness scoring weight.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyTarget
Gets or sets the target tool type. Legal values include PMAlign and CNLSearch.
Public propertyXYOverlap
Gets or sets the XY overlap required to consider two instances to be the same result. Overlap is (approximately) the ratio of overlap area to total area of the pattern, in the range of 0.0 (no overlap) to 1.0 (full overlap) inclusive. Note that this parameter has a large effect upon execution time - low values (below 0.5) may cause a significant slowdown.
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Top
See Also