LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetRegistrationMarksCenterMass Method
See Also 
Leadtools.ImageProcessing.Core Namespace > CoreUtilities Class : GetRegistrationMarksCenterMass Method



image
RasterImage object that references the transformed image.
markPoints
Array of Leadtools.LeadPoint structures containing mark locations.
image
RasterImage object that references the transformed image.
markPoints
Array of Leadtools.LeadPoint 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 LeadPoint _
) As LeadPoint()
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim markPoints() As LeadPoint
Dim value() As LeadPoint
 
value = CoreUtilities.GetRegistrationMarksCenterMass(image, markPoints)
C# 
public static LeadPoint[] GetRegistrationMarksCenterMass( 
   RasterImage image,
   LeadPoint[] markPoints
)
C++/CLI 
public:
static array<LeadPoint>^ GetRegistrationMarksCenterMass( 
   RasterImage^ image,
   array<LeadPoint>^ markPoints
) 

Parameters

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

Return Value

Array of Leadtools.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_

Example

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:

  • 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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also