²é¿´: 142  |  »Ø¸´: 2
µ±Ç°Ö÷ÌâÒѾ­´æµµ¡£

lgl820420

[½»Á÷] Ë­ÄܰïÔÚ³ÌÐòÔ±ÁªºÏ¿ª·¢Íø£¨pudn.com£©Ï¶«Î÷¡¾ÓÐЧÆÚÖÁ2008Äê5ÔÂ27ÈÕ¡¿

ÏÂÃæÊÇÎļþÒ³ÃæµÄÁ´½Ó£ºhttp://www.programsalon.com/down ... h/detail173516.html
Âé·³°ïÎÒÏÂһϴ«¸øÎÒ£¡
ÓÊÏäÊÇliuguoliang126@126.com

[ Last edited by sxyxs13754 on 2008-5-26 at 08:39 ]
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

lgl820420

[url]ÓÐЧÆÚ¡¾ÓÐЧÆÚÖÁ2008Äê5ÔÂ27ÈÕ¡¿[/url]

ÓÐЧÆÚ¡¾ÓÐЧÆÚÖÁ2008Äê5ÔÂ27ÈÕ¡¿
2Â¥2008-05-25 01:25:50
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

shootyou25

½ð³æ (СÓÐÃûÆø)

С²¨ãÐֵȥÔëÉù£¨MATLAB£©¸øÄ㣡£¡£¡

