资源简介
应用MATLAB进行编程,对一副图片感兴趣的区域记性自由裁剪,并保留裁剪的区域部分。
代码片段和文件信息
function varargout = picturecrop(varargin)
% PICTURECROP M-file for picturecrop.fig
% PICTURECROP by itself creates a new PICTURECROP or raises the existing
% singleton*.
%
% H = PICTURECROP returns the handle to a new PICTURECROP or the handle to
% the existing singleton*.
%
% PICTURECROP(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in PICTURECROP.M with the given input arguments.
%
% PICTURECROP(‘Property‘‘Value‘...) creates a new PICTURECROP or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before picturecrop_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to picturecrop_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 picturecrop
% Last Modified by GUIDE v2.5 08-Oct-2009 09:27:15
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @picturecrop_OpeningFcn ...
‘gui_OutputFcn‘ @picturecrop_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 picturecrop is made visible.
function picturecrop_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 picturecrop (see VARARGIN)
global pic_cut down;
pic_cut=0;
down=0;
% Choose default command line output for picturecrop
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes picturecrop wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = picturecrop_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 button press in search.
function search_Callback(hobject eventdata handl
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 182794 2018-10-18 16:54 图像裁剪相关资料代码\1 (2).jpg
文件 10037 2009-10-08 09:50 图像裁剪相关资料代码\1.jpg
文件 4950 2009-10-08 09:52 图像裁剪相关资料代码\picturecrop.fig
文件 6568 2009-10-08 09:46 图像裁剪相关资料代码\picturecrop.m
目录 0 2018-10-21 10:26 图像裁剪相关资料代码
----------- --------- ---------- ----- ----
204349 5
- 上一篇:matlab2018a 远程证书文件
- 下一篇:将MATLAB绘制的图像保存为动图
相关资源
- 冲击电流发生器matlab程序非线性元件
- 冲击电流发生器matlab程序
- 2012年MATLAB创新奖《葡萄酒质量的评价
- Matlab坐标提取
- 基于Elman神经网络的房价预测matlab脚本
- 基于MATLAB GUI开发的TCP/IP通讯调试助手
- KNN算法代码
- 《生命游戏》的matlab实现
- 傅里叶变换轮廓术的MATLAB实现
- 基于matlab的整流器仿真
- ( 关于人脸检测的MATLAB代码
- MATLAB的系统动力学仿真.pdf
- ostu实现代码
- 有限差分声波方程正演
- matlab语音处理 gui(快放,加噪,去噪
-
基于Matlab-Simuli
nk的遥感图像处理 - 永磁直驱风力发电系统的MATLAB建模
- MATLAB音乐合成程序设计
- Dubins曲线Matlab代码
- 将MATLAB绘制的图像保存为动图
- matlab2018a 远程证书文件
- mpc MATLAB 代码
- 基于MATLAB频分复用系统的研究与仿真
- 直方图均衡化去雾算法
- 最小费用最大流
- MSR MATLAB
- Vibe算法matlab
- 人脸检测肤色分割MATLAB程序
- MATLAB写的简单的光栅条纹生成代码
- matlab一元线性回归实例50663
评论
共有 条评论