rotate object in matlab
来源:互联网 发布:vue.js ide工具 编辑:程序博客网 时间:2024/06/05 15:26
peaks(64);oh=findobj(gca,'type','surface');set(gca,'xlim',[-8 8]);set(gca,'ylim',[-8 8]);set(gca,'zlim',[-10 10]);axis square;for i = 1:36 rotate(oh,[0 0 1],10); M(i) = getframe(gca);endmovie(M,3)
load('vertex1');set(gcf,'NumberTitle','off');plot3(vertex1(:,1),vertex1(:,2),zeros(size(vertex1,1),1),'.');view(2);oh=findobj(gca,'type','line');set(gca,'xlim',[-2 2]);set(gca,'ylim',[-2 2]);direction = [0 0 1];rotate( oh, [0 0 1], -45);inc = 0;N = [];for i = -45:3:45inc = inc + 1; rotate( oh, [0 0 1], 3);f=getframe;RGB = f.cdata;I = rgb2gray(RGB);% RGB to grayBW = imbinarize(I);% gray to binaryBWC = imcomplement(BW);BWC2= imfill(BWC,'holes');BWC3= flip(BWC2 ,2); %# horizontal flipBAND = and(BWC2, BWC3);BOR = or(BWC2, BWC3);I = 255 * uint8(BOR); % binary to grayscalematch = size(find(BAND),1) / size(find(BOR),1);N = [N match];set(gcf, 'Name', num2str(match));RGB = cat(3, I, I, I); % grayscale to RGB%t = text(0,1.5,num2str(size(find(BAND),1) / size(find(BOR),1)));f.cdata = RGB;M(inc) = f;endfor i = 1:size(M,2) imshow(M(i).cdata); set(gcf, 'Name', num2str(N(i))); pause(0.1);end
0 0
- rotate object in matlab
- Rotate object with mouse click or touch in Unity3D
- Rotate An Object(opengl)
- Rotate ListNode In K Groups
- How to show 3D object (.3DS or .MAX) in MATLAB using JMonkey
- Rotate registration testing FFT Matlab code
- iPhone: CALayer + rotate in 3D + antialias?
- Search Rotate Position in Sorted Array
- 1.6-Rotate Image(same in LeetCode)
- Rotate Image------旋转图片(in-place版本)
- Deferred Object In Twisted
- Object Serialization in C#
- object reference in Java
- List object in Python
- rotate
- Rotate
- Rotate
- Rotate
- 全排列-字典序
- poj 3414 Pots
- javaweb中的Listener监听器
- Linux 多线程编程(一)
- solr高亮只显示部分字符串
- rotate object in matlab
- MVC简介以及java三成框架(java项目设计模式)
- php之读取csv文件!!!
- Access denied for user 'root'@'localhost' (using password: YES) 问题解决
- 一个游戏中玩家总经验值达到200就可以到达2级,达到400可以升到3级,达到600可升4级,达到800可升5级依此类推(玩家新创建的角色为0经验1级)。游戏中有一种超级经验丹,玩家1级的时候使用超级经
- C++中class和struct的区别
- 计算机二级考试C语言教程一
- Codeforces 500A:New Year Transportation(水题)
- go语言语法