⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_freq2d.m

📁 A set of C++ and Matlab routines implementing the surfacelet transform surfacelet的一个非常好用的工具箱
💻 M
字号:
%% Display the 2-D magnitude frequency response the a 2-D image
%%
%% f: 2-D signal
%% K: resolution of the frequency plot
%% h: axes on which we plot.

function show_freq2D(f, N, h);

L = 2^ceil(log2(max([size(f), 512])));

f = abs(fftshift(fft2(f, L, L)));

ind = fix([1 : N] * L / N);

f = f(ind, ind);

fx = [-1 + 2/N : 2/N : 1];
fy = fx;

val = mesh(h, fx, fy, abs(f)');
axis([-1 1 -1 1 0 max(max(abs(f)))]);
view(0,90);
axis equal;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -