- image
- RasterImage object that references the transformed image.
- markPoints
- Array of Leadtools.LeadPoint structures containing mark locations.
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_Refer to CoreUtilities.GetTransformationParameters for sample code.
- 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 CoreUtilities.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.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Reference
CoreUtilities ClassCoreUtilities Members
Detecting Registration Marks
Leadtools.ImageProcessing.Effects.CombineCommand
Leadtools.ImageProcessing.RotateCommand
Leadtools.ImageProcessing.SizeCommand
Leadtools.ImageProcessing.ResizeCommand
DeskewCommand Class
SearchRegistrationMarksCommand Class
GetTransformationParameters Method