ImageGear for .NET

TransformPoint Method

ImageGear21.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( _ ByRefpointAs ImGearPoint, _ ByValfromCurrentToOriginalAs Boolean _ )

'Usage Dim instance As ImGearRecImage Dim point As ImGearPoint Dim fromCurrentToOriginal As Boolean instance.TransformPoint(point, fromCurrentToOriginal)

public void TransformPoint( ref ImGearPointpoint, boolfromCurrentToOriginal)

public: void TransformPoint( ref ImGearPointpoint, boolfromCurrentToOriginal)

public: void TransformPoint( ImGearPoint%point, boolfromCurrentToOriginal)

*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