example03.m

来自「用matlab实现图像融合」· M 代码 · 共 34 行

M
34
字号
% Small technical example.% Shows how to call for the multiresolution decomposition of an image% and shows the detailed bookkeeping.%disp('Small technical example.');disp('Shows how to call for the multiresolution decomposition of an image');disp('and shows the detailed bookkeeping.');disp('FOR MORE INFORMATION:  help QLiftDec2');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 = 6;                   %  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) )]);%---DECOMPOSITION--------------------------------------------------------------disp([' Filter type is ' filtername]);[C,S] = QLiftDec2(Orig,N,filtername);disp([' Dimensions of decomposition ' int2str( size(C) )]);disp(' Contents of bookkeeping ');disp(int2str(S));%

⌨️ 快捷键说明

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