Obtain a periodic convolution matrix for 2D signal

조회 수: 2 (최근 30일)
christina
christina 2019년 3월 20일
Following matlab code generates a periodic convolution matrix for 1D case. Can somebody tell me the way to generate the matrix for 2D case?
In the following, s is a 1D signal and g is a 1D kernel. I want to generate the convolution matrix when s is a 2D signal.
%h=ifft(fft(s).*fft(g));
h_mat=ifft(fft(eye(length(s))).*fft(g));
%h1 = h_mat*s;

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by