Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
NumberOfPoints Property
See Also  Example
Leadtools.ImageProcessing.Core Namespace > CorrelationCommand Class : NumberOfPoints Property




This property is updated with the number of areas in the image actually found to be correlated to the correlation image.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property NumberOfPoints As Integer
Visual Basic (Usage)Copy Code
Dim instance As CorrelationCommand
Dim value As Integer
 
value = instance.NumberOfPoints
C# 
public int NumberOfPoints {get;}
Managed Extensions for C++ 
public: __property int get_NumberOfPoints();
C++/CLI 
public:
property int NumberOfPoints {
   int get();
}

Return Value

Value that indicates the number of areas in the image actually found to be correlated to the correlation image. Its maximum value is the length of the Points array.

Example

Visual BasicCopy Code
ImageProcessing.Core.CorrelationCommand.NumberOfPoints
   Public Sub NumberOfPointsPropertyExample()
      RasterCodecs.Startup()
      Dim codecs As New RasterCodecs()
      codecs.ThrowExceptionsOnInvalidImages = True

      Dim leadImage As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Master.jpg")

      ' Prepare the command
      Dim points() As Point
      ReDim points(89)

      Dim DstImage As RasterImage = leadImage.Clone()
      Dim command As CorrelationCommand = New CorrelationCommand
      command.CorrelationImage = DstImage
      command.Threshold = 70
      command.XStep = 1
      command.YStep = 1
      command.Points = points
      ' Apply the correlation filter.
      command.Run(leadImage)

      MessageBox.Show("The number of points are:" & command.NumberOfPoints.ToString())

      RasterCodecs.Shutdown()
   End Sub
C#Copy Code
ImageProcessing.Core.CorrelationCommand.NumberOfPoints 
      public void NumberOfPointsPropertyExample() 
      { 
         // Load an image 
         RasterCodecs.Startup(); 
         RasterCodecs codecs = new RasterCodecs(); 
         codecs.ThrowExceptionsOnInvalidImages = true; 
 
         RasterImage image = codecs.Load(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Master.jpg"); 
 
         // Prepare the command 
         RasterImage dstImage = image.Clone(); 
         CorrelationCommand command = new CorrelationCommand(); 
         command.CorrelationImage = dstImage; 
         command.Threshold = 70; 
         command.XStep = 1; 
         command.YStep = 1; 
         command.Points = new Point[90]; 
         // Apply the correlation filter. 
         command.Run(image); 
 
         MessageBox.Show("The number of points are:" + command.NumberOfPoints.ToString()); 
 
         RasterCodecs.Shutdown(); 
      }

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