- 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 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2015년 5월 16일
One possibility would be to zero-pad the smaller image so it is the same size as the larger one.
From the documentation:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!