91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 203KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-15
  • 語言: Matlab
  • 標簽: matlab??gui界面??

資源簡介

功能包含:打開圖片,保存圖片,重置參數,圖像縮放(可以選擇縮放方法,填寫縮放倍數),二值化(可自己填寫閾值),旋轉(可填寫角度),裁剪,像素反轉,直方圖均衡,不均勻光照處理(彩色圖使用gamma方法,灰度圖采用其他方法),濾波操作(可以選擇濾波器種類,可填寫濾波器參數),添加噪聲(可多選添加多種噪聲)。灰度圖和彩色圖均可處理

資源截圖

代碼片段和文件信息

function?varargout?=?DIP(varargin)
%?DIP?MATLAB?code?for?DIP.fig
%??????DIP?by?itself?creates?a?new?DIP?or?raises?the?existing
%??????singleton*.
%
%??????H?=?DIP?returns?the?handle?to?a?new?DIP?or?the?handle?to
%??????the?existing?singleton*.
%
%??????DIP(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?DIP.M?with?the?given?input?arguments.
%
%??????DIP(‘Property‘‘Value‘...)?creates?a?new?DIP?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?DIP_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?DIP_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?DIP

%?Last?Modified?by?GUIDE?v2.5?10-Jul-2020?13:47:39

%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@DIP_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@DIP_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?DIP?is?made?visible.
function?DIP_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?DIP?(see?VARARGIN)

%?Choose?default?command?line?output?for?DIP
handles.output?=?hobject;

%?Update?handles?structure
guidata(hobject?handles);

%?UIWAIT?makes?DIP?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);


%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?DIP_OutputFcn(hobject?eventdata?handles)?

%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;


%?---?Executes?on?button?press?in?open.
function?open_Callback(hobject?eventdata?handles)?%open回調
global?I?sz
try
[fileName?pathName]?=?uigetfile({‘*.bmp‘;‘*jpg‘;‘*.tif‘;‘*.png‘});%獲取需讀取圖片的路徑
I?=?imread([pathName?fileName]);???%讀取圖片
sz?=?length(size(I));??????????????????????
handles.ori_img?=?I;
axes(handles.axes1);
imshow(handles.ori_img‘InitialMagnification‘‘fit‘)title(‘原圖‘);
handles.output=hobject;
guidata(hobjecthandles);
catch
????errordlg(‘something?wrong!!‘‘Error‘);
end



function?pushbutton2_Callback(hobject?eve

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????229998??2015-05-13?13:20??Colony.bmp
?????文件???????73420??2020-07-10?14:09??DIP.fig
?????文件???????22680??2020-07-11?19:07??DIP.m
?????文件?????????925??2020-07-10?13:38??gamma_light.m
?????文件?????????293??2020-07-10?13:37??light_use.m

評論

共有 條評論