资源简介
学习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
相关资源
- 织物密度测量MATLAB实现
- 单机器人的多任务路径规划GUI
- MATLAB GUI设计学习手记第3版源代码BY罗
- MATLAB GUI设计学习手记 第3版 源代码
- matlab数字水印dwtGUI+psnr+mse
- 基于matlabGUI的小车倒立摆pid控制
- matlab模板匹配车牌识别
- 基于MATLAB人民币识别系统.zip
- 小车倒立摆系统的控制及GUI动画演示
- MATLAB身份证号码识别系统GUI论文.zip
- 基于MATLAB GUI的多功能计算器
- MATLAB交通标志识别[GUI界面,论文].z
- MATLAB车牌[GUI,语音播报,论文,详细
- MATLAB数字表盘识别[GUI界面,界面丰富
- MATLAB霍夫曼变换的表盘刻度识别系统
- MATLAB水果分级[GUI界面,面积,直径,
- MATLAB人脸识别考勤系统摄像头,记录
- MATLAB多方法车牌识别系统bp+模板+GUI
- PCA算法实现人脸识别基于matlab GUI界面
- MATLAB App Designer 教程.pdf
- 数字图像课程设计MATLAB实现简单找茬
- Matlab GUI详尽介绍英文
- 基于MATLAB-GUI图形界面的数字图像处理
- 美颜软件matlab.zip
- 基于MATLAB面部的人数统计系统[戴口罩
- [精通MATLAB GUI设计第3版][陈垚光毛涛涛
- matlab GUI制作的播放器
- K均值聚类算法,图像处理,GUI,mat
- 十分钟搞定matlab GUI
- Matlab的GUI展示两种图像加密算法
评论
共有 条评论