• 大小: 77KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-15
  • 语言: 其他
  • 标签: GUI  MATLAB  

资源简介

详细的运行效果可以在这个里面查看~ https://blog.csdn.net/weixin_42137289/article/details/107023874

资源截图

代码片段和文件信息

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

% Last Modified by GUIDE v2.5 19-May-2020 15:25:06

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

% Choose default command line output for untitled
handles.output = hobject;

% Update handles structure
guidata(hobject handles);

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


% --- Outputs from this function are returned to the command line.
%-------------------------------------- pushbutton1_Callback(回调函数)
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hobject eventdata handles)
global im imycbcr skin1 skin2 lpf %----------------宣布为全域变量
% hobject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
if get (gcbo ‘Value‘ ) ==1;
    im=imread(‘10.jpg‘ ) ; %------------------------------读入彩色图像
    axes(handles.axes1)
    set(handles.axes1 ‘XMinorTick‘  ‘on‘ ) %-------------嵌入Axes(1) 回调函数
    imshow(im) ; %------------------------------显示彩色图像
else
    imfor

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-29 16:49  shibie\
     文件       11219  2020-06-29 16:49  shibie\10.jpg
     文件       67835  2020-06-29 16:49  shibie\untitled.fig
     文件       10504  2020-06-29 16:49  shibie\untitled.m

评论

共有 条评论