←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
Java
Objective-C
WinRT C#
C++
public static [Leadtools.LeadPoint[]](../l/leadpoint.html) GetRegistrationMarksCenterMass(  
   Leadtools.RasterImage image, 
   Leadtools.LeadPoint[] markPoints 
) 
Public Shared Function GetRegistrationMarksCenterMass( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal markPoints() As Leadtools.LeadPoint _ 
) As Leadtools.LeadPoint() 
public static [Leadtools.LeadPoint[]](../l/leadpoint.html) GetRegistrationMarksCenterMass(  
   Leadtools.RasterImage image, 
   Leadtools.LeadPoint[] markPoints 
) 
+ (nullable NSArray<NSValue *> * /*LeadPoint*/)getRegistrationMarksCenterMass:(LTRasterImage *)image 
                                                                   markPoints:(nullable NSArray<NSValue *> *)markPoints /*LeadPoint*/ 
                                                                        error:(NSError **)error 
public static LeadPoint[] getRegistrationMarksCenterMass( 
   RasterImage image,  
   LeadPoint[] markPoints 
) 
function Leadtools.ImageProcessing.Core.CoreUtilities.GetRegistrationMarksCenterMass(  
   image , 
   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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.ImageProcessing.Core Assembly
Click or drag to resize