# Mexican hat wavelet

Mexican hat

In mathematics and numerical analysis, the Ricker wavelet[1]

${\displaystyle \psi (t)={2 \over {{\sqrt {3\sigma }}\pi ^{1 \over 4}}}\left(1-{t^{2} \over \sigma ^{2}}\right)e^{-t^{2} \over 2\sigma ^{2}}}$

is the negative normalized second derivative of a Gaussian function, i.e., up to scale and normalization, the second Hermite function. It is a special case of the family of continuous wavelets (wavelets used in a continuous wavelet transform) known as Hermitian wavelets. The Ricker wavelet is frequently employed to model seismic data, and as a broad spectrum source term in computational electrodynamics. It is usually only referred to as the Mexican hat wavelet in the Americas, due to taking the shape of a sombrero when used as a 2D image processing kernel. It is also known as the Marr wavelet for David Marr.[2][3]

${\displaystyle \psi (x,y)={\frac {1}{\pi \sigma ^{2}}}\left(1-{\frac {x^{2}+y^{2}}{2\sigma ^{2}}}\right)\mathrm {e} ^{-(x^{2}+y^{2})/2\sigma ^{2}}.}$
3D view of 2D Mexican hat wavelet

The multidimensional generalization of this wavelet is called the Laplacian of Gaussian function. In practice, this wavelet is sometimes approximated by the difference of Gaussians function, because the DoG is separable[4] and can therefore save considerable computation time in two or more dimensions. The scale normalised Laplacian (in ${\displaystyle L_{1}}$-norm) is frequently used as a blob detector and for automatic scale selection in computer vision applications; see Laplacian of Gaussian and scale space. The relation between this Laplacian of the Gaussian operator and the difference-of-Gaussians operator is explained in appendix A in Lindeberg (2015).[5] The Mexican hat wavelet can also be approximated by derivatives of Cardinal B-Splines[6]