- Y = fft2(X,m,n) truncates X, or pads X with zeros to create an m-by-n array before doing the transform. The result is m-by-n.
Convolution in Fourier domain
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Radmilka
am 16 Mai 2015
Beantwortet: Star Strider
am 16 Mai 2015
Hello! I wanna implement 2D convolution using fft2 in such way:
F=fft2(im2double(imread('cameraman.tif')));
H=fft2(fspecial('motion',15,5));
G=F.*H;
But F and H are not the same size.. How to do this correctly?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 16 Mai 2015
One possibility would be to zero-pad the smaller image so it is the same size as the larger one.
From the documentation:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!