CogNPointToNPoint ClassCognex VisionPro
The CogNPointToNPoint object computes the best-fit (minimum squared error) transformation which maps a set of N 'group B' points onto a set of N 'group A' points.
Inheritance Hierarchy

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

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

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

The CogNPointToNPoint type exposes the following members.

Constructors

  NameDescription
Public methodCogNPointToNPoint 
Constructs a new instance of this class.
Public methodCogNPointToNPoint(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogNPointToNPoint(CogNPointToNPoint)
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.
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 methodComputeGroupAFromGroupBTransform
Compute and return a best-fit transformation between 'group A' points and 'group B' points. The RMS error of the computation can also be obtained. The returned transform maps points from the 'group B' space to the 'group A' space.
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.)
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.)
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 methodGetGroupAPoint
Gets the X and Y coordinates of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetGroupAPointX
The X coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetGroupAPointY
The Y coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetGroupBPoint
Gets the X and Y coordinates of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetGroupBPointX
The X coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodGetGroupBPointY
The Y coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
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
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 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 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 methodSetGroupAPoint
Sets the X and Y coordinates of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetGroupAPointX
The X coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetGroupAPointY
The Y coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetGroupBPoint
Sets the X and Y coordinates of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetGroupBPointX
The X coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive.
Public methodSetGroupBPointY
The Y coordinate of the 'group B' 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.)
Top
Fields

  NameDescription
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 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 memberSfGetGroupAPointX
This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupAPointX may have changed.
Public fieldStatic memberSfGetGroupAPointY
This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupAPointY may have changed.
Public fieldStatic memberSfGetGroupBPointX
This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupBPointX may have changed.
Public fieldStatic memberSfGetGroupBPointY
This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupBPointY 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.
Top
Properties

  NameDescription
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 'group A' points and the 'group B' points will be computed. Only linear computations are supported in this release.
Public propertyDOFsToCompute
This enumeration specifies which degrees of freedom will be allowed when computing the best-fit transformation between the 'group A' points and the 'group B' 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 'group B' points, and also the number of 'group A' points.
Top
Events

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

This interface computes the best-fit (minimum squared error) transformation which maps a set of N "group B" points onto a set of N "group A" points.

Note: This interface exists to enable programmatic users to accomplish low-level fitting between two sets of N points. It is neither a tool nor an operator for a tool.

See Also