PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Function Index
DiscreteCorrelate
DiscreteCorrelate[
img
,
h
]
returns the circular correlation of
img
and filter
h
.
The option
Circular→True
(the default) returns a circular correlation result which has the same dimensions as
img
.
The option
Circular→False
returns a linear correlation result. The dimensions of the result are larger than the dimensions of the original data. Assuming
img
is of dimensions N
r
× N
c
and
h
is of dimensions M
r
× M
c
, the returned result is of dimensions N
r
+M
r
-1 × N
c
+M
c
-1.
The option
TransientSamples→False
returns the steady-state samples only.
The option
Centered
positions the steady-state output values in the output array.
The option
Centered
only takes effect if
Circular→True.
The option
Centered→False
places all the transient samples at the beginning of the output array. Specifically, element {1,1,...} of the result contains
img
1
,
1
,
...
h
1
,
1
,
...
, and element {-1,-1,...} of the result contains
img
-1
,
-1
,
...
h
1
,
1
,
...
.
The option
Centered→True
(the default) evenly distributes the transient samples at the beginning and end of the output array. Specifically, element {1,1,...} of the result contains
, and element {-1,-1,...} of the result contains
.
The argument
img
may be a vector, matrix, or
ImageData
expression.
The argument
ker
may be a vector or matrix.
The
ArrayDepth
of
ker
and the raw image data in
img
must be equal.
See also User's Guide
5.2
.
Examples
This loads the package.
In[1]:=
This defines a 1D signal
sig
and an impulse response
ker
.
In[2]:=
This returns a circular correlation result.
In[3]:=
Out[3]//TableForm=
This returns a linear correlation result.
In[4]:=
Out[4]//TableForm=
This returns the steady-state values only (note that this result is independent of option
Circular
).
In[5]:=
Out[5]//TableForm=
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.