²é¿´: 141  |  »Ø¸´: 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 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 070300»¯Ñ§319Çóµ÷¼Á +7 ½õÀð0909 2026-03-17 7/350 2026-03-21 03:46 by JourneyLucky
[¿¼ÑÐ] ¡¾¿¼Ñе÷¼Á¡¿»¯Ñ§×¨Òµ 281·Ö£¬Ò»Ö¾Ô¸ËÄ´¨´óѧ£¬³ÏÐÄÇóµ÷¼Á +8 ³Ô³Ô³Ô²ÅÓÐÒâÒå 2026-03-19 8/400 2026-03-21 00:49 by Áõ¹úÉ­
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷ÄϽ»´ó£¬Çóµ÷¼Á +5 ²Ä»¯ÖðÃÎÈË 2026-03-18 5/250 2026-03-21 00:26 by JourneyLucky
[¿¼ÑÐ] 299Çóµ÷¼Á +4 shxchem 2026-03-20 5/250 2026-03-21 00:24 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] 294Çóµ÷¼Á²ÄÁÏÓ뻯¹¤×¨Ë¶ +15 ݤÎÉ­ÁÖ 2026-03-18 15/750 2026-03-20 23:28 by JourneyLucky
[¿¼ÑÐ] 323Çóµ÷¼Á +3 ÍÝСͰ 2026-03-18 3/150 2026-03-20 22:54 by JourneyLucky
[¿¼ÑÐ] 288Çóµ÷¼Á +16 ÓÚº£º£º£º£ 2026-03-19 16/800 2026-03-20 22:28 by JourneyLucky
[¿¼ÑÐ] Çóµ÷¼Á£¬Ò»Ö¾Ô¸:ÄϾ©º½¿Õº½Ìì´óѧ´óѧ £¬080500²ÄÁÏ¿ÆÑ§Ó빤³Ìѧ˶£¬×Ü·Ö289·Ö +4 @taotao 2026-03-19 4/200 2026-03-20 22:14 by JourneyLucky
[¿¼ÑÐ] ÖÐÄÏ´óѧ»¯Ñ§Ñ§Ë¶337Çóµ÷¼Á +3 niko- 2026-03-19 6/300 2026-03-20 21:58 by luoyongfeng
[¿¼ÑÐ] 265Çóµ÷¼Á +12 ÁºÁºÐ£Ð£ 2026-03-19 13/650 2026-03-20 21:01 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Ò»Ö¾Ô¸»ªÖÐũҵ071010£¬×Ü·Ö320Çóµ÷¼Á +3 À§À§À§À§À¤À¤ 2026-03-20 3/150 2026-03-20 20:38 by ѧԱ8dgXkO
[¿¼ÑÐ] ¹ãÎ÷´óѧ¼ÒÇÝÒÅ´«ÓýÖÖ¿ÎÌâ×é2026Äê˶ʿÕÐÉú£¨½ÓÊÕ¼ÆËã»úרҵµ÷¼Á£© +3 123°¢±ê 2026-03-17 3/150 2026-03-20 15:58 by ·ÉÐÐçù
[¿¼ÑÐ] 0856µ÷¼Á£¬ÊÇѧУ¾ÍÈ¥ +8 sllhht 2026-03-19 9/450 2026-03-20 14:25 by ÎÞи¿É»÷111
[¿¼ÑÐ] 085410È˹¤ÖÇÄÜר˶317Çóµ÷¼Á£¨0854¶¼¿ÉÒÔ£© +4 xbxudjdn 2026-03-18 4/200 2026-03-20 09:07 by ²»168
[¿¼ÑÐ] ÉúÎïѧ071000 329·ÖÇóµ÷¼Á +3 ÎÒ°®ÉúÎïÉúÎﰮΠ2026-03-17 3/150 2026-03-18 10:12 by macy2011
[¿¼ÑÐ] ²ÄÁÏר˶326Çóµ÷¼Á +6 Ä«ìÏæ¦Ý· 2026-03-15 7/350 2026-03-17 17:10 by ruiyingmiao
[¿¼ÑÐ] 0856ר˶279Çóµ÷¼Á +5 ¼ÓÓͼÓÓÍ£¡? 2026-03-15 5/250 2026-03-15 11:58 by 2020015
[¿¼ÑÐ] 288Çóµ÷¼Á +4 Ææµã0314 2026-03-14 4/200 2026-03-14 23:04 by JourneyLucky
[¿¼ÑÐ] 080500£¬²ÄÁÏѧ˶302·ÖÇóµ÷¼ÁѧУ +4 ³õʶ¿ÉÀÖ 2026-03-14 5/250 2026-03-14 21:08 by peike
[¿¼ÑÐ] ¸´ÊÔµ÷¼Á +3 ºôºô£¿~+123456 2026-03-14 3/150 2026-03-14 16:53 by WTUChen
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û