CogPMRedLineRunParams ClassCognex VisionPro 9.24
Class that holds the PMRedLine run parameters. These parameters control how PMRedLine locates patterns in the runtime image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.PMRedLine CogPMRedLineRunParams

Namespace: Cognex.VisionPro.PMRedLine
Assembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 91.0.0.0
Syntax

[SerializableAttribute]
public class CogPMRedLineRunParams : CogSerializableChangedEventBase, 
	IDisposable

The CogPMRedLineRunParams type exposes the following members.

Constructors

  NameDescription
Public methodCogPMRedLineRunParams 
Constructs a default CogPMRedLineRunParams object.
Public methodCogPMRedLineRunParams(CogPMRedLineRunParams)
Constructs a deep copy of the supplied CogPMRedLineRunParams object.
Protected methodCogPMRedLineRunParams(SerializationInfo, StreamingContext)
Serialization constructor for CogPMRedLineRunParams object.
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 
Releases all resources used by this CogPMRedLineRunParams object.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases all unmanaged resources used by this CogPMRedLineRunParams object.
(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
Populates the provided SerializationInfo with the data needed to serialize the object.
(Overrides CogSerializableObjectBase GetObjectData(SerializationInfo, StreamingContext).)
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 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 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 memberSfAccuracyMode
This bit will be set in the EventArgs of a Changed event every time the value returned by AccuracyMode may have changed.
Public fieldStatic memberSfCoarseAcceptThresholdFraction
This bit will be set in the EventArgs of a Changed event every time the value returned by CoarseAcceptThresholdFraction may have changed.
Public fieldStatic memberSfCoarseAcceptThresholdFractionEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by CoarseAcceptThresholdFractionEnabled may have changed.
Public fieldStatic memberSfContrastFractionThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by ContrastFractionThreshold may have changed.
Public fieldStatic memberSfIgnorePolarity
This bit will be set in the EventArgs of a Changed event every time the value returned by IgnorePolarity may have changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfNumberToFind
This bit will be set in the EventArgs of a Changed event every time the value returned by NumberToFind may have changed.
Public fieldStatic memberSfReturnAllResults
This bit will be set in the EventArgs of a Changed event every time the value returned by ReturnAllResults 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 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.
Top
Properties

  NameDescription
Public propertyAcceptThreshold
Gets or sets the acceptance threshold for 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 zero to one.
Public propertyAccuracyMode
Gets or sets the desired level of accuracy for result poses. PMRedLine may run faster if your application can tolerate lower accuracy.
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 propertyCoarseAcceptThresholdFraction
Gets or sets the fraction of the accept threshold that should be used to evaluate candidate scores during the coarse phase of PMRedLine.
Public propertyCoarseAcceptThresholdFractionEnabled
Gets or sets whether to enable the coarse accept threshold fraction.
Public propertyContrastFractionThreshold
Gets or sets the threshold for the contrast fraction of a result. Only instances of the pattern that have a contrast fraction greater than or equal to this threshold are accepted. Valid range is from zero to one.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyIgnorePolarity
Gets or sets whether to ignore the polarity of edge features when searching for patterns. If "true", the polarity of the pattern features is ignored. If "false", only patterns whose polarity matches the trained pattern will be found.
Public propertyNumberToFind
Gets or sets the number of results to search for.
Public propertyReturnAllResults
Gets or sets whether PMRedLine should return only the results that you asked for or whether it should also return results that are similar to the ones you asked for.
Public propertyScoreUsingClutter
Gets or sets whether PMRedLine should reduce the score of results that contain extraneous features at the found image location. Extraneous features are known as clutter. They appear in the runtime image at locations which should be empty.
Public propertySearchImageMask
Gets or sets the mask to be used when running CogPMRedLine. The mask allows you to identify areas of the runtime input image as "Care" or "Don't Care".
Public propertySearchImageMaskOffsetX
Gets or sets the X offset (in pixels) for the search image mask.
Public propertySearchImageMaskOffsetY
Gets or sets the Y offset (in pixels) for the search image mask.
Public propertySearchRegionMode
Gets or sets the search region mode. This mode specifies how the search region is applied to the input image.
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 propertyTimeout
Gets or sets the maximum execution time (in msec) allowed when a PMRedLine tool is run. This value only applies if TimeoutEnabled is set to "true".
Public propertyTimeoutEnabled
Gets or sets whether to enable the runtime timeout.
Public propertyXYOverlap
Gets or sets the area overlap threshold.
Public propertyZoneAngle
Gets the zone configuration for the angle degree of freedom.
Public propertyZoneScale
Gets the zone configuration for the scale degree of freedom.
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
Remarks

This class must be provided as an argument to the Execute(ICogImage, ICogRegion, CogPMRedLineRunParams) method of the CogPMRedLinePattern class. The Execute() method is called automatically every time you call the Run  method of the CogPMRedLineTool class, causing the tool to search the InputImage for instances of the pattern.
See Also