checkdescendants.m

来自「EZW implementation which will use wavele」· M 代码 · 共 4 行

M
4
字号
function   result = checkdescendants(j,X,threshold,result)
% initial set result=0
% if the result=1, means that a coefficient has at least 1 significant descendant.
global N
[m,n]=size(N);
for i=(4*j-3):4*j;
    if result==1 | i>m, 
        break;
    end;
    if abs(X(N(i,1),N(i,2)))>=threshold
        result=1;
        break; 
    else 
        result=checkdescendants(i,X,threshold,result);
    end;
end;

   



⌨️ 快捷键说明

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