Znn3bq.jpeg
²é¿´: 149  |  »Ø¸´: 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 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 344 ²ÄÁÏרҵ Çóµ÷¼Á211 ÎÞµØÓòÒªÇó +8 hualkop 2026-04-11 8/400 2026-04-12 22:24 by fqwang
[¿¼ÑÐ] 086000µ÷¼Á +6 Ê®Æßsa 2026-04-07 6/300 2026-04-12 11:05 by ´óÁ¦Ë®ÊÖÁ¦´óÎÞÇ
[¿¼ÑÐ] ҩѧ305Çóµ÷¼Á +8 Â꿨°Í¿¨boom 2026-04-10 8/400 2026-04-12 00:07 by zhouwenxian
[¿¼ÑÐ] 0860004 Çóµ÷¼Á 309·Ö +9 Yin DY 2026-04-08 9/450 2026-04-11 22:55 by dongdian1
[¿¼ÑÐ] ũѧ0904 312Çóµ÷¼Á +3 Say Never 2026-04-11 3/150 2026-04-11 17:22 by daydayup2005
[¿¼ÑÐ] Çóµ÷¼Á£¬Ò»Ö¾Ô¸´óÁ¬Àí¹¤´óѧ354·Ö +5 ÓêÉùÓàÉú 2026-04-11 6/300 2026-04-11 16:12 by ÓêÉùÓàÉú
[¿¼ÑÐ] 302·ÖÇóµ÷¼Á +9 ·²ÓïÆíÔ¸ 2026-04-08 10/500 2026-04-10 23:26 by 314126402
[¿¼ÑÐ] µ÷¼Á +12 ¾í¾í¾íÐIJË_ 2026-04-09 13/650 2026-04-10 22:36 by Ftglcn90
[¿¼ÑÐ] 284Çóµ÷¼Á +19 èó@@ 2026-04-06 21/1050 2026-04-10 21:12 by zhouxiaoyu
[¿¼ÑÐ] Çóµ÷¼Á ²ÄÁÏÓ빤³Ì 324·Ö ר˶ +19 ôæôæÒ»ÊéÉú 2026-04-10 21/1050 2026-04-10 11:41 by wp06
[¿¼ÑÐ] ²ÄÁÏר˶µ÷¼Á +16 ¹þ¹þ¹þºðºðºð¹þ 2026-04-07 17/850 2026-04-09 21:16 by wutongshun
[¿¼ÑÐ] 284Çóµ÷¼Á +7 ÈÃÎÒÉϰ¶°É°¢Î÷ 2026-04-09 7/350 2026-04-09 18:59 by haironglove
[¿¼ÑÐ] 368»¯Ñ§Çóµ÷¼Á +13 wwwwabcde 2026-04-07 14/700 2026-04-09 14:47 by heaven_jay
[¿¼ÑÐ] ²ÄÁϹ¤³Ì322 +18 ¹þ¹þ¹þºðºðºð¹þ 2026-04-07 19/950 2026-04-09 10:44 by cymywx
[¿¼ÑÐ] 283µç×ÓÐÅÏ¢Çóµ÷¼Á +4 ÈýʯWL 2026-04-08 4/200 2026-04-09 10:21 by wp06
[¿¼ÑÐ] 334Çóµ÷¼Á +16 Riot2025 2026-04-08 17/850 2026-04-09 09:28 by wdyheheeh
[¿¼ÑÐ] 085404£¬334·Ö£¬Çóµ÷¼Á +5 sunjie8888 2026-04-08 8/400 2026-04-09 07:26 by sunjie8888
[¿¼ÑÐ] 327Çóµ÷¼Á +10 Xxjc1107. 2026-04-06 11/550 2026-04-09 01:21 by lature00
[¿¼ÑÐ] 338Çóµ÷¼Á +8 wxygxsaaaaa 2026-04-06 8/400 2026-04-08 06:58 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +11 Ò»ÑùYWY 2026-04-07 11/550 2026-04-07 15:13 by shdgaomin
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û