matlab 用鼠标拖曳画矩形的代码
来源:互联网 发布:时空软件 药店 编辑:程序博客网 时间:2024/05/16 08:12
k = waitforbuttonpress;
point1 = get(gca,'CurrentPoint'); % button down detected
finalRect = rbbox; % return figure units
point2 = get(gca,'CurrentPoint'); % button up detected
point1 = point1(1,1:2); % extract x and y
point2 = point2(1,1:2);
p1 = min(point1,point2); % calculate locations
offset = abs(point1-point2); % and dimensions
x = [p1(1) p1(1)+offset(1) p1(1)+offset(1) p1(1) p1(1)];
y = [p1(2) p1(2) p1(2)+offset(2) p1(2)+offset(2) p1(2)];
hold on
axis manual
plot(x,y)
http://bbs.matwav.com/viewthread.php?tid=805909
- matlab 用鼠标拖曳画矩形的代码
- 用鼠标画矩形的win32代码
- 鼠标拖曳实现svg矩形的任意切分
- 鼠标拖曳实现svg矩形的任意切分
- OpenCV的鼠标操作——用鼠标画矩形(代码解读)
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- ubuntu屏幕截图工具:scrot,可截鼠标拖曳的矩形区域图形
- opencv用鼠标画矩形
- QT 利用QPainter画了一条线,这条线能随鼠标的拖曳而拖动
- web鼠标拖曳控件
- GUI 剖析之 鼠标拖曳窗口的实现(拖曳客户区)
- 精简+注释后的igoogle拖曳代码
- 音视频编码简介
- An internal error occurred during: "Add Deployment".解决办法
- 解决SecureCRT的Home+End+Del不好用
- Enable/Disable constraints, Linux copy
- 基于GPU的优化处理
- matlab 用鼠标拖曳画矩形的代码
- GetIfEntry()的用法
- 让Ecshop前台不读取缓存信息
- 北京奥林匹克公园三维场景网络发布应用
- 万维网发布服务(w3svc)以停止。除非万维网发布服务(w3svc)正在运行
- ESX Server 4.1的安装与破解全过程(五)
- 软件版本号的定义[整理版]
- RICH EDIT 控件 SDK 参考手册
- Blackberry Debug: Debug an application running on a live BlackBerry smartphone