CogTransform2DPerspectiveAndRadial ClassCognex VisionPro 9.8
A CogTransform2DPerspectiveAndRadial transform is a planar perspective transform, followed by a radial transform, followed by a linear transform without rotation. This can be used to correct for common non-linear effects in a camera setup.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogTransform2DPerspectiveAndRadial

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax

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

The CogTransform2DPerspectiveAndRadial type exposes the following members.

Constructors

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

  NameDescription
Public methodBestFitLinearTransform
Returns a new linear transform which best describes this transform over the given set of points. The points must be expressed in 'from' coordinates.
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 methodCompose
Returns a new transform which is the composition of the given transform (on the right side) and this one (on the left side).
Public methodComposeBase
Returns a new transform which is the composition of the given transform (on the right side) and this one (on the left side).
Public methodCopy
Returns a new copy of this transform.
Public methodCopyBase
Returns a new copy of this transform.
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.)
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 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
Public methodGetPerspectiveRadialLinearParams
Extract the named parameters from this transform. Skew is in radians.
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.)
Public methodInvert
Returns a new transform which is the inverse of this one.
Public methodInvertBase
Returns a new transform which is the inverse of this one.
Public methodLinearTransform
Returns a new linear transform which best describes this transform at the given point. The point must be expressed in 'from' coordinates.
Public methodMapPoint
Maps the given x,y point through this transform, filling in the mapped x,y coordinates.
Public methodMapPoints
Map the supplied points through this transform.
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 methodSetPerspectiveRadialLinearParams
Set this transform from the given parameters. Skew is in radians.
Public methodSingular
Returns True if the specified point is within the given Tolerance (i.e., radius) of a singular point in the transform.
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 memberSfInverted
This bit will be set in the EventArgs of a Changed event every time the value returned by Inverted may have changed.
Public fieldStatic memberSfLinear
This bit will be set in the EventArgs of a Changed event every time the value returned by Linear may have changed.
Public fieldStatic memberSfLinearAspect
This bit will be set in the EventArgs of a Changed event every time the value returned by LinearAspect may have changed.
Public fieldStatic memberSfLinearScaling
This bit will be set in the EventArgs of a Changed event every time the value returned by LinearScaling may have changed.
Public fieldStatic memberSfLinearSkew
This bit will be set in the EventArgs of a Changed event every time the value returned by LinearSkew may have changed.
Public fieldStatic memberSfLinearTranslationX
This bit will be set in the EventArgs of a Changed event every time the value returned by LinearTranslationX may have changed.
Public fieldStatic memberSfLinearTranslationY
This bit will be set in the EventArgs of a Changed event every time the value returned by LinearTranslationY may have changed.
Public fieldStatic memberSfPerspectiveDX
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveDX may have changed.
Public fieldStatic memberSfPerspectiveDY
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveDY may have changed.
Public fieldStatic memberSfPerspectiveXC
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveXC may have changed.
Public fieldStatic memberSfPerspectiveXX
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveXX may have changed.
Public fieldStatic memberSfPerspectiveXY
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveXY may have changed.
Public fieldStatic memberSfPerspectiveYC
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveYC may have changed.
Public fieldStatic memberSfPerspectiveYX
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveYX may have changed.
Public fieldStatic memberSfPerspectiveYY
This bit will be set in the EventArgs of a Changed event every time the value returned by PerspectiveYY may have changed.
Public fieldStatic memberSfRadialK
This bit will be set in the EventArgs of a Changed event every time the value returned by RadialK 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 propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyInverted
Returns false if this transform represents the forward perspective and radial transform specified by its properties. Returns true if this transform represents the inverse of the forward transform specified by the properties.
Public propertyLinear
Returns true if this is a linear transform.
Public propertyLinearAspect
Returns/sets the aspect of this transform. Aspect is the ratio of scaling along the y axis over scaling along the x axis.
Public propertyLinearScaling
Returns/sets the scaling of this transform.
Public propertyLinearSkew
Returns/sets the skew of this transform (in radians).
Public propertyLinearTranslationX
Returns/sets the x component of the translation vector.
Public propertyLinearTranslationY
Returns/sets the y component of the translation vector.
Public propertyPerspectiveDX
Returns/sets the planar perspective coefficient PDX. This controls perspective in the unmapped X direction. Zero means no X perspective, positive value tilts plane away with increasing unmapped X, negative tilts plane away with decreasing unmapped X.
Public propertyPerspectiveDY
Returns/sets the planar perspective coefficient PDY. This controls perspective in the unmapped Y direction. Zero means no Y perspective, positive value tilts plane away with increasing unmapped Y, negative tilts plane away with decreasing unmapped Y.
Public propertyPerspectiveXC
Returns/sets the planar perspective coefficient PXC, as applied in: Xp = (PXX*X + PXY*Y + PXC)/(PDX*X + PDY*Y +1) where X and Y are unmapped coordinates. Defines the X coordinate for the center of radial distortion needed in the subsequent step.
Public propertyPerspectiveXX
Returns/sets the planar perspective coefficient PXX, as applied in: Xp = (PXX*X + PXY*Y + PXC)/(PDX*X + PDY*Y +1), where X and Y are unmapped coordinates.
Public propertyPerspectiveXY
Returns/sets the planar perspective coefficient PXY, as applied in: Xp = (PXX*X + PXY*Y + PXC)/(PDX*X + PDY*Y +1) where X and Y are unmapped coordinates.
Public propertyPerspectiveYC
Returns/sets the planar perspective coefficient PYC, as applied in: Yp = (PYX*X + PYY*Y + PYC)/(PDX*X + PDY*Y +1) where X and Y are unmapped coordinates. Defines the Y coordinate for the center of radial distortion needed in the subsequent step.
Public propertyPerspectiveYX
Returns/sets the planar perspective coefficient PYX, as applied in: Yp = (PYX*X + PYY*Y + PYC)/(PDX*X + PDY*Y +1) where X and Y are unmapped coordinates.
Public propertyPerspectiveYY
Returns/sets the planar perspective coefficient PYY, as applied in: Yp = (PYX*X + PYY*Y + PYC)/(PDX*X + PDY*Y +1) where X and Y are unmapped coordinates.
Public propertyRadialK
Returns/sets the radial coefficient of distortion. Zero indicates no radial distortion, positive value causes a scale and pin cushion effect on a grid, negative value causes a negative scale and barrel effect.
Top
Events

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

A comprises a planar perspective transform, followed by a radial transform, followed by a linear transform (without rotation). It can be used to correct for common nonlinear effects in a camera setup.

See Also