# Multidimensional transform

In mathematical analysis and applications, multidimensional transforms are used to analyze the frequency content of signals in a domain of two or more dimensions.

## Multidimensional Fourier transform

One of the more popular multidimensional transforms is the Fourier transform, which converts a signal from a time/space domain representation to a frequency domain representation. The discrete-domain multidimensional Fourier transform (FT) can be computed as follows:
    $F(w_{1},w_{2},\dots ,w_{m})=\sum _{n_{1}=-\infty }^{\infty }\sum _{n_{2}=-\infty }^{\infty }\cdots \sum _{n_{m}=-\infty }^{\infty }f(n_{1},n_{2},\dots ,n_{m})e^{-iw_{1}n_{1}-iw_{2}n_{2}\cdots -iw_{m}n_{m}}$
where F stands for the multidimensional Fourier transform, m stands for multidimensional dimension. Define f as a multidimensional discrete-domain signal. The inverse multidimensional Fourier transform is given by
    $f(n_{1},n_{2},\dots ,n_{m})=\left({\frac {1}{2\pi }}\right)^{m}\int _{-\pi }^{\pi }\cdots \int _{-\pi }^{\pi }F(w_{1},w_{2},\ldots ,w_{m})e^{iw_{1}n_{1}+iw_{2}n_{2}+\cdots +iw_{m}n_{m}}\,dw_{1}\cdots \,dw_{m}$
The multidimensional Fourier transform for continuous-domain signals is defined as follows:
    $F(\Omega _{1},\Omega _{2},\ldots ,\Omega _{m})=\int _{-\infty }^{\infty }\cdots \int _{-\infty }^{\infty }f(t_{1},t_{2},\ldots ,t_{m})e^{-i\Omega _{1}t_{1}-i\Omega _{2}t_{2}\cdots -i\Omega _{m}t_{m}}\,dt_{1}\cdots \,dt_{m}$

### Properties of Fourier transform

Similar properties of the 1-D FT transform apply, but instead of the input parameter being just a single entry, it's a Multi-dimensional (MD) array or vector. Hence, it's x(n$_1$,…,n$_M$) instead of x(n).

#### Linearity

if $x_{1}(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{1}(\omega _{1},\ldots ,\omega _{M})$ , and $x_{2}(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{2}(\omega _{1},\ldots ,\omega _{M})$ then,
    $ax_{1}(n_{1},\ldots ,n_{M})+bx_{2}(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}aX_{1}(\omega _{1},\ldots ,\omega _{M})+bX_{2}(\omega _{1},\ldots ,\omega _{M})$

#### Shift

if $x(n_{1},...,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},...,\omega _{M})$, then $x(n_{1}-a_{1},...,n_{M}-a_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}e^{-i(\omega _{1}a_{1}+,...,+\omega _{M}a_{M})}X(\omega _{1},...,\omega _{M})$

#### Modulation

if $x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},\ldots ,\omega _{M})$, then
    $e^{i(\theta _{1}n_{1}+\cdots +\theta _{M}n_{M})}x(n_{1}-a_{1},\ldots ,n_{M}-a_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1}-\theta _{1},\ldots ,\omega _{M}-\theta _{M})$

#### Multiplication

if $x_{1}(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{1}(\omega _{1},\ldots ,\omega _{M})$, and $x_{2}(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{2}(\omega _{1},\ldots ,\omega _{M})$
then,
or,

#### Differentiation

If $x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},\ldots ,\omega _{M})$, then
    $-in_{1}x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}{\frac {\partial }{(\partial \omega _{1})}}X(\omega _{1},\ldots ,\omega _{M}),$
    $-in_{2}x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}{\frac {\partial }{(\partial \omega _{2})}}X(\omega _{1},\ldots ,\omega _{M}),$
    $(-i)^{M}(n_{1}n_{2}\cdots n_{M})x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}{\frac {(\partial )^{M}}{(\partial \omega _{1}\partial \omega _{2}\cdots \partial \omega _{M})}}X(\omega _{1},\ldots ,\omega _{M}),$

#### Transposition

If $x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},\ldots ,\omega _{M})$, then
    $x(n_{M},\ldots ,n_{1}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{M},\ldots ,\omega _{1})$

#### Reflection

If $x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},\ldots ,\omega _{M})$, then
    $x(\pm n_{1},\ldots ,\pm n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\pm \omega _{1},\ldots ,\pm \omega _{M})$

#### Complex conjugation

If $x(n_{1},\ldots ,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},\ldots ,\omega _{M})$, then
    $x^{*}(\pm n_{1},\ldots ,\pm n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X^{*}(\mp \omega _{1},\ldots ,\mp \omega _{M})$

#### Parseval's theorem (MD)

if $x_{1}(n_{1},...,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{1}(\omega _{1},...,\omega _{M})$ , and $x_{2}(n_{1},...,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X_{2}(\omega _{1},...,\omega _{M})$ then,
$\sum _{n_{1}=-\infty }^{\infty }...\sum _{n_{M}=-\infty }^{\infty }x_{1}(n_{1},...,n_{M})x_{2}^{*}(n_{1},...,n_{M}){=}{\frac {1}{(2\pi )^{M}}}\int \limits _{-\pi }^{\pi }...\int \limits _{-\pi }^{\pi }X_{1}(\omega _{1},...,\omega _{M})X_{2}^{*}(\omega _{1},...,\omega _{M})d\omega _{1}...d\omega _{M}$
if $x_{1}(n_{1},...,n_{M}){=}x_{2}(n_{1},...,n_{M})$, then
$\sum _{n_{1}=-\infty }^{\infty }...\sum _{n_{M}=-\infty }^{\infty }|x_{1}(n_{1},...,n_{M})|^{2}{=}{\frac {1}{(2\pi )^{M}}}\int \limits _{-\pi }^{\pi }...\int \limits _{-\pi }^{\pi }|X_{1}(\omega _{1},...,\omega _{M})|^{2}d\omega _{1}...d\omega _{M}$
A special case of the Parseval's theorem is when the two multi-dimensional signals are the same. In this case, the theorem portrays the energy conservation of the signal and the term in the summation or integral is the energy-density of the signal.

#### Separability

A signal or system is said to be separable if it can be expressed as a product of 1-D functions with different independent variables. This phenomenon allows computing the FT transform as a product of 1-D FTs instead of multi-dimensional FT.
if $x(n_{1},...,n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}X(\omega _{1},...,\omega _{M})$, $a(n_{1}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}A(\omega _{1})$, $b(n_{2}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}B(\omega _{2})$ ... $y(n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}Y(\omega _{M})$, and if $x(n_{1},...,n_{M}){=}a(n_{1})b(n_{2})...y(n_{M})$, then
$X(\omega _{1},...,\omega _{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}x(n_{1},...,n_{M}){=}a(n_{1})b(n_{2})...y(n_{M}){\overset {\underset {\mathrm {FT} }}{\longleftrightarrow }}A(\omega _{1})B(\omega _{2})...Y(\omega _{M})$, so
$X(\omega _{1},...,\omega _{M}){=}A(\omega _{1})B(\omega _{2})...Y(\omega _{M})$

### MD FFT

A fast Fourier transform (FFT) is an algorithm to compute the discrete Fourier transform (DFT) and its inverse. An FFT computes the DFT and produces exactly the same result as evaluating the DFT definition directly; the only difference is that an FFT is much faster. (In the presence of round-off error, many FFT algorithms are also much more accurate than evaluating the DFT definition directly).There are many different FFT algorithms involving a wide range of mathematics, from simple complex-number arithmetic to group theory and number theory. See more in FFT.

### MD DFT

The multidimensional discrete Fourier transform (DFT) is a sampled version of the discrete-domain FT by evaluating it at sample frequencies that are uniformly spaced. The N$_1$ × N$_2$ × ... N$_m$ DFT is given by:
    $Fx(K_{1},K_{2},\ldots ,K_{m})=\sum _{n_{1}=0}^{N_{1}-1}\cdots \sum _{n_{m}=0}^{N_{m}-1}fx(n_{1},n_{2},\ldots ,n_{m})e^{-i{\frac {2\pi }{N_{1}}}n_{1}K_{1}-i{\frac {2\pi }{N_{2}}}n_{2}K_{2}\cdots -i{\frac {2\pi }{N_{m}}}n_{m}K_{m}}$
for 0 ≤ K$_i$ ≤ N$_i$ − 1, i = 1, 2, ..., m.
The inverse multidimensional DFT equation is
    $fx(n_{1},n_{2},\ldots ,n_{m})={\frac {1}{N_{1}\cdots N_{m}}}\sum _{K_{1}=0}^{N_{1}-1}\cdots \sum _{K_{m}=0}^{N_{m}-1}Fx(K_{1},K_{2},\ldots ,K_{m})e^{i{\frac {2\pi }{N_{1}}}n_{1}K_{1}+i{\frac {2\pi }{N_{2}}}n_{2}K_{2}\cdots +i{\frac {2\pi }{N_{m}}}n_{m}K_{m}}$
for 0 ≤ n$_1$, n$_2$, ... , n$_m$ ≤ N$_{(1,2,...,m)}$ – 1.

## Multidimensional discrete cosine transform

The discrete cosine transform (DCT) is used in a wide range of applications such as data compression, feature extraction, Image reconstruction, multi-frame detection and so on. The multidimensional DCT is given by:
    $Fx(K_{1},K_{2},\ldots ,K_{r})=\sum _{n_{1}=0}^{N_{1}-1}\sum _{n_{2}=0}^{N_{2}-1}\cdots \sum _{n_{r}=0}^{N_{r}-1}fx(n_{1},n_{2},\ldots ,n_{r})\cos {\frac {\pi (2n_{1}+1)K_{1}}{2N_{1}}}\cdots \cos {\frac {\pi (2n_{r}+1)K_{r}}{2N_{r}}}$
for k$_i$ = 0, 1, ..., N$_i$ − 1, i = 1, 2, ..., r.

## Multidimensional Laplace transform

The multidimensional Laplace transform is useful for the solution of boundary value problems. Boundary value problems in two or more variables characterized by partial differential equations can be solved by a direct use of the Laplace transform. The Laplace transform for an M-dimensional case is defined as
$F(s_{1},s_{2},\ldots ,s_{n})=\int _{0}^{\infty }\cdots \int _{0}^{\infty }f(t_{1},t_{2},\ldots ,t_{n})e^{-s_{n}t_{n}-s_{n-1}t_{n-1}\cdots \cdots s_{1}t_{1}}\,dt_{1}\cdots \,dt_{n}$
where F stands for the s-domain representation of the signal f(t).
A special case (along 2 dimensions) of the multi-dimensional Laplace transform of function f(x,y) is defined as
$F(s_{1},s_{2})=\int \limits _{0}^{\infty }\int \limits _{0}^{\infty }\ f(x,y)e^{-s_{1}x-s_{2}y}\,dxdy$
$F(s_{1},s_{2})$ is called the image of $f(x,y)$ and $f(x,y)$ is known as the original of $F(s_{1},s_{2})$. This special case can be used to solve the Telegrapher's equations.}

## Multidimensional Z transform

Source:
The multidimensional Z transform is used to map the discrete time domain multidimensional signal to the Z domain. This can be used to check the stability of filters. The equation of the multidimensional Z transform is given by
$F(z_{1},z_{2},\ldots ,z_{m})=\sum _{n_{1}=-\infty }^{\infty }\cdots \sum _{n_{m}=-\infty }^{\infty }f(n_{1},n_{2},\ldots ,n_{m})z_{1}^{-n_{1}}z_{2}^{-n_{2}}\ldots z_{m}^{-n_{m}}$
where F stands for the z-domain representation of the signal f(n).
A special case of the multidimensional Z transform is the 2D Z transform which is given as
$F(z_{1},z_{2})=\sum _{n_{1}=-\infty }^{\infty }\sum _{n_{2}=-\infty }^{\infty }f(n_{1},n_{2})z_{1}^{-n_{1}}z_{2}^{-n_{2}}$
The Fourier transform is a special case of the Z transform evaluated along the unit circle (in 1D) and unit bi-circle (in 2D). i.e. at
z=e$^{iw}${\textstyle z=e^{iw}} where z and w are vectors.

### Region of convergence

Points (z$_1$,z$_2$) for which $F(z_{1},z_{2})=\sum _{n_{1}=-\infty }^{\infty }\sum _{n_{2}=-\infty }^{\infty }|f(n_{1},n_{2})||z_{1}|^{-n_{1}}|z_{2}|^{-n_{2}}$ $<\infty$ are located in the ROC.
An example:
If a sequence has a support as shown in Figure 1.1a, then its ROC is shown in Figure 1.1b. This follows that |F(z$_1$,z$_2$)| < ∞ .
$(z_{01},z_{02})$ lies in the ROC, then all points$(z_{1},z_{2})$that satisfy |z1|≥|z01| and |z2|≥|z02| lie in the ROC.
Therefore, for figure 1.1a and 1.1b, the ROC would be
    $\ln |z_{1}|\geq \ln |z_{01}|{\text{ and }}\ln |z_{2}|\geq L\ln |z_{1}|+\{\ln |z_{02}|-L\ln |z_{01}|\}$
where L is the slope.
The 2D Z-transform, similar to the Z-transform, is used in multidimensional signal processing to relate a two-dimensional discrete-time signal to the complex frequency domain in which the 2D surface in 4D space that the Fourier transform lies on is known as the unit surface or unit bicircle.

## Applications

The DCT and DFT are often used in signal processing and image processing, and they are also used to efficiently solve partial differential equations by spectral methods. The DFT can also be used to perform other operations such as convolutions or multiplying large integers. The DFT and DCT have seen wide usage across a large number of fields, we only sketch a few examples below.

### Image processing

The DCT is used in JPEG image compression, MJPEG, MPEG, DV, Daala, and Theora video compression. There, the two-dimensional DCT-II of NxN blocks are computed and the results are quantized and entropy coded. In this case, N is typically 8 and the DCT-II formula is applied to each row and column of the block. The result is an 8x8 transform coefficient array in which the: (0,0) element (top-left) is the DC (zero-frequency) component and entries with increasing vertical and horizontal index values represent higher vertical and horizontal spatial frequencies, as shown in the picture on the right.
In image processing, one can also analyze and describe unconventional cryptographic methods based on 2D DCTs, for inserting non-visible binary watermarks into the 2D image plane, and According to different orientations, the 2-D directional DCT-DWT hybrid transform can be applied in denoising ultrasound images. 3-D DCT can also be used to transform video data or 3-D image data in watermark embedding schemes in transform domain.

### Spectral analysis

When the DFT is used for spectral analysis, the {x$_n$} sequence usually represents a finite set of uniformly spaced time-samples of some signal x(t) where t represents time. The conversion from continuous time to samples (discrete-time) changes the underlying Fourier transform of x(t) into a discrete-time Fourier transform (DTFT), which generally entails a type of distortion called aliasing. Choice of an appropriate sample-rate (see Nyquist rate) is the key to minimizing that distortion. Similarly, the conversion from a very long (or infinite) sequence to a manageable size entails a type of distortion called leakage, which is manifested as a loss of detail (aka resolution) in the DTFT. Choice of an appropriate sub-sequence length is the primary key to minimizing that effect. When the available data (and time to process it) is more than the amount needed to attain the desired frequency resolution, a standard technique is to perform multiple DFTs, for example to create a spectrogram. If the desired result is a power spectrum and noise or randomness is present in the data, averaging the magnitude components of the multiple DFTs is a useful procedure to reduce the variance of the spectrum (also called a periodogram in this context); two examples of such techniques are the Welch method and the Bartlett method; the general subject of estimating the power spectrum of a noisy signal is called spectral estimation.
A final source of distortion (or perhaps illusion) is the DFT itself, because it is just a discrete sampling of the DTFT, which is a function of a continuous frequency domain. That can be mitigated by increasing the resolution of the DFT. That procedure is illustrated at § Sampling the DTFT.
* The procedure is sometimes referred to as zero-padding, which is a particular implementation used in conjunction with the fast Fourier transform (FFT) algorithm. The inefficiency of performing multiplications and additions with zero-valued "samples" is more than offset by the inherent efficiency of the FFT.
* As already noted, leakage imposes a limit on the inherent resolution of the DTFT. So there is a practical limit to the benefit that can be obtained from a fine-grained DFT.

### Partial differential equations

Discrete Fourier transforms are often used to solve partial differential equations, where again the DFT is used as an approximation for the Fourier series (which is recovered in the limit of infinite N). The advantage of this approach is that it expands the signal in complex exponentials e$^{inx}$, which are eigenfunctions of differentiation: d/dx e$^{inx}$ = in e$^{inx}$. Thus, in the Fourier representation, differentiation is simple—we just multiply by i n. (Note, however, that the choice of n is not unique due to aliasing; for the method to be convergent, a choice similar to that in the trigonometric interpolation section above should be used.) A linear differential equation with constant coefficients is transformed into an easily solvable algebraic equation. One then uses the inverse DFT to transform the result back into the ordinary spatial representation. Such an approach is called a spectral method.
DCTs are also widely employed in solving partial differential equations by spectral methods, where the different variants of the DCT correspond to slightly different even/odd boundary conditions at the two ends of the array.
Laplace transforms are used to solve partial differential equations. The general theory for obtaining solutions in this technique is developed by theorems on Laplace transform in n dimensions.
The multidimensional Z transform can also be used to solve partial differential equations.

### Image processing for arts surface analysis by FFT

One very important factor is that we must apply a non-destructive method to obtain those rare valuables information (from the HVS viewing point, is focused in whole colorimetric and spatial information) about works of art and zero-damage on them. We can understand the arts by looking at a color change or by measuring the surface uniformity change. Since the whole image will be very huge, so we use a double raised cosine window to truncate the image:
    $w(x,y)={\frac {1}{4}}\left(1+\cos {\frac {x\pi }{N}}\right)\left(1+\cos {\frac {y\pi }{N}}\right)$
where N is the image dimension and x, y are the coordinates from the center of image spans from 0 to N/2. The author wanted to compute an equal value for spatial frequency such as:
    ${\begin{aligned}A_{m}(f)^{2}=\left[\sum _{i=-f}^{f}\right.&\operatorname {FFT} (-f,i)^{2}+\sum _{i=-f}^{f}\operatorname {FFT} (f,i)^{2}\\[5pt]&\left.+\sum _{i=-f+1}^{f-1}\operatorname {FFT} (i,-f)^{2}+\sum _{i=-f+1}^{f-1}\operatorname {FFT} (i,f)^{2}\right]\end{aligned}}$
where "FFT" denotes the fast Fourier transform, and f is the spatial frequency spans from 0 to N/2 – 1. The proposed FFT-based imaging approach is diagnostic technology to ensure a long life and stable to culture arts. This is a simple, cheap which can be used in museums without affecting their daily use. But this method doesn’t allow a quantitative measure of the corrosion rate.

### Application to weakly nonlinear circuit simulation

Source:
The inverse multidimensional Laplace transform can be applied to simulate nonlinear circuits. This is done so by formulating a circuit as a state-space and expanding the Inverse Laplace Transform based on Laguerre function expansion.
The Laguerre method can be used to simulate a weakly nonlinear circuit and the Laguerre method can invert a multidimensional Laplace transform efficiently with a high accuracy.
It is observed that a high accuracy and significant speedup can be achieved for simulating large nonlinear circuits using multidimensional Laplace transforms.