BUILT-IN MATHEMATICA SYMBOL

# ImageCorrelate

ImageCorrelate[image, ker]
gives the correlation of image with kernel ker.

ImageCorrelate[image, ker, f]
computes a generalized correlation in which the function f is used in place of Dot.

## Details and OptionsDetails and Options

• The correlation kernel is given as a two-dimensional numerical matrix.
• ImageCorrelate[image, ker] by default gives an image of the same dimensions as image.
• The kernel ker can be another image.
• The correlation kernel must have either one channel or the same number of channels as the image.
• With a setting , ImageCorrelate[image, ker] normally gives an image smaller than image.
• ImageCorrelate operates separately on each channel in an image.
• ImageCorrelate gives an image of type .
• In ImageCorrelate[image, ker, f], typical settings for the correlation operator f include:
•  Dot standard correlation ManhattanDistance Manhattan or "city block" distance EuclideanDistance Euclidean distance SquaredEuclideanDistance squared Euclidean distance NormalizedSquaredEuclideanDistance normalized squared Euclidean distance CosineDistance angular cosine distance CorrelationDistance correlation coefficient distance
• ImageCorrelate takes a PerformanceGoal option to specify what aspect of performance to try to optimize. The default setting is PerformanceGoal->"Speed".

## ExamplesExamplesopen allclose all

### Basic Examples (2)Basic Examples (2)

Blur an image by correlating it with a Gaussian matrix:

 Out[1]=

Find occurrences of a template in an image:

 Out[1]=