public class CorrelationCommand : RasterCommand Public Class CorrelationCommandInherits RasterCommand
@interface LTCorrelationCommand : LTRasterCommand public class CorrelationCommand extends RasterCommand public ref class CorrelationCommand : public RasterCommand For example:

Select an image that contains the image you wish to search and put it in the affected image. For example:

Call CorrelationCommand.

This command supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12-bit and 16-bit grayscale and 48-bit and 64-bit color images is available only in the Document/Medical toolkits.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
Run the CorrelationCommand on an image and applies the correlation filter.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Core;public void CorrelationCommandExample(){// Load an imageRasterCodecs codecs = new RasterCodecs();codecs.ThrowExceptionsOnInvalidImages = true;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "clean.tif"));// Prepare the commandRasterImage DstImage = image.Clone();CorrelationCommand command = new CorrelationCommand();command.CorrelationImage = DstImage;command.Threshold = 70;command.XStep = 1;command.YStep = 1;command.Points = new LeadPoint[90];//Apply the correlation filter.command.Run(image);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS21\Resources\Images";}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessing.CorePublic Sub CorrelationCommandExample()Dim codecs As New RasterCodecs()codecs.ThrowExceptionsOnInvalidImages = TrueDim leadImage As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "clean.tif"))' Prepare the commandDim points() As LeadPointReDim points(89)Dim DstImage As RasterImage = leadImage.Clone()Dim command As CorrelationCommand = New CorrelationCommandcommand.CorrelationImage = DstImagecommand.Threshold = 70command.XStep = 1command.YStep = 1command.Points = points'Apply the correlation filter.command.Run(leadImage)End SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\LEADTOOLS21\Resources\Images"End Class
Leadtools.ImageProcessing.Core Namespace
Introduction to Image Processing With LEADTOOLS
Leadtools.ImageProcessing.Color.IntensityDetectCommand
Leadtools.ImageProcessing.Effects.SpatialFilterCommand
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
