📄 zengqiang.m
字号:
function varargout = zengqiang(varargin)%ZENGQIANG M-file for zengqiang.fig% ZENGQIANG, by itself, creates a new ZENGQIANG or raises the existing% singleton*.%% H = ZENGQIANG returns the handle to a new ZENGQIANG or the handle to% the existing singleton*.%% ZENGQIANG('Property','Value',...) creates a new ZENGQIANG using the% given property value pairs. Unrecognized properties are passed via% varargin to zengqiang_OpeningFcn. This calling syntax produces a% warning when there is an existing singleton*.%% ZENGQIANG('CALLBACK') and ZENGQIANG('CALLBACK',hObject,...) call the% local function named CALLBACK in ZENGQIANG.M with the given input% arguments.%% *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 zengqiang% Last Modified by GUIDE v2.5 04-Jun-2008 17:29:15% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @zengqiang_OpeningFcn, ... 'gui_OutputFcn', @zengqiang_OutputFcn, ... 'gui_LayoutFcn', [], ... 'gui_Callback', []);if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1});endif 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 zengqiang is made visible.function zengqiang_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 unrecognized PropertyName/PropertyValue pairs from the% command line (see VARARGIN)% Choose default command line output for zengqianghandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes zengqiang wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = zengqiang_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 structurevarargout{1} = handles.output;% --- 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)kk=imread('ziji1.jpg');X=rgb2gray(kk);figure(1);imshow(X,[]);title('增强后的图像');[c,l]=wavedec2(X,2,'db5');Csize=size(c);for i=1:Csize(2) if(c(i)>300) c(i)=2*c(i); else c(i)=0.5*c(i); endend X1=waverec2(c,l,'db5'); X1=double(X1); figure(2); imshow(X1,[]); title('原始的图像'); % --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)open tuxiangzengqiang
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -