CogCalibNPointToNPoint ClassCognex VisionPro 9.5
The CogCalibNPointToNPoint object defines a calibrated coordinate space using N pairs of points and allows users to attach this space to an image.
Inheritance Hierarchy

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

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

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

The CogCalibNPointToNPoint type exposes the following members.

Constructors

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

  NameDescription
Public methodAddPointPair
Adds a new point to the end of each point set. NumPoints will be increased by one.
Public methodCalibrate
Computes the calibrated space using the current point sets. If successful, sets the Calibrated property to True, updates the computed transforms, and updates the ComputedRMSError property.
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 methodDeletePointPair
Deletes the point at the given index from each point set. Points with higher indices are shifted to the next lower index, and NumPoints is decreased by one.
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 input image, using the given RunParams, and returns a shallow copy of the image as an output.
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 point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetRawCalibratedPointX
The X coordinate of the raw calibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetRawCalibratedPointY
The Y coordinate of the raw calibrated 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 point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetUncalibratedPointX
The X coordinate of the uncalibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetUncalibratedPointY
The Y coordinate of the uncalibrated 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.)
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 methodSetRawCalibratedPoint
Sets the X and Y coordinates of the raw calibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetRawCalibratedPointX
The X coordinate of the raw calibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetRawCalibratedPointY
The Y coordinate of the raw calibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetUncalibratedPoint
Sets the X and Y coordinates of the uncalibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetUncalibratedPointX
The X coordinate of the uncalibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetUncalibratedPointY
The Y coordinate of the uncalibrated point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
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 calibrated space. This method also sets the Calibrated property to False, sets the computed transforms to Nothing, and sets the ComputedRMSError property to zero.
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 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 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 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 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 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 memberSfSwapCalibratedHandedness
This bit will be set in the EventArgs of a Changed event every time the value returned by SwapCalibratedHandedness 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 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. Only linear computations are supported in this release.
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 propertyDOFsToCompute
This enumeration specifies which degrees of freedom will be allowed when computing the best-fit transformation between the uncalibrated points and the raw calibrated points.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyNumPoints
The number of points in each point set. This is the number of raw calibrated points, and also the number of uncalibrated points.
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

This interface defines a calibrated coordinate space using N pairs of points and allows you to attach this space to an image.

See Also