本文主要是介绍数字水印学习系统之二 界面部分源代码,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
function varargout = my2(varargin)
% MY2 M-file for my2.fig
% MY2, by itself, creates a new MY2 or raises the existing
% singleton*.
%
% H = MY2 returns the handle to a new MY2 or the handle to
% the existing singleton*.
%
% MY2('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in MY2.M with the given input arguments.
%
% MY2('Property','Value',...) creates a new MY2 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before my2_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to my2_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 my2
% Last Modified by GUIDE v2.5 23-May-2009 22:57:56
% imshow('a.bmp');
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @my2_OpeningFcn, ...
'gui_OutputFcn', @my2_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(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 my2 is made visible.
function my2_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 my2 (see VARARGIN)
% Choose default command line output for my2
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
subplot(1,1,1),imshow('fengmian.bmp');
% UIWAIT makes my2 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = my2_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;
% --------------------------------------------------------------------
function Untitled_1_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_2_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_3_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_4_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_5_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_6_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function bitshow_Callback(hObject, eventdata, handles)
% hObject handle to bitshow (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% !!!分层显示
bitshow
% --------------------------------------------------------------------
function mybitset_Callback(hObject, eventdata, handles)
% hObject handle to mybitset (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%% !!
mybitset
% --------------------------------------------------------------------
function twovalue_Callback(hObject, eventdata, handles)
% hObject handle to twovalue (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
twovalue();
% --------------------------------------------------------------------
function myedge_Callback(hObject, eventdata, handles)
% hObject handle to myedge (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myedge();
% --------------------------------------------------------------------
function averange_Callback(hObject, eventdata, handles)
% hObject handle to averange (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
averange();
% --------------------------------------------------------------------
function myca_Callback(hObject, eventdata, handles)
% hObject handle to myca (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myca();
% --------------------------------------------------------------------
function lsbshow_Callback(hObject, eventdata, handles)
% hObject handle to lsbshow (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lsbshow();
% --------------------------------------------------------------------
function lsbembed_Callback(hObject, eventdata, handles)
% hObject handle to lsbembed (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lsbembed();
% --------------------------------------------------------------------
function lsbextract_Callback(hObject, eventdata, handles)
% hObject handle to lsbextract (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lsbextract();
% --------------------------------------------------------------------
function mydwt_Callback(hObject, eventdata, handles)
% hObject handle to mydwt (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydwt();
% --------------------------------------------------------------------
function mydwt2_Callback(hObject, eventdata, handles)
% hObject handle to mydwt2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydwt2();
% --------------------------------------------------------------------
function mydwt3_Callback(hObject, eventdata, handles)
% hObject handle to mydwt3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydwt3();
% --------------------------------------------------------------------
function dwtwatermarking_Callback(hObject, eventdata, handles)
% hObject handle to dwtwatermarking (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarking();
% --------------------------------------------------------------------
function mydwtextracting_Callback(hObject, eventdata, handles)
% hObject handle to mydwtextracting (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydwtextracting();
% --------------------------------------------------------------------
function Untitled_21_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_21 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function dwtwatermarkingd_Callback(hObject, eventdata, handles)
% hObject handle to dwtwatermarkingd (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarkingd
% --------------------------------------------------------------------
function mydwtwatermarking2_Callback(hObject, eventdata, handles)
% hObject handle to mydwtwatermarking2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarking2
% --------------------------------------------------------------------
function mydwtwatermarking2d_Callback(hObject, eventdata, handles)
% hObject handle to mydwtwatermarking2d (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarking2d
% --------------------------------------------------------------------
function mydwtwatermarking3_Callback(hObject, eventdata, handles)
% hObject handle to mydwtwatermarking3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarking3
% --------------------------------------------------------------------
function mydwtwatermarking3d_Callback(hObject, eventdata, handles)
% hObject handle to mydwtwatermarking3d (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
dwtwatermarking3d
% --------------------------------------------------------------------
function mylwt_Callback(hObject, eventdata, handles)
% hObject handle to mylwt (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mylwt
% --------------------------------------------------------------------
function mylwt2_Callback(hObject, eventdata, handles)
% hObject handle to mylwt2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mylwt2
% --------------------------------------------------------------------
function mylwt3_Callback(hObject, eventdata, handles)
% hObject handle to mylwt3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mylwt3
% --------------------------------------------------------------------
function lwtwatermarking_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarking (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarking
% --------------------------------------------------------------------
function mylwtembedding_Callback(hObject, eventdata, handles)
% hObject handle to mylwtembedding (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mylwtembeding
% --------------------------------------------------------------------
function mylwtextracting_Callback(hObject, eventdata, handles)
% hObject handle to mylwtextracting (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mylwtextracting
% --------------------------------------------------------------------
function lwtwatermarking2_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarking2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarking2
% --------------------------------------------------------------------
function lwtwatermarking2d_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarking2d (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarking2d
% --------------------------------------------------------------------
function lwtwatermarking3_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarking3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarking3
% --------------------------------------------------------------------
function lwtwatermarking3d_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarking3d (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarking3d
% --------------------------------------------------------------------
function gl_Callback(hObject, eventdata, handles)
% hObject handle to gl (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
gl
% --------------------------------------------------------------------
function el_Callback(hObject, eventdata, handles)
% hObject handle to el (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
el
% --------------------------------------------------------------------
function zihluan_Callback(hObject, eventdata, handles)
% hObject handle to zihluan (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
zhiluan();
% --------------------------------------------------------------------
function myemcryption_Callback(hObject, eventdata, handles)
% hObject handle to myemcryption (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myencryption
% --------------------------------------------------------------------
function MyDecryption_Callback(hObject, eventdata, handles)
% hObject handle to MyDecryption (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydecryption
% --------------------------------------------------------------------
function MyJpegCompression_Callback(hObject, eventdata, handles)
% hObject handle to MyJpegCompression (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myjpegcompression
% --------------------------------------------------------------------
function mySaltAndPepper_Callback(hObject, eventdata, handles)
% hObject handle to mySaltAndPepper (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mysaltandpepper
% --------------------------------------------------------------------
function MyImnoise_Callback(hObject, eventdata, handles)
% hObject handle to MyImnoise (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myimnoise
% --------------------------------------------------------------------
function MyImrotate_Callback(hObject, eventdata, handles)
% hObject handle to MyImrotate (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myimrotate
% --------------------------------------------------------------------
function MyImcrop_Callback(hObject, eventdata, handles)
% hObject handle to MyImcrop (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myimcrop;
% --------------------------------------------------------------------
function MyDither_Callback(hObject, eventdata, handles)
% hObject handle to MyDither (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydither
% --------------------------------------------------------------------
function MyResize2_Callback(hObject, eventdata, handles)
% hObject handle to MyResize2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myresize2
% --------------------------------------------------------------------
function MyResize_Callback(hObject, eventdata, handles)
% hObject handle to MyResize (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myresize
% --------------------------------------------------------------------
function MyFilter_Callback(hObject, eventdata, handles)
% hObject handle to MyFilter (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myfilter
% --------------------------------------------------------------------
function doc_Callback(hObject, eventdata, handles)
% hObject handle to doc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydoc
% --------------------------------------------------------------------
function aboutCopyright_Callback(hObject, eventdata, handles)
% hObject handle to aboutCopyright (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
aboutCopyright
% --------------------------------------------------------------------
function lwtwatermarkingd_Callback(hObject, eventdata, handles)
% hObject handle to lwtwatermarkingd (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
lwtwatermarkingd
% --- 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)
% --- 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)
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function mydwtembedding_Callback(hObject, eventdata, handles)
% hObject handle to mydwtembedding (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
mydwtembeding
这篇关于数字水印学习系统之二 界面部分源代码的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!