资源简介
在一幅图中寻找圆的matlab算法,而且做成了GUI方便使用
代码片段和文件信息
function expandAxes(hndlsrotEnable)
% Sets all axes in the handle list to expand in a new figure on buttondown.
%
% SYNTAX:
% expandAxes
% Sets the current axes to expand on buttondown.
%
% expandAxes(hndls)
% Sets all axes in the input list of handles to expand on buttondown.
%
% expandAxes(hndlsrotEnable)
% ...also automatically enables 3D rotation in expanded figure.
% (Thanks to Eric LePage for the suggestion.)
%
% NOTE: This function modifies the BUTTONDOWNFCN of axes in the input list
% and their children. However it will not modify any object whose
% buttondownfcn is nonempty.
%
% USAGE:
% Allows you to click on any axes (or child thereof) in the list of input
% handles. LEFT-CLICKING will popup a new window in the position of the
% original filled with the single axes and all its children. Clicking on
% that figure closes the popup window. (With the rotEnable option
% selected you must use the red ‘X‘ to close the new figure.)
% RIGHT-CLICKING restores non-expanding status to the axis and
% its children.)
%
%
% EXAMPLES:
% figure;
% a=zeros(19);
% t = 0:pi/64:4*pi;
% for ii = 1:9
% a(ii) = subplot(33ii);
% plot(tii*sin(ii*t));
% title(sprintf(‘ii = %d‘ii)‘color‘‘r‘);
% end
% expandAxes(a);
%
% figure;
% for ii = 1:9
% a(ii) = subplot(33ii);
% surf(peaks);
% end
% expandAxes(a1)
%
% %NOTE: This example requires the Image Processing Toolbox
% figure
% h(1)=axes(‘pos‘[0.1 0.1 0.3 0.3]);
% imshow(‘cameraman.tif‘);
% h(2)=axes(‘pos‘[0.5 0.1 0.3 0.3]);
% imshow(‘peppers.png‘);
% expandaxes(h)
%
% MOTIVATION:
% In real estate there‘s a saying: “Location location location.“ In
% computer graphics the saying is (or ought to be): “Real estate real
% estate real estate.“ This function allows you to show a lot more plots
% graphics etc. in a single figure without sacrificing the ability to see
% larger versions of same.
% *********************
% The author is very grateful to John D‘Errico for his constructive
% comments on this function prior to its posting.
%
% Written by Brett Shoelson PhD
% brett.shoelson@mathworks.com
% 12/18/2007
%
% Copyright 2007-2012 MathWorks Inc.
% Modifications:
% 01/21/2008
% 1) Fix to correctly return parent figure if image axis is a child of a
% uipanel.
% 2) Now ignores default docking status uses that of parent.
% 02/24/2013
% Now you can right-click on any expanded axes to export the image to
% the base workspace!!
% 03/12/2013
% Now requires verification before right-click canceling of expandAxes
% capabilities.
% Opertate on current axes if no handle list is provided.
if nargin == 0
hndls = gca;
end
if nargin < 2
rotEnable = 0;
end
warning(‘off‘‘MATLAB:gui:latexsup:UnableToInterpretTeXString‘);
for ii = 1:numel(hndls)
% Ignore any handles that are not 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 483 2012-01-03 22:35 DefaultD.png
文件 28055 2013-08-07 14:25 FindCirclesGUI.m
文件 70720 2013-08-07 14:40 FindCirclesGUI.mlappinstall
文件 89 2005-05-27 14:05 distance_tool.gif
文件 6651 2013-03-12 13:59 expandAxes.m
文件 3458 2012-01-04 15:25 file_open.png
文件 2167 2012-09-30 09:45 getNewImage.m
文件 1676 2013-01-28 16:23 imgformats.m
文件 1528 2013-08-21 15:19 license.txt
文件 1097 2012-01-02 11:18 logo.png
文件 3288 2012-01-12 15:33 markImagePoints.m
文件 17375 2013-01-23 14:16 sliderPanel.m
文件 3340 2010-12-15 17:53 tool_hand.png
文件 3775 2010-12-15 17:53 tool_zoom_in.png
- 上一篇:串并转换,并串转换
- 下一篇:眼底图像形态学操作MATLAB代码
相关资源
- 串行级联cpm系统MATLAB仿真
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
川公网安备 51152502000135号
评论
共有 条评论