CogBeadInspectDefect ClassCognex VisionPro 9.20
Class that holds a bead inspect defect generated by the Execute(ICogVisionData, CogBeadInspectRunParams) method.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.EdgeInspect CogBeadInspectDefect

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 80.0.0.0
Syntax

[SerializableAttribute]
public class CogBeadInspectDefect : CogSerializableObjectBase, 
	IDisposable

The CogBeadInspectDefect type exposes the following members.

Constructors

  NameDescription
Public methodCogBeadInspectDefect(CogBeadInspectDefect)
Constructs a deep copy of the supplied CogBeadInspectDefect object.
Protected methodCogBeadInspectDefect(SerializationInfo, StreamingContext)
Serialization constructor for CogBeadInspectDefect 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 CogBeadInspectDefect 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 CogBeadInspectDefect 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.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyArea
Gets the area of the bead path where the defect was detected. The area is defined by summing the bead widths within the defect. This area is specified in units defined by the image's SelectedSpaceName.
Public propertyBounds
Gets the bounding box of the defect. The bounding box encloses the segment of the bead path where the defect is present, and all of the calipers that compise that defect. This box is specified in units defined by the image's SelectedSpaceName.
Public propertyCoverageAvg
Get the average coverage ratio measured by the calipers of this defect.
Public propertyCoverageMax
Get the maximum coverage ratio measured by the calipers of this defect.
Public propertyCoverageMin
Get the minimum coverage ratio measured by the calipers of this defect.
Public propertyDefectClass
Gets the categories that describe the defect, specified as bitwise ORed flags defined by the CogBeadInspectDefectTypeConstants enumeration.
Public propertyEndCaliperIndex
Get the index of the last caliper that comprises this defect.
Public propertyEndPositionX
Gets the x-coordinate of the last point along the segment of the bead path where the defect was detected. This coordinate is specified in units defined by the image's SelectedSpaceName.
Public propertyEndPositionY
Gets the y-coordinate of the last point along the segment of the bead path where the defect was detected. This coordinate is specified in units defined by the image's SelectedSpaceName.
Public propertyLeftStepMax
Get the maximum step value measured by the calipers of this defect along the left edge of the bead. This measurement can help you to identify sharp fluctuations in the position of the edge.
Public propertyRightStepMax
Get the maximum step value measured by the calipers of this defect along the right edge of the bead. This measurement can help you to identify sharp fluctuations in the position of the edge.
Public propertySize
Gets the length of the path between the first and last points along the segment of the bead path where the defect was detected. This length is specified in units defined by the image's SelectedSpaceName.
Public propertyStartCaliperIndex
Get the index of the first caliper that comprises this defect.
Public propertyStartPositionX
Gets the x-coordinate of the first point along the segment of the bead path where the defect was detected. This coordinate is specified in units defined by the image's SelectedSpaceName.
Public propertyStartPositionY
Gets the y-coordinate of the first point along the segment of the bead path where the defect was detected. This coordinate is specified in units defined by the image's SelectedSpaceName.
Public propertyWidthAvg
Get the average width ratio measured by the calipers of this defect. For each caliper the width ratio is computed by dividing the width measured at runtime by the width measured at train-time.
Public propertyWidthMax
Get the maximum width ratio measured by the calipers of this defect. For each caliper the width ratio is computed by dividing the width measured at runtime by the width measured at train-time.
Public propertyWidthMin
Get the minimum width ratio measured by the calipers of this defect. For each caliper the width ratio is computed by dividing the width measured at runtime by the width measured at train-time.
Top
Remarks

An instance of this class is returned by the Item Int32  property of the CogBeadInspectDefects class.

A defect is detected along sections of the bead path where multiple consecutive calipers (see: ConsecutiveFailingCalipersMin) fail for one or more of the following reasons:

  • The bead width measured by the caliper is out of tolerance: the bead is wider than WidthMax or narrower than WidthMin.
  • The bead coverage measured by the caliper is out of tolerance: the bead coverage is larger than CoverageMax or smaller than CoverageMin.
  • The left or right edge of the bead steps sideways (perpendicular to the direction of the path), from one caliper to the next, by an amount that is larger than the StepThreshold.
  • The left and/or right edge of the bead is missing (and not replaced by a fill edge).

For each defect, this class provides:

  • The index of the first and last calipers that comprise the defect.
  • The point on the bead path where the defect starts and ends.
  • The arc length of the bead path between the start and end ponts.
  • The area of the bead measured within the defect.
  • The minimum, maximum, and average bead width measured by the calipers within the defect.
  • The minimum, maximum, and average bead coverage measured by the calipers within the defect.
  • The maximum step sideways from one caliper to the next for both the right and left edge of the bead.
If you want to view the width, coverage, or step values for an individual caliper, please see the methods of the CogBeadInspectResult class.

For more information on the definition of a bead and bead path in this context, please refer to the remarks section of the CogBeadInspectPattern class.

See Also