CogCalibFeatureExtractorCheckerboard ClassCognex VisionPro 9.22
This class defines a checkerboard calibration feature extractor. This extractor extracts the calibration features from an image or image collections of a checkerboard calibration plate. Note that the checkerboard calibration plate must follow the Cognex specifications.

This feature extractor operates with a checkerboard style calibration plate consisting of a grid of alternating light and dark checkers.

For each image of a checkerboard, the extractor locates the vertices of checkers in the image and generates a correspondence of vertex locations in image with vertex locations on the physical calibration plate coordinate system (Plate2D, see the remarks section of CogCalibFeatureExtractorCheckerboardLabelModeConstants).

Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.CalibFix CogCalibFeatureExtractorBase
            Cognex.VisionPro.CalibFix CogCalibFeatureExtractorCheckerboard

Namespace: Cognex.VisionPro.CalibFix
Assembly: Cognex.VisionPro.CalibFixPlus (in Cognex.VisionPro.CalibFixPlus.dll) Version: 87.0.0.0
Syntax

[SerializableAttribute]
public class CogCalibFeatureExtractorCheckerboard : CogCalibFeatureExtractorBase, 
	IDisposable

The CogCalibFeatureExtractorCheckerboard type exposes the following members.

Constructors

  NameDescription
Public methodCogCalibFeatureExtractorCheckerboard 
Construct this CogCalibFeatureExtractorCheckerboard using the default parameters:
  • PhysGridPitchX and PhysGridPitchY are (1,1);
  • OriginX and OriginY are (0,0);
  • LabelMode is None;
  • PrecisionThreshold is HUGE_VAL (the largest representable value of type double);
  • NeedBothCheckers is true;
  • UniformLighting is false;
  • CheckerAngleMin is -Math.PI (in radians, i.e. negative 180 degrees);
  • CheckerAngleMax is Math.PI (in radians, i.e. positive 180 degrees);
  • Algorithm is Exhaustive;
  • CheckersCoverFOV is false;
