Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
GetRegistrationMarksCenterMass Method
See Also 
Leadtools.ImageProcessing.Core Namespace > CoreUtilities Class : GetRegistrationMarksCenterMass Method




image
RasterImage object that references the transformed image.
markPoints
Array of Point structures containing mark locations.
Finds the center of mass for each of the registration marks specified by markPoints. This method is available in the Document/Medical Toolkits.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetRegistrationMarksCenterMass( _
   ByVal image As RasterImage, _
   ByVal markPoints() As Point _
) As Point()
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim markPoints() As Point
Dim value() As Point
 
value = CoreUtilities.GetRegistrationMarksCenterMass(image, markPoints)
C# 
public static Point[] GetRegistrationMarksCenterMass( 
   RasterImage image,
   Point[] markPoints
)
Managed Extensions for C++ 
public: static Point[] GetRegistrationMarksCenterMass( 
   RasterImage image,
   Point[] markPoints
) 
C++/CLI 
public:
static array<Point> GetRegistrationMarksCenterMass( 
   RasterImage image,
   array<Point> markPoints
) 

Parameters

image
RasterImage object that references the transformed image.
markPoints
Array of Point structures containing mark locations.

Return Value

Array of Point 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_

Example

Refer to GetTransformationParameters for sample code.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also