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

📄 qlmaxlev.m

📁 用matlab实现图像融合
💻 M
字号:
function lev = QLmaxlev(sizeX, filtername)%-----------------------------------------------------------------------------% QLmaxlev% This function determines the maximum level possible for the QL-schemes.%% Syntax: lev = QLmaxlev(sizeX, filtername)%% QLmaxlev is a utility for the lifting scheme decomposition. It helps one to % avoid silly values for the maximum level in the lifting scheme decomposition.% % lev is the integer outcome.% % sizeX is an integer row vector of dimension 2. Usually it will be the size of% an image.%% filtername must be a string from the set:% {Neville2, Neville4, Neville6, Neville8, MaxMin, MinMin, MaxMax}%% See also: QLiftDec2, QLiftRec2, wmaxlev%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/% Last Revision: February 17, 2003.% Copyright 1999-2003 Stichting CWI, Amsterdam%-----------------------------------------------------------------------------%Firstly, check input dataif nargin ~= 2  error(' QLmaxlev - number of arguments should be 2 ');endif ~ischar(filtername)  error(' QLmaxlev - format of filtername should be character array ');end%switch lower(filtername) case 'neville2'   diam =  3; case 'neville4'   diam =  5; case 'neville6'   diam =  7; case 'neville8'   diam = 11; case 'maxmin'   diam =  3; case 'maxmax'   diam =  3; case 'minmax'   diam =  3; case 'minmin'   diam =  3; otherwise   error(' QLmaxlev - unknown filter ')end%if isempty(sizeX)  lev = [];  return;else  lev=0;  n=min(sizeX);  z=2*diam-1;  while z<=n    lev=lev+2;    z=2*z-1;  endend%-----------------------------------------------------------------------------

⌨️ 快捷键说明

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