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

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.PMAlign CogPMAlignResult

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

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

The CogPMAlignResult type exposes the following members.

Constructors

  NameDescription
Public methodCogPMAlignResult 
Constructs a new instance of this class.
Public methodCogPMAlignResult(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogPMAlignResult(CogPMAlignResult)
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 CogPMAlignResultGraphicConstants.
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 methodGetInfoIDs
Public methodGetInfoStrings
Gets run-time diagnostic message text string(s) for this individual PMAlign result. If there are no messages then the collection will be empty. The corresponding message ID(s) can be obtained from the GetInfoIDs method.
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Public methodGetPose
Transform from "Pattern Space" to the selected space of the run-time input image. This transform can be used to find any point relative to the pattern in the selected space of the run-time input image.
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 methodGetRunImageFromTrainImagePerspectiveTransformElements
Cognex Internal Use Only.
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 ICogPMAlignRunParams::AcceptThreshold.
Public propertyClutter
Clutter score is the number of extraneous features present in this result divided by the number of features in the trained pattern. The value ranges from 0.0 to infinity. Only available for PatMax, -1 is always returned for PatQuick.
Public propertyContrast
Contrast measurement of this result which is the average of the pixel gradient measurements across all feature boundaries.
Public propertyCoverage
Coverage score is the fraction (0.0 to 1.0) of features in the trained pattern that are found in this result. Only available for PatMax, -1 is always returned for PatQuick.
Public propertyFineStage
True if this result is from the fine stage of processing, and false if this result is from the coarse stage of processing.
Public propertyFitError
Quality measure that indicates the degree to which the found pattern features conform to the trained pattern, without regard to missing features. Zero is a perfect fit. Infinity is a poor fit. Only available for PatMax, -1 returned for PatQuick.
Public propertyID
A unique ID used to identify this PMAlign result. This ID also corresponds to the index of this result in the CogPMAlignResults to which this result belongs.
Public propertyMaxCoarseAcceptThreshold
Gets the maximum coarse accept threshold that would allow this result to be found.
Public propertyModelID
The pattern unique ID.
Public propertyModelName
The pattern name. The pattern name is only available for multi-model.
Public propertyOutsideRegionAreaProportion
The proportion of pattern area that is outside the search region.
Public propertyOutsideRegionFeatureProportion
The proportion of pattern features that is outside the search region.
Public propertyScore
Score for this result. 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.
Public propertyUnwarpedInputImage
Gets run-time input image unwarped by the flex deformation found for this result. Returns Nothing (NULL) if PatFlex was not run or SaveDeformationInfo was not set to cogPMAlignFlexDeformationInfoTransformAndUnwarpData on last run.
Top
Remarks

A CogPMAlignResult interface provides access to information about the results of a PMAlign pattern location operation.

See Also