Colordef
This function generates patch data (faces d-deDUFd-deDt, vertices d-deDUVd-deDt and color data d-deDUCd-deDt) for 3D images. The patches are only generated for the voxels specified by the linear indices in d-deDUINDd-deDt. The variable d-deDUptyped-deDt indicatesthe type of patch:d-de?vd-deOao...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): ind2patch Download |
This simple function creates a structure array containing coordinate and colour data for 3D images. The example below shows how the function allows one to use the patch function to plot the whole image or a selection of voxels in 3D. The CData is generated using the voxel intensities.N.B. The...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): image3Ddata Download |
function [V,F]=platonic_solid(n,r)Creates the PATCH data, the vertices (V) and faces (F) fora given platonic solid (according to "n" see below) with radius (r)n=1 -> Tetrahedronn=2 -> Cuben=3 -> Octahedronn=4 -> Icosahedronn=5 -> Dodecahedron%% Exampleclear all; close all; clc;r=1;figure;fig=gcf;...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): platonic_solid Download |
[Fs,Vs]=subtri(F,V,n)Sub-triangulates the triangles defined by the patch format data F (faces) and V (vertices). Can be used to increase the density of triangulated data or to triangulate the icosahedron to create geodesic sphere triangulations with desired density.Creates n addition points on...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): subtri Download |