资源简介
matlab开发-Image2Data。Matlab GUI子例程,帮助您从图中获取曲线数据(支持R2008a及以上版本)
代码片段和文件信息
function varargout = image2data(varargin)
% IMAGE2DATA M-file for image2data.fig
% IMAGE2DATA by itself creates a new IMAGE2DATA or raises the existing
% singleton*.
%
% H = IMAGE2DATA returns the handle to a new IMAGE2DATA or the handle to
% the existing singleton*.
%
% IMAGE2DATA(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in IMAGE2DATA.M with the given input arguments.
%
% IMAGE2DATA(‘Property‘‘Value‘...) creates a new IMAGE2DATA or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before image2data_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to image2data_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 image2data
% Last Modified by GUIDE v2.5 19-Mar-2014 06:30:57
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @image2data_OpeningFcn ...
‘gui_OutputFcn‘ @image2data_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 image2data is made visible.
function image2data_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 image2data (see VARARGIN)
% Choose default command line output for image2data
handles.output = hobject;
% pannel 0
handles.msg_on=0;
handles.cpx=0;
handles.cpy=0;% gloable variables for current position of mouse
% pannel 1
handles.idata = zeros(22);% the key variable for obtaining curve data
handles.iimage = 0;% image data matrix
handles.ximage = 0;
handles.yimage = 0;
% pannel 3
handles.pick_axis_on=0;
handles.pick_curve_on=0;
handles.pick_view_num =1;
% pannel 4
handles.point_connect_on = 0;
handles.point_delete_on = 0;
% pannel left_top
handles.zoom_on=0;% status variables recording the data picking operations
handles.pan_on=0;
himage=findobj(‘tag‘‘axes1‘);
axes(himage);
% Update handles structure
guidata(hobject handles);
clc
% UIWAIT makes image2data wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from thi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 45589 2014-04-21 15:10 image2data.m
文件 462 2014-04-21 15:10 data.txt
文件 25395 2014-04-21 15:10 test.jpg
文件 14795 2014-04-21 15:10 image2data.fig
文件 1442085 2014-04-21 15:10 image2dataV1_1_operation.pdf
文件 764 2014-04-21 15:10 read me.txt
文件 1494 2014-04-21 15:10 license.txt
相关资源
- matlab开发-南极洲边界线和南极洲边界
- matlab开发-CSF批次模拟过滤器
- matlab开发-移动对象跟踪基到背景减法
- matlab开发-灰度图像的jpeg压缩
- matlab开发-BundleAdjustment
- matlab开发-FaceFindDllContent用于FaceDetec
- matlab开发-彩色图像对比度增强
- matlab开发-MeshLBP
- matlab开发-使用与旋转匹配的模板查找
- matlab开发-calcpsnr
- matlab开发-图像超分辨率迭代反投影算
- matlab开发-drawline
- matlab开发-导向控制机器人
- matlab开发-一幅图像的噪声估计
评论
共有 条评论