GetMarksCenterMass method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short GetMarksCenterMass (ILEADRaster *pRaster);

Overview

Refer to Detecting Registration Marks

Remarks

(Document/Medical only) Gets the center of mass for each of the registration marks specified in the MarkPointX and MarkPointY properties.

This method is used to determine the center of mass for each supplied registration mark, to be used in detecting image rotation, scaling and translation.

The MarkCMPointX and MarkCMPointY properties will be updated by this method.

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:

MarkPointX, MarkPointY, MarkCMPointX, MarkCMPointY

Topics:

Raster Images: Document Imaging