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 MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.CalibFix CogNPointToNPoint
Namespace: Cognex.VisionPro.CalibFix
Assembly: Cognex.VisionPro.CalibFix (in Cognex.VisionPro.CalibFix.dll) Version: 75.1.0.0
Syntax
The CogNPointToNPoint type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogNPointToNPoint | Constructs a new instance of this class. | |
| CogNPointToNPoint(IntPtr) | Constructs a new instance of this class using com pointer. | |
| CogNPointToNPoint(CogNPointToNPoint) | Constructs a new instance of this class as a deep copy of the given instance. |
Methods
| Name | Description | |
|---|---|---|
| AddPointPair | Adds a new point to the end of each point set. NumPoints will be increased by one. | |
| Clone | 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 | |
| ComputeGroupAFromGroupBTransform | 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. | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| DeletePointPair | 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. | |
| Dispose | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides Object Finalize .) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetGroupAPoint | Gets the X and Y coordinates of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetGroupAPointX | The X coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetGroupAPointY | The Y coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetGroupBPoint | Gets the X and Y coordinates of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetGroupBPointX | The X coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetGroupBPointY | The Y coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData | ||
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) | (Overrides CogObjectBase GetProperties( Attribute ).) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| ResumeAndRaiseChangedEvent | 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. | |
| SetGroupAPoint | Sets the X and Y coordinates of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SetGroupAPointX | The X coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SetGroupAPointY | The Y coordinate of the 'group A' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SetGroupBPoint | Sets the X and Y coordinates of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SetGroupBPointX | The X coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SetGroupBPointY | The Y coordinate of the 'group B' point with the given index. Valid indices range from 0 to NumPoints-1 inclusive. | |
| SuspendChangedEvent | 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. | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| SfComputationMode | This bit will be set in the EventArgs of a Changed event every time the value returned by ComputationMode may have changed. | |
| SfDOFsToCompute | This bit will be set in the EventArgs of a Changed event every time the value returned by DOFsToCompute may have changed. | |
| SfGetGroupAPointX | This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupAPointX may have changed. | |
| SfGetGroupAPointY | This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupAPointY may have changed. | |
| SfGetGroupBPointX | This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupBPointX may have changed. | |
| SfGetGroupBPointY | This bit will be set in the EventArgs of a Changed event every time the value returned by GetGroupBPointY may have changed. | |
| SfNumPoints | This bit will be set in the EventArgs of a Changed event every time the value returned by NumPoints may have changed. |
Properties
| Name | Description | |
|---|---|---|
| ChangedEventSuspended | 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. | |
| ComputationMode | 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. | |
| DOFsToCompute | 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. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| NumPoints | The number of points in each point set. This is the number of 'group B' points, and also the number of 'group A' points. |
Events
| Name | Description | |
|---|---|---|
| Changed | Occurs when one or more parts of the object's state may have changed. |
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