¡ï ¡ï ¡ï ¡ï
lgl820420(½ð±Ò+4,VIP+0):лл
sparrow1290(½ð±Ò-8,VIP+0):·Ç·¨×ªÒƽð±Òhttp://emuch.net/bbs/viewthread.php?tid=830277&fpage=1
function varargout = wavlet(varargin)
% WAVLET M-file for wavlet.fig
%      WAVLET, by itself, creates a new WAVLET or raises the existing
%      singleton*.
%
%      H = WAVLET returns the handle to a new WAVLET or the handle to
%      the existing singleton*.
%
%      WAVLET('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in WAVLET.M with the given input arguments.
%
%      WAVLET('Property','Value',...) creates a new WAVLET or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before wavlet_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to wavlet_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help wavlet

% Last Modified by GUIDE v2.5 21-Jun-2004 11:13:32

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @wavlet_OpeningFcn, ...
                   'gui_OutputFcn',  @wavlet_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin & isstr(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before wavlet is made visible.
function wavlet_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to wavlet (see VARARGIN)

% Choose default command line output for wavlet
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes wavlet wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = wavlet_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global pp;
pp=str2double(get(hObject,'String'));
% Hints: get(hObject,'String') returns contents of edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global pp;
global  psnr_noise_remove;
load psnr_noise_remove;
global psnr;
load psnr;
%¶ÁÈëԭʼͼÏñ²¢ÏÔʾ
i=imread('lena.bmp');
subplot(2,2,1);
imshow(i);
title('ԭʼͼÏñ');
axis square;

%Éú³Éº¬ÔëͼÏñ²¢ÏÔʾ
j=imnoise(i,'gaussian',0,pp);
subplot(2,2,2);
imshow(j);
title('º¬ÔëͼÏñ');
axis square;
%ÓÃsym4С²¨º¯Êý¶Ôj½øÐÐ2²ã·Ö½â
[c,l]=wavedec2(j,2,'sym4');
%ʵÏÖµÍͨÂ˲¨ÏûÔë
a1=uint8(wrcoef2('a',c,l,'sym4',2));
%ÓÃcoif2С²¨º¯Êý¶Ôj½øÐÐ2²ã·Ö½â
[gc,gl]=wavedec2(a1,2,'coif2');
n=[1,2];%ÉèÖó߶ÈÏòÁ¿
p=[10.28,24.08];%ÉèÖÃãÐÖµÏòÁ¿
%¶ÔÈý¸ö¸ßƵϵÊý½øÐÐãÐÖµ´¦Àí
nc=wthcoef2('h',gc,gl,n,p,'s');
nc=wthcoef2('v',gc,gl,n,p,'s');
nc=wthcoef2('d',gc,gl,n,p,'s');
mc=wthcoef2('h',gc,gl,n,p,'s');
mc=wthcoef2('v',gc,gl,n,p,'s');
mc=wthcoef2('d',gc,gl,n,p,'s');
%¶Ô¸üкóµÄС²¨·Ö½â½á¹¹½øÐÐãÐÖµ´¦Àí
x2=waverec2(mc,gl,'coif2');
%½øÐÐÖÐÖµÂ˲¨
for ii=1:252;
    for jj=1:252;
         temp=0;
         for m=0:3
             for n=0:3
                 temp=temp+double(x2(ii+m,jj+n));
             end
          end
          temp=temp/16;
          x4(ii,jj)=temp;
     end
end
for ii=253:256
    for jj=253:256
        x4(ii,jj)=double(i(ii,jj));
    end
end
%ÏÔʾȥÔëͼÏñ   
subplot(2,2,3);
imshow(uint8(x4));
title('ÏûÔëͼÏñ');
axis square;
%¼ÆËãpsnr
q=0.0;
for x=1:256;
    for j=1:256;
        diff=x4(x,j)-double(i(x,j));     
        q=q+diff*diff;
    end
end
    psnr_y = q /  (256*256);
    psnr_y =  (255 * 255)/psnr_y;
set(psnr_noise_remove,'String',psnr_y);
for ii=1:10
    if psnr(ii)==0
        psnr(ii)=psnr_y;
        break;
    end
end
save psnr psnr;
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
global psnr_noise_remove;
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end

psnr_noise_remove=hObject;
save psnr_noise_remove psnr_noise_remove;

function edit2_Callback(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double
3Â¥2008-05-25 01:27:17
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ lgl820420 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 316Çóµ÷¼Á +6 ÁºÜçö© 2026-03-19 6/300 2026-03-21 06:32 by Ecowxq666£¡
[¿¼ÑÐ] 265Çóµ÷¼Á +3 Jack?k?y 2026-03-17 3/150 2026-03-21 03:17 by JourneyLucky
[¿¼ÑÐ] ¶þ±¾¿ç¿¼Ö£´ó²ÄÁÏ306Ó¢Ò»Êý¶þ +3 z1z2z3879 2026-03-17 3/150 2026-03-21 02:29 by JourneyLucky
[¿¼ÑÐ] ¡¾¿¼Ñе÷¼Á¡¿»¯Ñ§×¨Òµ 281·Ö£¬Ò»Ö¾Ô¸ËÄ´¨´óѧ£¬³ÏÐÄÇóµ÷¼Á +8 ³Ô³Ô³Ô²ÅÓÐÒâÒå 2026-03-19 8/400 2026-03-21 00:49 by Áõ¹úÉ­
[¿¼ÑÐ] 294Çóµ÷¼Á²ÄÁÏÓ뻯¹¤×¨Ë¶ +15 ݤÎÉ­ÁÖ 2026-03-18 15/750 2026-03-20 23:28 by JourneyLucky
[¿¼ÑÐ] ¿¼Ñе÷¼ÁÇóÑ§Ð£ÍÆ¼ö +3 ²®ÀÖ29 2026-03-18 5/250 2026-03-20 22:59 by JourneyLucky
[¿¼ÑÐ] 0817 »¯Ñ§¹¤³Ì 299·ÖÇóµ÷¼Á ÓпÆÑо­Àú ÓжþÇøÎÄÕ +22 rare12345 2026-03-18 22/1100 2026-03-20 20:39 by zhukairuo
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©»¯¹¤´óѧ0703»¯Ñ§318·Ö£¬ÓпÆÑо­Àú£¬Çóµ÷¼Á +4 һƿ±½¼×Ëá 2026-03-14 4/200 2026-03-20 20:36 by fen_rao
[¿¼ÑÐ] ²ÄÁÏѧÇóµ÷¼Á +4 Stella_Yao 2026-03-20 4/200 2026-03-20 20:28 by ms629
[¿¼ÑÐ] Ò»Ö¾Ô¸ ÄϾ©º½¿Õº½Ìì´óѧ´óѧ £¬080500²ÄÁÏ¿ÆÑ§Ó빤³Ìѧ˶ +5 @taotao 2026-03-20 5/250 2026-03-20 20:16 by JourneyLucky
[¿¼²©] ÕÐÊÕ²©Ê¿1-2ÈË +3 QGZDSYS 2026-03-18 3/150 2026-03-20 11:58 by ßÉßÉßÉßɽÐ
[¿¼ÑÐ] 085410È˹¤ÖÇÄÜר˶317Çóµ÷¼Á£¨0854¶¼¿ÉÒÔ£© +4 xbxudjdn 2026-03-18 4/200 2026-03-20 09:07 by ²»168
[¿¼ÑÐ] Ò»Ö¾Ô¸985£¬±¾¿Æ211£¬0817»¯Ñ§¹¤³ÌÓë¼¼Êõ319Çóµ÷¼Á +10 Liwangman 2026-03-15 10/500 2026-03-19 10:25 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 0703»¯Ñ§ 305Çóµ÷¼Á +4 FY_yy 2026-03-14 4/200 2026-03-19 05:54 by anny19840123
[¿¼ÑÐ] 344Çóµ÷¼Á +6 knight344 2026-03-16 7/350 2026-03-18 20:13 by walc
[¿¼ÑÐ] ÉúÎïѧ071000 329·ÖÇóµ÷¼Á +3 ÎÒ°®ÉúÎïÉúÎﰮΠ2026-03-17 3/150 2026-03-18 10:12 by macy2011
[¿¼ÑÐ] 268Çóµ÷¼Á +8 Ò»¶¨ÓÐѧÉÏ- 2026-03-14 9/450 2026-03-17 17:47 by laoshidan
[˶²©¼ÒÔ°] ºþ±±¹¤Òµ´óѧ ÉúÃü¿ÆÑ§Ó뽡¿µÑ§Ôº-¿ÎÌâ×éÕÐÊÕ2026¼¶Ê³Æ·/ÉúÎï·½Ïò˶ʿ +3 1ϲ´º8 2026-03-17 5/250 2026-03-17 17:18 by ber´¨cool×Ó
[¿¼ÑÐ] Ò»Ö¾Ô¸ËÕÖÝ´óѧ²ÄÁϹ¤³Ì£¨085601£©×¨Ë¶ÓпÆÑо­ÀúÈýÏî¹ú½±Á½¸öʵÓÃÐÍרÀûÒ»ÏîÊ¡¼¶Á¢Ïî +6 ´ó»ðɽС»ðɽ 2026-03-16 8/400 2026-03-17 15:05 by ÎÞи¿É»÷111
[¿¼ÑÐ] 0854¿ØÖƹ¤³Ì 359Çóµ÷¼Á ¿É¿çרҵ +3 626776879 2026-03-14 9/450 2026-03-16 17:42 by 626776879
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û