CogCalibCheckerboard ClassCognex VisionPro 9.7
The CogCalibCheckerboard object defines a calibrated coordinate space using an image of a checkerboard calibration plate. It allows you to attach the calibrated space to an image, and may also perform a nonlinear warping of that image.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.CalibFix CogCalibCheckerboard

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

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

The CogCalibCheckerboard type exposes the following members.

Constructors

  NameDescription
Public methodCogCalibCheckerboard 
Constructs a new instance of this class.
Public methodCogCalibCheckerboard(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogCalibCheckerboard(CogCalibCheckerboard)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Public methodCalibrate
Computes the mapping to calibrated space using the current CalibrationImage and related parameters. If successful, sets the Calibrated property to True, updates the computed transforms, and makes this object ready to run via the Execute method.
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.)
Public methodExecute
Attaches the calibrated space to the coordinate tree of the output image, using the given RunParams. Depending upon the ComputationMode the output image is either a shallow copy of the input image or a new image that is a nonlinear warping of the input.
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.)
Public methodGetComputedUncalibratedFromCalibratedTransform
If Calibrated is True, this method returns the 2-D, minimum squared error, transformation that maps points from the (adjusted) calibrated space into uncalibrated space. Otherwise, it returns Nothing.
Public methodGetComputedUncalibratedFromRawCalibratedTransform
Returns the 2-D, minimum squared error, transformation that maps points from the raw calibrated space into uncalibrated space, if it has been computed. Otherwise, returns Nothing. The transform is computed by calling Calibrate.
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 methodGetInfoStrings
Returns diagnostic text string(s) from the last call to Calibrate. The collection will be empty if there are no messages, or if the Calibrated property is False.
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 ) (Overrides CogObjectBase GetProperties( Attribute ).)
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 methodGetRawCalibratedPoint
Gets the X and Y coordinates of the raw calibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetRawCalibratedPointX
The X coordinate of the raw calibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetRawCalibratedPointY
The Y coordinate of the raw calibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUncalibratedPoint
Gets the X and Y coordinates of the uncalibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetUncalibratedPointX
The X coordinate of the uncalibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetUncalibratedPointY
The Y coordinate of the uncalibrated vertex point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
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 methodOnDeserialization
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 methodSetExternal
For Cognex Internal Use Only.
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.)
Public methodUncalibrate
Eliminates the current mapping to calibrated space. This method also sets the Calibrated property to False, sets the computed transforms to Nothing, and renders the object unable to run via the Execute method.
Top
Fields

  NameDescription
