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

📄 pdtdfb2vec.m

📁 PDTDFB toolbox The filter bank is described in: The Shiftable Complex Directional Pyramid—Pa
💻 M
字号:
function [yind, mark] = pdtdfb2vec(y)% PDTDFB2VEC   Convert the output of the PDTDFB into a vector form%%       [yind, cfig] = pdtdfb2vec(y)%% Input:%   y:  an output of the PDTDFB%% Output:%   yind :  1-D vector that contains all PDFB coefficients%   mark :  starting point of each change in band in yind%% See also:	PDTDFBDEC, VEC2PDFB, (also PDFB2VEC in Contourlet toolbox)if iscell(y{end})    range = 2: length(y);    S = 2*max(size(y{end}{1}{1}));    for in = 1:(length(y)-1)        cfig(in) = log2(length(y{in+1}{1}));    endelse    range = 2: length(y)-1;    S = size(y{end}, 1);    for in = 1:(length(y)-2)        cfig(in) = log2(length(y{in+1}{1}));    endendclear in;% take out the directional subband complex amplitude valuetmp2 = [];yind = [];% band indexmin = 0;ind = 0;for in = 1:length(range) % for each consider resolution        for d = 1:length(y{range(in)}{1})        min = min+1;        tmp = y{range(in)}{1}{d}+j*y{range(in)}{2}{d};                % first column is the starting point of the subband        mark(min,1) = size(yind,1);        % second column is the row size of the subband        mark(min,2) = size(tmp,1);         % third column is the column size of the subband        mark(min,3) = size(tmp,2);        % fourth column resolution the subband        mark(min,4) = range(in);        % fifth column direction the subband        mark(min,5) = d;        % [inc, inr] = meshgrid(1:Stmp(2), 1:Stmp(1));                %         % tmp3 = [(tmp(:));                yind = [yind; tmp(:)];    endend

⌨️ 快捷键说明

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