<< Filter Design and Visualization Filter Design and Visualization immesh >>

IPCV >> Filter Design and Visualization > fft2pad

fft2pad

Pad smaller matrix with zeros to the given size before transformation.

Syntax

y = fft2pad(x,r,c)

Parameters

x :

Source matrix

r :

Number of rows for the output image

c :

Number of columns for the output image

y :

Output matric with rxc size

Description

FFT2PAD will pad the input matrix to the given r x c size, and perform fft2 after the padding. This will yield the output matrix at the same size given. This is useful in the frequency domain filtering.

Examples

x = testmatrix('magic',5);
y = fft2pad(x,8,8);

See also

Authors


Report an issue
<< Filter Design and Visualization Filter Design and Visualization immesh >>