Public fieldStatic memberSfCalibrated
This bit will be set in the EventArgs of a Changed event every time the value returned by Calibrated may have changed.
Public fieldStatic memberSfCalibratedOriginSpace
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibratedOriginSpace may have changed.
Public fieldStatic memberSfCalibratedOriginX
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibratedOriginX may have changed.
Public fieldStatic memberSfCalibratedOriginY
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibratedOriginY may have changed.
Public fieldStatic memberSfCalibratedXAxisRotation
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibratedXAxisRotation may have changed.
Public fieldStatic memberSfCalibratedXAxisRotationSpace
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibratedXAxisRotationSpace may have changed.
Public fieldStatic memberSfCalibrationImage
This bit will be set in the EventArgs of a Changed event every time the value returned by CalibrationImage may have changed.
Public fieldStatic memberSfComputationMode
This bit will be set in the EventArgs of a Changed event every time the value returned by ComputationMode may have changed.
Public fieldStatic memberSfComputedRMSError
This bit will be set in the EventArgs of a Changed event every time the value returned by ComputedRMSError may have changed.
Public fieldStatic memberSfDataMatrixTimeout
This bit will be set in the EventArgs of a Changed event every time the value returned by DataMatrixTimeout may have changed.
Public fieldStatic memberSfDataMatrixTimeoutEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by DataMatrixTimeoutEnabled may have changed.
Public fieldStatic memberSfDOFsToCompute
This bit will be set in the EventArgs of a Changed event every time the value returned by DOFsToCompute may have changed.
Public fieldStatic memberSfExternalEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by ExternalEnabled may have changed.
Public fieldStatic memberSfFeatureFinder
This bit will be set in the EventArgs of a Changed event every time the value returned by FeatureFinder may have changed.
Public fieldStatic memberSfFiducialMark
This bit will be set in the EventArgs of a Changed event every time the value returned by FiducialMark may have changed.
Public fieldStatic memberSfGetComputedUncalibratedFromCalibratedTransform
This bit will be set in the EventArgs of a Changed event every time the value returned by GetComputedUncalibratedFromCalibratedTransform may have changed.
Public fieldStatic memberSfGetComputedUncalibratedFromRawCalibratedTransform
This bit will be set in the EventArgs of a Changed event every time the value returned by GetComputedUncalibratedFromRawCalibratedTransform may have changed.
Public fieldStatic memberSfGetInfoStrings
This bit will be set in the EventArgs of a Changed event every time the value returned by GetInfoStrings may have changed.
Public fieldStatic memberSfGetOutputImageRootFromCalibratedTransform
This bit will be set in the EventArgs of a Changed event every time the value returned by GetOutputImageRootFromCalibratedTransform may have changed.
Public fieldStatic memberSfGetRawCalibratedPointX
This bit will be set in the EventArgs of a Changed event every time the value returned by GetRawCalibratedPointX may have changed.
Public fieldStatic memberSfGetRawCalibratedPointY
This bit will be set in the EventArgs of a Changed event every time the value returned by GetRawCalibratedPointY may have changed.
Public fieldStatic memberSfGetUncalibratedPointX
This bit will be set in the EventArgs of a Changed event every time the value returned by GetUncalibratedPointX may have changed.
Public fieldStatic memberSfGetUncalibratedPointY
This bit will be set in the EventArgs of a Changed event every time the value returned by GetUncalibratedPointY may have changed.
Public fieldStatic memberSfLinescanDistanceToTarget
This bit will be set in the EventArgs of a Changed event every time the value returned by LinescanDistanceToTarget may have changed.
Public fieldStatic memberSfLinescanDistanceToTargetEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by LinescanDistanceToTargetEnabled may have changed.
Public fieldStatic memberSfNumPoints
This bit will be set in the EventArgs of a Changed event every time the value returned by NumPoints may have changed.
Public fieldStatic memberSfOutputImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by OutputImageMask may have changed.
Public fieldStatic memberSfPhysicalTileSizeX
This bit will be set in the EventArgs of a Changed event every time the value returned by PhysicalTileSizeX may have changed.
Public fieldStatic memberSfPhysicalTileSizeY
This bit will be set in the EventArgs of a Changed event every time the value returned by PhysicalTileSizeY may have changed.
Public fieldStatic memberSfSwapCalibratedHandedness
This bit will be set in the EventArgs of a Changed event every time the value returned by SwapCalibratedHandedness may have changed.
Public fieldStatic memberSfUndistortedCalibrationImage
This bit will be set in the EventArgs of a Changed event every time the value returned by UndistortedCalibrationImage may have changed.
Public fieldStatic memberSfUndistortedCalibrationImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by UndistortedCalibrationImageMask may have changed.
Public fieldStatic memberSfWarpDestinationRectangle
This bit will be set in the EventArgs of a Changed event every time the value returned by WarpDestinationRectangle may have changed.
Public fieldStatic memberSfWarpMaxErrorInPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by WarpMaxErrorInPixels may have changed.
Public fieldStatic memberSfWarpRotation
This bit will be set in the EventArgs of a Changed event every time the value returned by WarpRotation may have changed.
Public fieldStatic memberSfWarpScaling
This bit will be set in the EventArgs of a Changed event every time the value returned by WarpScaling may have changed.
Top
Properties

  NameDescription
