CogPMAlignRunParams ClassCognex VisionPro 9.7
Class which holds PMAlign run parameters. The run parameters are used to control how PMAlign locates matching patterns in the run-time image.
Inheritance Hierarchy

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

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

[SerializableAttribute]
public class CogPMAlignRunParams : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent

The CogPMAlignRunParams type exposes the following members.

Constructors

  NameDescription
Public methodCogPMAlignRunParams 
Constructs a new instance of this class.
Public methodCogPMAlignRunParams(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogPMAlignRunParams(CogPMAlignRunParams)
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 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 methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also 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.
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.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfAcceptThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by AcceptThreshold may have changed.
Public fieldStatic memberSfApproximateNumberToFind
This bit will be set in the EventArgs of a Changed event every time the value returned by ApproximateNumberToFind may have changed.
Public fieldStatic memberSfAutoEdgeThresholdEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by AutoEdgeThresholdEnabled may have changed.
Public fieldStatic memberSfCoarseAcceptThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by CoarseAcceptThreshold may have changed.
Public fieldStatic memberSfCoarseAcceptThresholdEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by CoarseAcceptThresholdEnabled may have changed.
Public fieldStatic memberSfContrastThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by ContrastThreshold may have changed.
Public fieldStatic memberSfControlPointsX
This bit will be set in the EventArgs of a Changed event every time the value returned by ControlPointsX may have changed.
Public fieldStatic memberSfControlPointsY
This bit will be set in the EventArgs of a Changed event every time the value returned by ControlPointsY may have changed.
Public fieldStatic memberSfDeformationFit
This bit will be set in the EventArgs of a Changed event every time the value returned by DeformationFit may have changed.
Public fieldStatic memberSfEdgeThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by EdgeThreshold may have changed.
Public fieldStatic memberSfGrainLimitCoarse
This bit will be set in the EventArgs of a Changed event every time the value returned by GrainLimitCoarse may have changed.
Public fieldStatic memberSfGrainLimitFine
This bit will be set in the EventArgs of a Changed event every time the value returned by GrainLimitFine may have changed.
Public fieldStatic memberSfGrainLimitsUsePattern
This bit will be set in the EventArgs of a Changed event every time the value returned by GrainLimitsUsePattern may have changed.
Public fieldStatic memberSfMaxDeformationRate
This bit will be set in the EventArgs of a Changed event every time the value returned by MaxDeformationRate may have changed.
Public fieldStatic memberSfOutsideRegionThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by OutsideRegionThreshold may have changed.
Public fieldStatic memberSfPartialMatchCoverageThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by PartialMatchCoverageThreshold may have changed.
Public fieldStatic memberSfPartialMatchEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by PartialMatchEnabled may have changed.
Public fieldStatic memberSfRefinement
This bit will be set in the EventArgs of a Changed event every time the value returned by Refinement may have changed.
Public fieldStatic memberSfRunAlgorithm
This bit will be set in the EventArgs of a Changed event every time the value returned by RunAlgorithm 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 memberSfSaveDeformationInfo
This bit will be set in the EventArgs of a Changed event every time the value returned by SaveDeformationInfo may have changed.
Public fieldStatic memberSfSaveMatchInfo
This bit will be set in the EventArgs of a Changed event every time the value returned by SaveMatchInfo may have changed.
Public fieldStatic memberSfScoreUsingClutter
This bit will be set in the EventArgs of a Changed event every time the value returned by ScoreUsingClutter may have changed.
Public fieldStatic memberSfSearchImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by SearchImageMask may have changed.
Public fieldStatic memberSfSearchImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by SearchImageMaskOffsetX may have changed.
Public fieldStatic memberSfSearchImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by SearchImageMaskOffsetY may have changed.
Public fieldStatic memberSfSearchRegionMode
This bit will be set in the EventArgs of a Changed event every time the value returned by SearchRegionMode may have changed.
Public fieldStatic memberSfSmoothness
This bit will be set in the EventArgs of a Changed event every time the value returned by Smoothness may have changed.
Public fieldStatic memberSfStartPose
This bit will be set in the EventArgs of a Changed event every time the value returned by StartPose may have changed.
Public fieldStatic memberSfTimeout
This bit will be set in the EventArgs of a Changed event every time the value returned by Timeout may have changed.
Public fieldStatic memberSfTimeoutEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by TimeoutEnabled 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.
Public fieldStatic memberSfZoneAngle
This bit will be set in the EventArgs of a Changed event every time the value returned by ZoneAngle may have changed.
Public fieldStatic memberSfZoneScale
This bit will be set in the EventArgs of a Changed event every time the value returned by ZoneScale may have changed.
Public fieldStatic memberSfZoneScaleX
This bit will be set in the EventArgs of a Changed event every time the value returned by ZoneScaleX may have changed.
Public fieldStatic memberSfZoneScaleY
This bit will be set in the EventArgs of a Changed event every time the value returned by ZoneScaleY may have changed.
Top
Properties

  NameDescription
Public propertyAcceptThreshold
Acceptance threshold on the score of a result. Only instances of the pattern that receive scores greater than or equal to this threshold are accepted. Valid range is from 0 to 1.
Public propertyApproximateNumberToFind
Number of results to look for. In some cases, PMAlign may return more or fewer results than requested.
Public propertyAutoEdgeThresholdEnabled
If true, user provided edge threshold will be used for training. If false, computed edge threshold will be used. Default value is false.
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.
Public propertyCoarseAcceptThreshold
If CoarseAcceptThresholdEnabled is true, then results whose score is greater than or equal to CoarseAcceptThreshold will be refined and then compared against AcceptThreshold. Otherwise result scores are only compared against AcceptThreshold. The legal range for CoarseAcceptThreshold is [0.0, 1.0] and the default is 0.33.
Public propertyCoarseAcceptThresholdEnabled
Whether to use CoarseAcceptThreshold. Default is false.
Public propertyContrastThreshold
Minimum acceptable contrast for a pattern instance. Only pattern instances where the average difference in pixel values across all feature boundaries exceeds the contrast threshold are considered by PMAlign. Threshold must be between 0 and 65535.
Public propertyEdgeThreshold
Run-time edge threshold, under which, edges will be ignored. Valid value range is from 0.0 to 65535.0. Default value is 5.0.
Public propertyGrainLimitCoarse
Coarse grain limit that will be used at run-time if GrainLimitsUsePattern is false. Coarse must be greater than or equal to fine. Setting coarse less than fine will also set fine to the new coarse value. Valid range is from 1.0 to 25.5 inclusive.
Public propertyGrainLimitFine
Fine grain limit that will be used at run-time if GrainLimitsUsePattern is false. Coarse must be greater than or equal to fine. Setting fine greater than coarse will also set coarse to the new fine value. Valid range is from 1.0 to 25.5 inclusive.
Public propertyGrainLimitsUsePattern
If true then the grain limits specified in CogPMAlignPattern will be used. If false then the grain limits specified in this CogPMAlignRunParams will be used.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyOutsideRegionThreshold
Specifies the proportion of features that can be outside the search region without affecting score. The value must be set to 0 when using PatFlex or PatMaxPerspective train algorithm.
Public propertyOwnedFlexParams
Gets the runtime parameters specific to the PatFlex algorithm. These parameters are owned by this object, but are conveniently grouped together inside the returned interface.
Public propertyRunAlgorithm
The algorithm used to run this PMAlign pattern. The algorithm specified must be among those for which the PMAlign object was trained.
Public propertyRunMode
The mode in which this PMAlign pattern will be run.
Public propertySaveMatchInfo
Flag indicating whether to save information necessary to create result match graphics. Must be set to true if user wants to get match info graphics using the ICogPMAlignResult::CreateResultGraphics method.
Public propertyScoreUsingClutter
Determines if PatMax considers extraneous features when computing the score of a pattern instance. True, extraneous features are considered and will result in lower scores. False, extraneous features are ignored. Available for PatMax only.
Public propertySearchImageMask
Mask that is used when running the PMAlign pattern. The mask allows the user to identify areas of the pattern as "Care" or "Don't Care". The mask is aligned to the run-time input image using the SearchImageMaskOffsetX & Y values.
Public propertySearchImageMaskOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the run-time input image to the upper-left corner of the SearchImageMask in image coordinates of the input image.
Public propertySearchImageMaskOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the run-time input image to the upper-left corner of the SearchImageMask in image coordinates of the input image.
Public propertySearchRegionMode
Mode which specifies how the search region is to be applied to the input image of a PMAlign inspection.
Public propertyStartPose
Transform that defines the starting model pose within the input image.
Public propertyTimeout
The maximum execution time (msec) allowed to run a PMAlign inspection. If PMAlign has not finished by the end of the timeout period, it will stop soon thereafter and return E_Cog_TimeoutExpired. This value only applies if TimeoutEnabled is true.
Public propertyTimeoutEnabled
If true then the Timeout property limits the execution time of the PMAlign inspection. If false then timeout is disabled and the Timeout property is ignored.
Public propertyXYOverlap
Result candidates overlap in area if the percentage of area overlap is greater than XYOverlap. PMAlign discards the weaker pattern instance when two pattern instances overlap for all DOFs as well as area.
Public propertyZoneAngle
Zone configuration for the angle degree of freedom. Units are in Radians.
Public propertyZoneScale
Zone configuration for the uniform scale degree of freedom.
Public propertyZoneScaleX
Zone configuration for the X scale degree of freedom only.
Public propertyZoneScaleY
Zone configuration for the Y scale degree of freedom only.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

Interface for PMAlign run parameters.

See Also