资源简介
数字图像处理课程project之图像缩放,MATLAB版
采用线性插值法和最邻近法两种算法
有GUI界面
代码片段和文件信息
function varargout = gui_scale(varargin)
% GUI_SCALE M-file for gui_scale.fig
% GUI_SCALE by itself creates a new GUI_SCALE or raises the existing
% singleton*.
%
% H = GUI_SCALE returns the handle to a new GUI_SCALE or the handle to
% the existing singleton*.
%
% GUI_SCALE(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in GUI_SCALE.M with the given input arguments.
%
% GUI_SCALE(‘Property‘‘Value‘...) creates a new GUI_SCALE or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before gui_scale_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to gui_scale_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 gui_scale
% Last Modified by GUIDE v2.5 19-Nov-2011 10:57:33
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @gui_scale_OpeningFcn ...
‘gui_OutputFcn‘ @gui_scale_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 gui_scale is made visible.
function gui_scale_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 gui_scale (see VARARGIN)
% Choose default command line output for gui_scale
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes gui_scale wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = gui_scale_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;
% --- Executes on slider movement.
function slider1_Callback(hobject eventdata handles)
% hobject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a futur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1049611 2011-11-13 20:00 图像放大缩小\Fig0219(rose1024).tif
文件 6445 2011-11-19 13:43 图像放大缩小\gui_scale.fig
文件 7974 2011-11-19 10:58 图像放大缩小\gui_scale.m
文件 1039 2011-11-13 21:43 图像放大缩小\scale_linear.m
文件 621 2011-11-13 21:26 图像放大缩小\scale_near.m
- 上一篇:用matlab实现二分法
- 下一篇:鸢尾花数据集bp算法matlab分类
评论
共有 条评论