Public methodCogCalibFeatureExtractorCheckerboard(CogCalibFeatureExtractorCheckerboard)
Copy constructs a CogCalibFeatureExtractorCheckerboard object. This is a deep copy.
Public methodCogCalibFeatureExtractorCheckerboard(Double, Double)
Construct this CogCalibFeatureExtractorCheckerboard using the specified grid pitch.
Protected methodCogCalibFeatureExtractorCheckerboard(SerializationInfo, StreamingContext)
Serialization construct a CogCalibFeatureExtractorCheckerboard 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 
Destruct this CogCalibFeatureExtractorCheckerboard.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute(CogImageCollectionMCamerasNPoses)
Extract features from a set of calibration images, acquired from one or multiple cameras over different calibration poses. The images are indexed by pose first, then by camera (see CogImageCollectionMCamerasNPoses for more details). The feature extraction is done by calling the Execute(ICogImage ) method for each calibration image. The Execute(ICogImage ) method will be invoked on multiple threads if IsThreadSafe is true and CogVisionToolMultiThreading.Enable is true.
(Inherited from CogCalibFeatureExtractorBase.)
Public methodExecute(ICogImage)
Extracts features from a checkerboard calibration plate image (the checkerboard calibration plate must follow the Cognex specifications). Note that in the resulting feature correspondences, the image positions (ImageX and ImageY are in the root space ("@") of the input image, and the physical positions (PhysicalX and PhysicalY are in Plate2D space (see the remarks section of CogCalibFeatureExtractorCheckerboardLabelModeConstants).
(Overrides CogCalibFeatureExtractorBase Execute(ICogImage).)
Protected methodFinalize
Finalize this CogCalibFeatureExtractorCheckerboard.
(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
Serializer for CogCalibFeatureExtractorCheckerboard 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.)
Protected methodOnFeaturesExtracted
Method to support feature extraction progress event.
(Inherited from CogCalibFeatureExtractorBase.)
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 memberSfAlgorithm
This bit will be set in the EventArgs of a Changed event every time the value returned by Algorithm may have been changed.
Public fieldStatic memberSfCheckerAngleMax
This bit will be set in the EventArgs of a Changed event every time the value returned by CheckerAngleMax may have been changed.
Public fieldStatic memberSfCheckerAngleMin
This bit will be set in the EventArgs of a Changed event every time the value returned by CheckerAngleMin may have been changed.
Public fieldStatic memberSfCheckersCoverFOV
This bit will be set in the EventArgs of a Changed event every time the value returned by CheckersCoverFOV may have been changed.
Public fieldStatic memberSfDataMatrixTimeoutSeconds
This bit will be set in the EventArgs of a Changed event every time the value returned by DataMatrixTimeoutSeconds may have been changed.
Public fieldStatic memberSfLabelMode
This bit will be set in the EventArgs of a Changed event every time the value returned by LabelMode may have been changed.
Public fieldStatic memberSfNeedBothCheckers
This bit will be set in the EventArgs of a Changed event every time the value returned by NeedBothCheckers may have been changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfOriginX
This bit will be set in the EventArgs of a Changed event every time the value returned by OriginX may have been changed.
Public fieldStatic memberSfOriginY
This bit will be set in the EventArgs of a Changed event every time the value returned by OriginY may have been changed.
Public fieldStatic memberSfPhysGridPitchX
This bit will be set in the EventArgs of a Changed event every time the value returned by PhysGridPitchX may have been changed.
Public fieldStatic memberSfPhysGridPitchY
This bit will be set in the EventArgs of a Changed event every time the value returned by PhysGridPitchY may have been changed.
Public fieldStatic memberSfPrecisionThreshold
This bit will be set in the EventArgs of a Changed event every time the value returned by PrecisionThreshold may have been changed.
Public fieldStatic memberSfUniformLighting
This bit will be set in the EventArgs of a Changed event every time the value returned by UniformLighting may have been changed.
Top
Properties

  NameDescription
Public propertyAlgorithm
Gets/sets the feature extraction algorithm.
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 propertyCheckerAngleMax
Gets/sets the maximum angle of checker orientations. Note that if the new value is smaller than CheckerAngleMin, then CheckerAngleMin will be changed to the new CheckerAngleMax.
Public propertyCheckerAngleMin
Gets/sets the minimum angle of checker orientations. Note that if the new value is larger than CheckerAngleMax, then CheckerAngleMax will be changed to the new CheckerAngleMin.
Public propertyCheckersCoverFOV
Gets/sets whether the checkers entirely cover the field of view.
Public propertyDataMatrixTimeoutSeconds
The maximum number of seconds to search for a single DataMatrix fiducial.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyIsThreadSafe
Gets whether the implementation of Execute(ICogImage) is thread-safe. Thread-safety is required to allow multithreading within implementations of Execute(CogImageCollectionMCamerasNPoses) method.
(Overrides CogCalibFeatureExtractorBase IsThreadSafe.)
Public propertyLabelMode
Gets/sets the label mode of the vertices on the checkerboard calibration plate.
Public propertyNeedBothCheckers
Gets/sets the flag to indicate whether the tool should find only vertices shared by two interior light checkers.
Public propertyOriginX
Gets/sets the the x value of the designated origin to be used for labeling of returned feature points.

The vertex closest to point (OriginX, OriginY) will be used as the origin for point correspondence when LabelMode is UseOrigin.

Public propertyOriginY
Gets/sets the the y value of the designated origin to be used for labeling of returned feature points.

The vertex closest to point (OriginX, OriginY) will be used as the origin for point correspondence when LabelMode is UseOrigin.

Public propertyPhysGridPitchX
Gets/sets the physical units of grid pitch along the x-axis of the calibration plate coordinate system (Plate2D, see the remarks section of CogCalibFeatureExtractorCheckerboardLabelModeConstants). It is the distance between any two adjacent checker vertices whenever the line joining them is parallel to the x axis of Plate2D.
Public propertyPhysGridPitchY
Gets/sets the physical units of grid pitch along the y-axis of the see the remarks section of CogCalibFeatureExtractorCheckerboardLabelModeConstants). It is the distance between any two adjacent
Public propertyPrecisionThreshold
Gets/sets the threshold for discarding vertices with excessive positional uncertainty. This is specified in pixels.
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 propertyUniformLighting
Gets/sets the flag to indicate whether the checkerboard is uniformly illuminated in the run-time images.
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.)
Public eventFeaturesExtracted
Feature extraction progress event. The user can create a CogCalibFeaturesExtractedEventHandler and add to this event.
(Inherited from CogCalibFeatureExtractorBase.)
Top
See Also