• 大小: 30KB
    文件类型: .m
    金币: 2
    下载: 1 次
    发布日期: 2021-07-26
  • 语言: Matlab
  • 标签: GUI  

资源简介

学习MATLAB GUI程序设计,利用MATLAB图像处理工具箱,设计和实现自己的Photoshop 。要求:按照软件工程方法,根据需求进行程序的功能分析和界面设计,给出设计详细说明。然后按照自己拟定的功能要求进行程序设计和调试。    以下列出几点程序的功能,供参考: 1)图像的读取和保存。 2)设计图形用户界面,让用户能够对图像进行任意的亮度和对比度变化调整,显示和对比变换前后的图像。 3)设计图形用户界面,让用户能够用鼠标选取图像感兴趣区域,显示和保存该选择区域。 4)编写程序通过最近邻插值和双线性插值等算法将用户所选取的图像区域进行放大和缩小整数倍的操作,并保存,比较几种插值的效果。 5)图像直方图统计和直方图均衡,要求显示直方图统计,比较直方图均衡后的效果。 6)为图像添加边框特效,并保存。

资源截图

代码片段和文件信息

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

% Last Modified by GUIDE v2.5 19-Jun-2012 11:36:47

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

% Choose default command line output for wuzhiqiang


handles.output =hobject;
% Update handles structure
guidata(hobject handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = wuzhiqiang_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 Untitl

评论

共有 条评论