简单数字图像处理系统

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

数字图像课程设计简单数字图像处理系统

function varargout = untitled(varargin)

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @untitled_OpeningFcn, ...

'gui_OutputFcn', @untitled_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

= 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 untitled is made visible.

function untitled_OpeningFcn(hObject, eventdata, handles, varargin) %界面初始化函数

setappdata,'I',0);

% 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 untitled (see VARARGIN)

% Choose default command line output for untitled

= hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes untitled wait for user response (see UIRESUME)

% uiwait;

% --- Outputs from this function are returned to the command line.

function varargout = untitled_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} = ;

% --------------------------------------------------------------------

function m_file_Callback(hObject, eventdata, handles)

% hObject handle to m_file (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% --------------------------------------------------------------------

function my_file_open_Callback(hObject, eventdata, handles)

global I;

[FileName,PathName] = uigetfile('*.bmp;*.jpg;*.tiff;*.gif');%弹出对话框得到打开的路径I=imread(strcat(PathName,FileName));%打开得到的路径下的文件

imshow(I)

setappdata,'I',I);

% handles structure with handles and user data (see GUIDATA)

% --------------------------------------------------------------------

function my_file_save_Callback(hObject, eventdata, handles)

global I;%这个是要保存的东西,一般是global的

[FileName,PathName] = uiputfile('*.bmp;*.jpg;*.tiff;*.gif');%弹出对话框的到保存的路径imwrite(I,strcat(PathName,FileName));%存储到该路径下

相关文档
最新文档