IsRegMark method (Main Control)
Builder Syntax |
int IsRegMark(unsigned uType, unsigned uMinScale, unsigned uMaxScale, unsigned uWidth, unsigned uHeight); |
Delphi Syntax |
Function IsRegMark (uType: L_UINT; uMinScale: L_UINT; uMaxScale: L_UINT; uWidth: L_UINT; uHeight: L_UINT): L_INT; |
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 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 uType 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 is no condition on line lengths since you provide the values for uWidth, uHeight, uMaxScale, and uMinScale.
Do not use this method to search for registration marks inside a bitmap. Use the 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, GetTransformationParameters method, SearchRegMarks method, GetMarksCenterMass method, ApplyTransformationParameters method |
Topics: |