function [vlist,edgeq,flist,info]=upolyhedron(w,md)
% UPOLYHEDRON calculate uniform polyhedron characteristics
%
% Inputs: W Specifies the desired polyhedron in one of three forms:
% (a) name e.g. W='cube'; precede by 'dual' for dual or
% 'laevo' or 'dextro' [default] for chiral polyhedra
% (b) index in the list given below e.g. W=6 is the cube; negative for dual
% n.{1,2,3,4,5} gives n-sided prism, antiprism, grammic prism, grammic antiprism or grammic crossed antiprism
% (c) Wythoff symbol (see below) e.g. W=[3 0 2 4] is the cube
% |p q r, p|q r, p q|r or p q r| respectively with 0 for |
% using -1 instead of 0 gives the dual of the polyhedron
% using -2 (or -3 for dual) gives a reflected version of a snub polyhedron
% MD specifies a mode string
% 'g' plot image
% 'w' plot wireframe
% 'f' plot coloured faces
% 'v' number vertices
% 't' plot vertex figure (a slice centred on a vertex)
%
% ? homogeneous output coordinates
% ? create net
% ? segment faces to remove internal portions of the surfaces
% ? size: [max] diameter=1, [longest] edge=1, include anisotropic normalization
% to minimize variance of vertex radius or edge vector length
% ? orientation: vertex at the top, largest stable base at bottom
%
% Outputs:
% VLIST(:,7) gives the [x y z d n e t] for each vertex
% x,y,z = position, d=distance from origin, n=valency, e=edge index, t=type (-ve for reflected)
% EDGEQ(:,9) has one row for each direction of each edge:
% 1 v1 first vertex (normally start)
% 2 v2 second vertex
% 3 f1 first face (normally on left)
% 4 f2 second face
% 5 ev1 next edge around vertex 1 (normally anticlockwise)
% 6 ef1 next edge around f1 (normally anticlockwise)
% 7 er reverse edge
% 8 z twisted edge: clockwise neighbours around v1 and v2 are on the same face
% 9 sf swap face order: ???
% 10 sv swap vertex order: v2 preceeds v1 around f1
% FLIST(:,7) gives the [x y z d n e t] for each face
% x,y,z = unit normal, d=distance from origin, n=valency, e=edge index, t=type (-ve for reflected)
% INFO structure containing the following fields:
% hemi true if faces are hemispherical (i.e. pass through the origin)
% onesided true is one-sided (like a moebius strip)
% snub true if a snub polyhedron
% This software is based closely on a Mathmatica program described in [1] which, in turn, was based on a
% C program described in [2].
%
% Wythoff Symbol
% p,q,r define a spherical triangle whose angles at the corners are pi/p, pi/q and pi/r;
% this triangle tiles the sphere if repeatedly reflected in its sides. The
% polyhedron vertices are at the reflections of a seed vertex as follows
% where the Vertex configuration gives the polygon orders of the faces around each vertex:
% |p q r : Vertex at a point such that when rotated around any of p,q,r by twice the angle at that
% corner is displaced by the same distance for each corner. This is a snub polyhedron and
% only even numbers of reflections are used to generate vertices. Configuration {3 p 3 q 3 r}
% p|q r : Vertex at p. Configuration = {q r q r ... q r} with 2n terms where n is the numerator of p
% p q|r : Vertex on pq and on the bisector of angle r. Configuration {p 2r q 2r}
% p q r| : Vertex at incentre: meeting point of all the angle bisectors. Configuration {2p 2q 2r}
% |3/2 5/3 3 5/2 This special case is the great dirhombicosidodecahedron. It is a bit weird because
% many of the edges are shared by four faces instead of the usual two.
% If two of p,q,r = 2 then the third is arbitrary (prisms and antiprisms), otherwise only the numerators
% 1:5 can occur, and 4 and 5 cannot occur together. If all are integers then the poyhedron is convex.
%
% References:
% [1] R. E. Maeder. Uniform polyhedra. The Mathematica Journal, 3 (4): 4857, 1993.
% [2] Z. HarEl. Uniform solution for uniform polyhedra. Geometriae Dedicata, 47: 57110, 1993.
% [3] H. S. M. Coxeter, M. S. Longuet-Higgins, and J. C. P. Miller. Uniform polyhedra.
% Philosophical Transactions of the Royal Society A, 246 (916): 401450, May 1954.
% [4] P. W. Messer. Closed-form expressions for uniform polyhedra and their duals.
% Discrete and Computational Geometry, 27 (3): 353375, Jan. 2002.
%%%% BUGS and SUGGESTIONS %%%%%%
% (1) we should ensure the "first" edges of the vertices and faces are consistent
% (2) need to sort faces and vertices into a type order
% (3) should ensure that for a non-chiral polyhedron, the vertex polarity alternates
% (4) w=75 does not work
% (5) dual of henispherical poyhedron
% (6) flist not calculated correctly for duals
% (7) add additional stuff into info.*
% (8) vertex figures seem to include additional (duplicated) lines
% (9) sort out when reflected vertices are really rotationally congruent
% (10) could optionally colour by face type
% (11) order alphabetically by noun
% (12) allow abbreviated names + prisms with preceding decimal number
% (13) calculate correct names
% (14) include names for duals
% (15) make "names" etc persistent
% Example slide show:
% for i=1:74, disp(num2str(i)); upolyhedron(i); pause(2); end
% for i=5:10, disp(num2str(i)); for j=1:5, upolyhedron(i+j/10); pause(2); end, end
% Copyright (C) Mike Brookes 1997
% Version: $Id: upolyhedron.m,v 1.4 2010/04/16 07:44:01 dmb Exp $
%
% VOICEBOX is a MATLAB toolbox for speech processing.
% Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can obtain a copy of the GNU General Public License from
% http://www.gnu.org/copyleft/gpl.html or by writing to
% Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [line nn] referes to the kaleido Mathematica program on which this is based
% see http://www.mathconsult.ch/showroom/unipoly/unipoly.html#Images
% Variables used
% adjacent adjacency matrix
% chi characteristic
% cosa cos of the angle subtended by a half edge
% d density
% e number of edges
% even number of even faces to remove
% f number of faces
% fi(n) number of faces of type i
% g order of group
% gamma(n) included spherical triangle angle between centre of face,
% vertex and edge for face type i
% hemiQ =1 for hemispherical faces (includes polyhedron centre)
% incidence faces incident at vertex
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
《MATLAB计算机视觉与深度学习实战》的配套代码,含直方图优化去雾技术、自适应图像去噪、提取眼前节组织、肺癌分割诊断、角点检测。 01: 直方图优化去雾技术 02: 基于形态学的权重自适应图像去噪 03: 多尺度形态学提取眼前节组织 04: 基于Hough变化的答题卡识别 05: 基于阈值分割的车牌定位识别 06: 基于分水岭算法的肺癌分割诊断 07: 基于主成分分析的人脸二维码识别 08: 基于知识库的手写体数字识别 09: 基于特征匹配的英文印刷字符识别 10: 基于不变矩的数字验证码识别 11: 基于小波技术进行图像融合 12: 基于块匹配的全景图像拼接 13: 基于霍夫曼图像压缩重建 14: 基于主成分分析的图像压缩和重建 15: 基于小波的图像压缩技术 16: 基于Hu不变矩的图像检索技术 17: 基于harris 的角点检测(可以直接用matlab自带的函数) 18: 基于GUI搭建通用视频处理工具 19: 基于语音识别的信号灯图像模拟控制技术 22: 基于K均值的据类算法分割(算法时间有点久) 27: 区域生长算法进行肝部肿瘤分割(原始分割精度不高)
资源推荐
资源详情
资源评论
收起资源包目录
MATLAB计算机视觉与深度学习实战的配套代码,含直方图优化去雾技术、自适应图像去噪、提取眼前节组织、肺癌分割诊断、角点检测 (1978个子文件)
video.avi 8.81MB
viptraffic.avi 814KB
out.avi 565KB
ecolicells.avi 543KB
traffic.avi 204KB
image.bmp 600KB
im2.bmp 184KB
im1.bmp 118KB
im3.bmp 117KB
rice.bmp 65KB
lena.bmp 65KB
Img1.bmp 44KB
Img2.bmp 44KB
ORL369.BMP 11KB
ORL080.BMP 11KB
ORL204.BMP 11KB
ORL364.BMP 11KB
ORL291.BMP 11KB
ORL110.BMP 11KB
ORL361.BMP 11KB
ORL054.BMP 11KB
ORL325.BMP 11KB
ORL218.BMP 11KB
ORL130.BMP 11KB
ORL206.BMP 11KB
ORL247.BMP 11KB
ORL282.BMP 11KB
ORL026.BMP 11KB
ORL105.BMP 11KB
ORL132.BMP 11KB
ORL289.BMP 11KB
ORL147.BMP 11KB
ORL344.BMP 11KB
ORL270.BMP 11KB
ORL244.BMP 11KB
ORL115.BMP 11KB
ORL300.BMP 11KB
ORL342.BMP 11KB
ORL269.BMP 11KB
ORL320.BMP 11KB
ORL028.BMP 11KB
ORL069.BMP 11KB
ORL385.BMP 11KB
ORL039.BMP 11KB
ORL175.BMP 11KB
ORL051.BMP 11KB
ORL390.BMP 11KB
ORL277.BMP 11KB
ORL303.BMP 11KB
ORL349.BMP 11KB
ORL016.BMP 11KB
ORL233.BMP 11KB
ORL088.BMP 11KB
ORL081.BMP 11KB
ORL393.BMP 11KB
ORL359.BMP 11KB
ORL015.BMP 11KB
ORL050.BMP 11KB
ORL236.BMP 11KB
ORL155.BMP 11KB
ORL142.BMP 11KB
ORL355.BMP 11KB
ORL394.BMP 11KB
ORL104.BMP 11KB
ORL113.BMP 11KB
ORL193.BMP 11KB
ORL280.BMP 11KB
ORL052.BMP 11KB
ORL040.BMP 11KB
ORL314.BMP 11KB
ORL398.BMP 11KB
ORL024.BMP 11KB
ORL338.BMP 11KB
ORL330.BMP 11KB
ORL124.BMP 11KB
ORL171.BMP 11KB
ORL189.BMP 11KB
ORL311.BMP 11KB
ORL284.BMP 11KB
ORL084.BMP 11KB
ORL228.BMP 11KB
ORL037.BMP 11KB
ORL356.BMP 11KB
ORL169.BMP 11KB
ORL261.BMP 11KB
ORL331.BMP 11KB
ORL251.BMP 11KB
ORL307.BMP 11KB
ORL252.BMP 11KB
ORL106.BMP 11KB
ORL008.BMP 11KB
ORL367.BMP 11KB
ORL063.BMP 11KB
ORL042.BMP 11KB
ORL308.BMP 11KB
ORL085.BMP 11KB
ORL235.BMP 11KB
ORL234.BMP 11KB
ORL256.BMP 11KB
ORL185.BMP 11KB
共 1978 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
流华追梦
- 粉丝: 3601
- 资源: 2050
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功