←Select platform

GetRegistrationMarksCenterMass Method

Summary

Finds the center of mass for each of the registration marks specified by markPoints. This method is available in the Document/Medical Toolkits.

Syntax
C#
VB
Objective-C
C++
Java
public static LeadPoint[] GetRegistrationMarksCenterMass( 
   RasterImage image, 
   LeadPoint[] markPoints 
) 
Public Shared Function GetRegistrationMarksCenterMass( _ 
   ByVal image As RasterImage, _ 
   ByVal markPoints() As LeadPoint _ 
) As LeadPoint() 
+ (nullable NSArray<NSValue *> * /*LeadPoint*/)getRegistrationMarksCenterMass:(LTRasterImage *)image 
                                                                   markPoints:(nullable NSArray<NSValue *> *)markPoints /*LeadPoint*/ 
                                                                        error:(NSError **)error 
public static LeadPoint[] getRegistrationMarksCenterMass( 
   RasterImage image,  
   LeadPoint[] markPoints 
) 
public: 
static array<LeadPoint>^ GetRegistrationMarksCenterMass(  
   RasterImage^ image, 
   array<LeadPoint>^ markPoints 
)  

Parameters

image
RasterImage object that references the transformed image.

markPoints
Array of LeadPoint structures containing mark locations.

Return Value

Array of LeadPoint structures to be filled with points which represent the center of mass for each of the supplied registration marks. The first center of mass point corresponds to the first registration mark in the markPoints array and so on_

Remarks
  • 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 results (that is, the points representing each center of mass) returned by this method are multiplied by 100 in order to obtain more precision (00.00). To get the actual results, divide by 100.
  • This methods uses values that are divided internally by 100.
  • This method can be used in the following manner:
    • Use SearchRegistrationMarksCommand to find the registration marks.
    • Pass data from MarkDetectedPoints to this method to determine the points representing the center of mass for each registration mark.
    • Pass these points to GetTransformationParameters to detect the image rotation, scaling and translation.
  • If you simply want to automatically straighten the image, use the DeskewCommand.
  • 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.

For more information, refer to Detecting Registration Marks.

Example

Refer to GetTransformationParameters for sample code.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly