public static bool IsRegistrationMark(RasterImage image,RegistrationMarkCommandType type,int minScale,int maxScale,int width,int height)
Public Shared Function IsRegistrationMark( _ByVal image As RasterImage, _ByVal type As RegistrationMarkCommandType, _ByVal minScale As Integer, _ByVal maxScale As Integer, _ByVal width As Integer, _ByVal height As Integer _) As Boolean
+ (BOOL)isRegistrationMark:(LTRasterImage *)image\type:(LTRegistrationMarkCommandType)typeminScale:(NSInteger)minScalemaxScale:(NSInteger)maxScalewidth:(NSInteger)widthheight:(NSInteger)heighterror:(NSError **)error
public static boolean isRegistrationMark(RasterImage image,RegistrationMarkCommandType type,int minScale,int maxScale,int width,int height)
public:static bool IsRegistrationMark(RasterImage^ image,RegistrationMarkCommandType type,int minScale,int maxScale,int width,int height)
image
RasterImage object that references the image to be searched for registration mark.
type
Value that specifies the type of registration mark for which to look. Currently, only one registration mark is defined (T-shape). See the Comments for more information. More shapes will be added in the future.
minScale
Minimum scaling factor of mark to be detected. This is a percentage. It must not exceed maxScale, or an error will be returned. This parameter accepts only positive values.
maxScale
Maximum scaling factor of mark to be detected. This is a percentage. It must not be lower than minScale, or an error will be returned. This parameter accepts only positive values.
width
The width of the registration mark (in pixels). This parameter accepts only positive values.
height
The height of the registration mark (in pixels). This parameter accepts only positive values.
Boolean value indicating weather that specific object is registration mark or not.
Currently, there is only one type defined, a T-shaped figure as shown in the following figure. This type is a "T" rotated by 90 degrees counter clockwise. The P4 point must be on the center point of Line P1P2 (that is, the distance from P1 to P4 equals the distance from P2 to P4). The line width should be greater than 2 pixels(preferably 3 pixels). There are no conditions on line lengths since you provide the values for width, height, maxScale, and minScale.

Do not use this command to search for registration marks inside the image. Use SearchRegistrationMarksCommand instead.
For more information, refer to Detecting Registration Marks.
This example determines if the object is a registration mark.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Core;using LeadtoolsExamples.Common;public void IsRegistrationMarkExample(){// Load an imageRasterCodecs codecs = new RasterCodecs();codecs.ThrowExceptionsOnInvalidImages = true;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "RGSRef.cmp"));// Prepare the commandbool IsRegMark = CoreUtilities.IsRegistrationMark(image, RegistrationMarkCommandType.TShape, 90, 110, 31, 29);MessageBox.Show(IsRegMark ? "It's Registration Mark" : "Not a Registration Mark");}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS21\Resources\Images";}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessing.CorePublic Sub IsRegistrationMarkExample()Dim codecs As New RasterCodecs()codecs.ThrowExceptionsOnInvalidImages = TrueDim leadImage As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "RGSRef.cmp"))' Prepare the commandDim IsRegMark As BooleanIsRegMark = CoreUtilities.IsRegistrationMark(leadImage, RegistrationMarkCommandType.TShape, 90, 110, 31, 29)If (IsRegMark) ThenMessageBox.Show("It's Registration Mark", "IsRegistrationMarkTest")ElseMessageBox.Show("Not a Registration Mark", "IsRegistrationMarkTest")End IfEnd SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\LEADTOOLS21\Resources\Images"End Class
Leadtools.ImageProcessing.Effects.CombineCommand
Leadtools.ImageProcessing.RotateCommand
Leadtools.ImageProcessing.SizeCommand
Leadtools.ImageProcessing.ResizeCommand
GetTransformationParameters Method
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
