SearchRegMarks method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SearchRegMarks(LPREGMARKS pRegMarks, unsigned uMarksCount);

Delphi Syntax

Function SearchRegMarks (pRegMarks: LPREGMARKS; uMarksCount: L_UINT): L_INT;

Overview

Refer to Detecting Registration Marks

Remarks

(Document/Medical only) Searches the bitmap for the registration marks according to the information in pRegMarks.

This method searches the bitmap for registration marks. The pRegMarks array contains the information about the registration marks. Declare the array before calling the method. You should specify the following:

uType

uWidth

uHeight

uMinScale

uMaxScale

rcRect

uMarkSearchCount

pMarkDetectedCount

The method will update each member of the pRegMarks array with information about the detected registration marks:

The uMarkDetectedCount member will be updated with number of detected marks in that area.

The pMarkDetectedPoints member will be updated with the position of the detected marks.

You can call GetTransformationParameters to get the transformation parameters, which can be applied to this bitmap to make it match the reference image.

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, IsRegMark method, GetTransformationParameters method, GetMarksCenterMass method, ApplyTransformationParameters method

Topics:

Raster Images: Document Imaging