ImageConvolve
✖
ImageConvolve
Details and Options
- ImageConvolve performs the convolution operation on an image. It is a spatial filtering function used to apply any finite-dimensioned filter, also known as a finite impulse response (FIR) filter, to an image.
- ImageConvolve works with 2D and 3D images, operating separately on each channel.
- The convolution kernel ker is given as a two-dimensional numerical matrix or a one-channel image.
- ImageConvolve[image,ker] by default gives an image of the same dimensions as image.
- ImageConvolve takes a Padding option. The default setting is Padding->"Fixed".
- With a setting Padding->None, ImageConvolve[image,ker] normally gives an image smaller than image.
- ImageConvolve gives an image of a real type.
Background & Context
- ImageConvolve performs the convolution operation on an image. Convolution is an integral (or its discrete analog) that expresses the amount of overlap of one function as it is shifted over another. Convolution therefore “blends” one function or image with another and can be used to perform many useful operations on images such as smoothing, feature extraction, and differentiation.
- The “smoothing” function that is shifted over an image to perform convolution is a matrix known as a kernel, and many different kinds of kernels are possible and useful depending on context. GaussianFilter and MeanFilter are special cases of ImageConvolve that use a Gaussian and the mean value in a given range, respectively, as their kernels.
- ImageConvolve is a local operation, meaning it produces output pixel values based only upon the pixel values in its neighborhood as determined by the kernel. It is also a linear one, meaning it is convolution-based and replaces each pixel by a linear combination of its neighbors.
- The converse operation to ImageConvolve is ImageDeconvolve. The function ListConvolve performs the operation of convolution on lists (as opposed to images).
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (5)Survey of the scope of standard use cases
Data (2)
Parameters (3)
Blur an image with a horizontal kernel:
https://wolfram.com/xid/09bu4mrm6-ga886q
https://wolfram.com/xid/09bu4mrm6-l3xrq7
Blur a 3D image in the vertical direction only:
https://wolfram.com/xid/09bu4mrm6-lwsm4c
Blur in the horizontal direction only:
https://wolfram.com/xid/09bu4mrm6-bwgp8z
Options (4)Common values & functionality for each option
Padding (4)
By default, a "Fixed" padding is used:
https://wolfram.com/xid/09bu4mrm6-cczurx
https://wolfram.com/xid/09bu4mrm6-ndcxe0
https://wolfram.com/xid/09bu4mrm6-vsjm4o
No padding results in a smaller image:
https://wolfram.com/xid/09bu4mrm6-c0tfb1
Applications (3)Sample problems that can be solved with this function
https://wolfram.com/xid/09bu4mrm6-hm3846
Find edges using Robert's method:
https://wolfram.com/xid/09bu4mrm6-eqjs5c
https://wolfram.com/xid/09bu4mrm6-dce9p
https://wolfram.com/xid/09bu4mrm6-iyzxmi
Unsharp masking using ImageConvolve:
https://wolfram.com/xid/09bu4mrm6-jekwvj
Properties & Relations (3)Properties of the function, and connections to other functions
Convolution with a constant filter has an effect equivalent to mean filtering:
https://wolfram.com/xid/09bu4mrm6-bsctv3
Relation with ListConvolve:
https://wolfram.com/xid/09bu4mrm6-sfvw5v
https://wolfram.com/xid/09bu4mrm6-coveon
ImageConvolve gives an image of a real type:
https://wolfram.com/xid/09bu4mrm6-yzcssi
Wolfram Research (2008), ImageConvolve, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageConvolve.html (updated 2012).
Text
Wolfram Research (2008), ImageConvolve, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageConvolve.html (updated 2012).
Wolfram Research (2008), ImageConvolve, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageConvolve.html (updated 2012).
CMS
Wolfram Language. 2008. "ImageConvolve." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ImageConvolve.html.
Wolfram Language. 2008. "ImageConvolve." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ImageConvolve.html.
APA
Wolfram Language. (2008). ImageConvolve. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageConvolve.html
Wolfram Language. (2008). ImageConvolve. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageConvolve.html
BibTeX
@misc{reference.wolfram_2024_imageconvolve, author="Wolfram Research", title="{ImageConvolve}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ImageConvolve.html}", note=[Accessed: 08-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_imageconvolve, organization={Wolfram Research}, title={ImageConvolve}, year={2012}, url={https://reference.wolfram.com/language/ref/ImageConvolve.html}, note=[Accessed: 08-January-2025
]}