资源简介
在一幅图中寻找圆的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代码
相关资源
- 眼底图像形态学操作MATLAB代码
- 串并转换,并串转换
- 运动模糊图像倒谱程序
- 单相短路的matlab仿真
- 稀疏保持投影matlab代码
- JPEG基本系统的matlab实现
- 机械优化设计及其MATLAB实现
- MATLAB实现最速下降法,牛顿法和共轭
- matlab椭圆积分程序
- 基于MATLAB三比值法的电力变压器故障
- SIFT特征提取
- MATLAB曲线拟合
- 基于标记的分水岭分割实现
- Matlab中UDP通讯
- 信道编码的Matlab和FPGA的实现 光盘资料
- 随机网络编码matlab程序
- 简单的Matlab帧间分差算法
- matlab 编写的MUSIC,MVDR算法仿真
- BP神经网络解决字母识别问题matlab源代
- 蚁群算法最短路径matlab程序
-
基于Matlab_Simuli
nk的航天器姿态动力 - 三维重建-matlab
- matlab2012b许可证文件
- 改进的花朵授粉算法程序Matlab
- matlab代码实现分形维数计算
- MATLAB实现小于指定空洞面积的空洞进
- matlab2017a/b与visual studio2017编译器关联
- 虚拟空间矢量调制算法的MATLAB仿真
- LQR系统最优控制器设计的MATLAB实现及
- K-means应用于图像处理matlab程序
评论
共有 条评论