Public propertyCalibrated
True if all of the computed outputs of this object are meaningful, and were computed using the current object properties. This can only happen if the Calibrate method is called and none of the object properties are changed afterwards.
Public propertyCalibratedOriginSpace
Specifies whether the CalibratedOriginX and CalibratedOriginY properties are expressed in uncalibrated space, or in raw calibrated space.
Public propertyCalibratedOriginX
The desired X position of the calibrated space origin, expressed in the coordinate space specified by CalibratedOriginSpace. Calibrated space will be adjusted so that its origin appears at this X position when calibrated.
Public propertyCalibratedOriginY
The desired Y position of the calibrated space origin, expressed in the coordinate space specified by CalibratedOriginSpace. Calibrated space will be adjusted so that its origin appears at this Y position when calibrated.
Public propertyCalibratedXAxisRotation
The desired x-axis rotation of calibrated space, expressed in the coordinate space specified by CalibratedXAxisRotationSpace. Calibrated space will be adjusted so that its x-axis appears at this angle (in radians) when calibrated.
Public propertyCalibratedXAxisRotationSpace
Specifies whether the CalibratedXAxisRotation property is expressed in uncalibrated space, or in raw calibrated space.
Public propertyCalibrationImage
The image of the checkerboard calibration plate. Each tile on the plate must be at least 15 pixels high and wide. During calibration the vertex points (where four tiles meet) will be used to compute the calibration transform.
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 propertyComputationMode
This enumeration specifies how the best-fit transformation between the uncalibrated points and the raw calibrated points will be computed. You can choose a linear computation or a nonlinear one (with runtime image warping).
Public propertyComputedRMSError
Returns the root mean squared error between the uncalibrated points and the mapped raw calibrated points, expressed in uncalibrated space. It is valid if the computed uncalibrated from raw calibrated transform exists. Otherwise, zero is returned.
Public propertyDataMatrixTimeout
The maximum time in milliseconds to search for a single DataMatrix fiducial.
Public propertyDataMatrixTimeoutEnabled
If True, use the DataMatrixTimeout value when calibrating if FiducialMark is either DataMatrix or DataMatrixWithGridPitch.
Public propertyDOFsToCompute
This enumeration specifies which degrees of freedom will be allowed when computing the best-fit linear transformation between the uncalibrated points and the raw calibrated points. It is used only when the ComputationMode is linear.
Public propertyExternalEnabled
For Cognex Internal Use Only.
Public propertyFeatureFinder
An enumeration that specifies the algorithm used to find features on the calibration plate.
Public propertyFiducialMark
An enumeration that specifies what style of fiducial mark is present on the calibration plate.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyLinescanDistanceToTarget
The distance in client coordinates from the linescan camera to the calibration target.
Public propertyLinescanDistanceToTargetEnabled
If True, use the LinescanDistanceToTarget value when calibrating if ComputationMode is LinescanWarp or Linescan2DWarp.
Public propertyNumPoints
The number of vertex points in each point set. This is the number of raw calibrated points, and also the number of uncalibrated points.
Public propertyOwnedWarpParams
Gets the nonlinear warping parameters and results. These items are owned by this calibration object, but are conveniently grouped together inside the returned interface.
Public propertyPhysicalTileSizeX
The physical grid spacing in the X direction of raw calibrated space.
Public propertyPhysicalTileSizeY
The physical grid spacing in the Y direction of raw calibrated space.
Public propertySwapCalibratedHandedness
Specifies the handedness of the calibrated space. When SwapCalibratedHandedness is false, the calibrated space will have the same handedness as the raw (unadjusted) calibrated space. Otherwise, it will have the opposite handedness.
Top
Events

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

The primary interface of the CogCalibCheckerboard object. Lets you define a calibrated coordinate space using an image of a checkerboard calibration plate. It allows you to attach the calibrated space to an image, and may also perform a nonlinear warping of that image.

See Also