ImageGear .NET - Updated
TransformPoint Method




ImageGear24.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecImage Class : TransformPoint Method
Point whose coordinates are to be transformed.
When true, the method will treat the values in point point as coordinates belonging to the current image, and so it will calculate the corresponding coordinates on the original (incoming) image.When false, the method will treat the values in point point as coordinates belonging to original (incoming) image, and so the method will calculate the corresponding coordinates on the current image.
Transforms the coordinates of a point between original input and processed versions of the image.
Syntax
'Declaration
 
Public Sub TransformPoint( _
   ByRef point As ImGearPoint, _
   ByVal fromCurrentToOriginal As Boolean _
) 
'Usage
 
Dim instance As ImGearRecImage
Dim point As ImGearPoint
Dim fromCurrentToOriginal As Boolean
 
instance.TransformPoint(point, fromCurrentToOriginal)
public void TransformPoint( 
   ref ImGearPoint point,
   bool fromCurrentToOriginal
)
public: void TransformPoint( 
   ref ImGearPoint point,
   bool fromCurrentToOriginal
) 
public:
void TransformPoint( 
   ImGearPoint% point,
   bool fromCurrentToOriginal
) 

Parameters

point
Point whose coordinates are to be transformed.
fromCurrentToOriginal
When true, the method will treat the values in point point as coordinates belonging to the current image, and so it will calculate the corresponding coordinates on the original (incoming) image.When false, the method will treat the values in point point as coordinates belonging to original (incoming) image, and so the method will calculate the corresponding coordinates on the current image.
Remarks
This method can be used to learn the coordinates of a point on the original (incoming) image, when the coordinates of the point on the current image are known. This might be necessary, since images often undergo different image preprocessing steps, such as deskewing, rotation, etc. Alternatively, this method can provide the coordinates of a point on the current image when its coordinates on the original image are given.

Note: ReduceToBitonal method clears the history of image transforms. After applying this method, Recognition engine treats the bitonal image as if it was the original one.

See Also

Reference

ImGearRecImage Class
ImGearRecImage Members
ImGearPoint Structure