CogCNLSearchResult ClassCognex VisionPro 9.5
Class which holds a single CNLSearch result. Each result corresponds to a found instance of the pattern.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.CNLSearch CogCNLSearchResult

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

[SerializableAttribute]
public class CogCNLSearchResult : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable

The CogCNLSearchResult type exposes the following members.

Constructors

  NameDescription
Public methodCogCNLSearchResult 
Constructs a new instance of this class.
Public methodCogCNLSearchResult(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogCNLSearchResult(CogCNLSearchResult)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
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 methodCreateResultGraphics
Creates a composite result graphic containing child graphics specified by the GraphicOptions which is a bitwise combination of CogCNLSearchResultGraphicConstants.
Public methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
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.)
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
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.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAccepted
True if the result's Score was >= the AcceptThreshold specified in the CogCNLSearchRunParams.
Public propertyAreaCoverageScore
The AreaCoverageScore indicates the fraction of the pattern that lies within the search region. The returned value is in the range 0.0 through 1.0. Only the Linear Search algorithm can find pattern matches that are partially outside of the search region.
Public propertyAreaScore
The AreaScore represents the quality of the match regardless of the amount of the pattern that appears in the image. This value is between 0.0 and 1.0 with higher values indicating a closer match between the trained pattern and the pattern match.
Public propertyContrast
The Contrast is the ratio of the standard deviation of the pixels in the trained pattern to the standard deviation of the care pixels in the located pattern.
Public propertyContrastComputed
True if the result's Contrast has been computed. This will only be true if the LinearSearch algorithm was used to compute this result.
Public propertyEdgeHit
Indicates whether this pattern instance was found against one or more edges of the search region. This value is composed by performing a bitwise OR of CogCNLSearchEdgeHitConstants.
Public propertyEdgeScore
The EdgeScore represents the quality of the match between the edges of the trained pattern and the edges of the pattern match in the search image. This value is between 0.0 and 1.0 with higher values indicating a closer match.
Public propertyEdgeScoreComputed
True if the result's EdgeScore has been computed. This will only be true if the NonLinearCNLPAS algorithm was used to compute this result.
Public propertyID
A unique ID used to identify this CNLSearch result. This ID also corresponds to the index of this result in the CogCNLSearchResults to which this result belongs.
Public propertyLocationX
The X component of the location at which this pattern instance was found. The location corresponds the pattern's origin and is specified in units of the selected space of the InputImage.
Public propertyLocationY
The Y component of the location at which this pattern instance was found. The location corresponds the pattern's origin and is specified in units of the selected space of the InputImage.
Public propertyScore
The Score is between 0.0 and 1.0 with higher values indicating a closer match between the trained pattern and the pattern in the search image. The Score will be reduced if the result is a partial match and PartialMatchReduceScore is true.
Public propertySelectedSpaceName
Returns the name of the selected space of the input image at run-time. The location of this result is specified in units of the selected space.
Top
Remarks

Interface for a single CNLSearch result. Each result corresponds to a found instance of the pattern.

See Also