←Select platform

NumberOfPoints Property

Summary
Gets a value that indicates the number of areas in the image actually found to be correlated to one or more of the listed images.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public int NumberOfPoints { get; } 
@property (nonatomic, assign, readonly) NSUInteger numberOfPoints; 
public int getNumberOfPoints(); 
public: 
property int NumberOfPoints { 
   int get(); 
} 
NumberOfPoints # get  (CorrelationListCommand) 

Property Value

Value that indicates the number of areas in the image actually found to be correlated to one or more of the listed images.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Core; 
 
public void CorrelationListConstructorExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "clean.tif")); 
 
   CopyRectangleCommand copyRectangle = new CopyRectangleCommand(); 
 
   LeadRect rc_cor = new LeadRect(327, 378, 22, 28); 
   copyRectangle.Rectangle = rc_cor; 
   copyRectangle.Run(image); 
   RasterImage correlationImage = copyRectangle.DestinationImage.Clone(); 
 
   rc_cor = new LeadRect(283, 378, 22, 28); 
   copyRectangle.Rectangle = rc_cor; 
   copyRectangle.Run(image); 
   correlationImage.AddPage(copyRectangle.DestinationImage.Clone()); 
 
   LeadPoint[] points = new LeadPoint[30]; 
   int[] listIndex = new int[30]; 
 
   CorrelationListCommand command = new CorrelationListCommand(correlationImage, points, listIndex, 1, 1, 90); 
   command.Run(image); 
   Assert.IsTrue(command.NumberOfPoints == points.Length); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.