数字水印学习系统之二 界面部分源代码

本示例介绍了一个使用MATLAB创建的GUI应用程序,该程序主要用于图像处理任务,如显示图像、进行边缘检测、平均值计算等,并提供了多种图像处理功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL/> <w:BalanceSingleByteDoubleByteWidth/> <w:DoNotLeaveBackslashAlone/> <w:ULTrailSpace/> <w:DoNotExpandShiftReturn/> <w:AdjustLineHeightInTable/> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:UseFELayout/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!-- [if !mso]> <object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui> </object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--> <!-- /* 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;} --> <!-- [if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]-->

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值