Structure Matrices & Convolution Kernels

Mathematica provides built-in functions for generating standard structure matrices and convolution kernels in any number of dimensions, in a form that can be used directly in image processing, linear algebra, or other applications.

ReferenceReference

Shape Matrices

DiskMatrix BoxMatrix CrossMatrix DiamondMatrix

Convolution Kernels

GaussianMatrix Gaussian and Gaussian derivatives

ShenCastanMatrix exponential and exponential derivatives

GaborMatrix Gabor kernel

IdentityMatrix ▪ DiagonalMatrix

ConstantArray constant array

SparseArray arbitrary sparse array

ArrayFlatten form a matrix from tiles

ArrayPad add padding to an array

New to Mathematica? Find your learning path »
Have a question? Ask support »