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

📄 getmaxnumpyramidlevels.m

📁 asm工具箱
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%
%(c) Ghassan Hamarneh 1999
%%%%%%%%%%%%%%%%%%%%%%%%%%
function MaxNumPyramidLevels=GetMaxNumPyramidLevels(TrnImgFiles);
%function MaxNumPyramidLevels=GetMaxNumPyramidLevels(TrnImgFiles);

%colour images converted to gray
%changed July 6, 2004 to accomodate DTU data

%MULTI RESOLUTION ADDITTION -- get max needed levels
levels=100*ones(length(TrnImgFiles),1);
for ind1=1:length(TrnImgFiles),%for each image   
    ImgFile=TrnImgFiles{ind1};
    Img=imread(ImgFile);
    
    %colour images converted to gray
    %changed July 6, 2004 to accomodate DTU data
    if ndims(Img)==3, Img=mean(Img,3); end 
    
    levels(ind1)=GetNumPyramidLevels(size(Img));
end
MaxNumPyramidLevels=min(levels);
%the least number of levels determines the max allowed levels

⌨️ 快捷键说明

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