checkdescendants1.m

来自「该压缩包为数字图像处理中的嵌入式零树小波算法的MATLAB源代码」· M 代码 · 共 23 行

M
23
字号
function   result = checkdescendants1(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=checkdescendants1(i,X,threshold,result);  
      
     end;  
     
end;

⌨️ 快捷键说明

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