using imresize in the fourier domain

조회 수: 1 (최근 30일)
raheem mian
raheem mian 2020년 2월 12일
답변: Farhath Fatima 2020년 2월 12일
x = rand(200,200);
y = imresize(x,2);
v1 = fftn(y);
v = fftn(x);
v2 = imresize(v,1/2) ./ 2;
My question is would v1 and v2 be the same matrix ? or am I using the fourier scaling theorem incorrectly ?

답변 (1개)

Farhath Fatima
Farhath Fatima 2020년 2월 12일
Hi Raheem,
As per understanding, v1 and v2 would not be same matrix. First the sizes of both the matrices are not same. Size of v1 is 400*400 and size of v2 is 100*100.
v1 is obtained from y, which inturn is scaled to twice of size of x.
v2 is obtained from scaling v to ½ its size, which inturn is obtained from fourier of x.
First Scaling has to be proper to compare any two matrices.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by