IsRegistrationMark method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short IsRegistrationMark (ILEADRaster *pRaster, MarkTypeConstants Type, long lMinScale, long lMaxScale, long lWidth, long lHeight);

Overview

Refer to Detecting Registration Marks

Remarks

(Document/Medical only) Determines whether the object inside the bitmap is a registration mark.

This method verifies whether the object inside the bitmap is a registration mark. The object must be white and the background be black. Objects that are not white will not be detected. The bitmap must have only one object inside it in order to work properly.

Currently, there is only one Type defined, a T-shaped figure as shown in the following figure. This type is a "T" rotated by 90 degrees counter clockwise. The P4 point must be on the center point of Line P1P2 (that is, the distance from P1 to P4 equals the distance from P2 to P4). The line width should be greater than 2 pixels(preferably 3 pixels). There are no condition on line lengths since you provide the values for lWidth, lHeight, lMaxScale, and ulMinScale.

Do not use this method to search for registration marks inside a bitmap. Use SearchRegMarks method instead.

If you simply want to automatically straighten a bitmap, use the Deskew method.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Combine method, Rotate method, Size method, Deskew method, ApplyTransformationParameters method, GetTransformationParameters method, SearchRegMarks method, GetMarksCenterMass method, XTranslation property, YTranslation property, TransformationAngle property, XScale property, YScale property, TransformedPointsX property, TransformedPointsY property

Topics:

Raster Images: Document Imaging