?? example05.m
字號(hào):
% Small technical example.% Shows how to ask for the maximum number of levels in a decomposition.%disp('Small technical example.');disp('Shows how to ask for the maximum number of levels in a decomposition.');disp('FOR MORE INFORMATION: help QLmaxlev');disp(' ');disp('See also the report http://ftp.cwi.nl/CWIreports/PNA/PNA-R0224.pdf');disp('Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>');disp('Copyright (C) 1998-2006 Stichting CWI, Amsterdam, The Netherlands');disp(' ');%---PARAMETERS-----------------------------------------------------------------% How to execute, set parametersN = 20; % maximum level (even number) in lifting schemefiltername = 'Neville4';%%---INSERT YOUR IMAGE HERE-----------------------------------------------------if exist('imread','file') == 2 Orig = double(imread('zenithgray.TIF','tiff'));else load zenithgray; Orig = zenithgray; clear zenithgray;end%disp([' Dimensions of original ' int2str( size(Orig) )]);%---AVOID SILLY VALUES FOR THE NUMBER OF LEVELS-------------------------------disp([' Filter type is ' filtername]);disp([' Number of scales asked for is ' int2str(N)]);M = QLmaxlev(size(Orig), filtername);disp([' Maximum number of scales is ' int2str(M)]);N = min(N,M);disp([' Number of scales is set to ' int2str(N)]);%%---DECOMPOSITION-------------------------------------------------------------[C,S] = QLiftDec2(Orig,N,filtername);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -