Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.054.119 Times

ind2patch 1.0

  Date Added: March 22, 2013  |  Visits: 301

ind2patch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)

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 Voxel (box)d-de?sxd-deOao, d-de?syd-deOao, d-de?szd-deOao Mid-voxel slice for x, y and z direction respectively EXAMPLEclear all; close all; clc; Simulating 3D image[X,Y,Z]=meshgrid(linspace(-4.77,4.77,75));phi=(1+sqrt(5))/2;M=2 - (cos(X + phi*Y) + cos(X - phi*Y) + cos(Y + phi*Z) + cos(Y - phi*Z) + cos(Z - phi*X) + cos(Z + phi*X));M=M./max(M(:)); %Normalise, not requiredfigure;fig=gcf; clf(fig); colordef (fig, 'white'); units=get(fig,'units'); set(fig,'units','normalized','outerposition',[0 0 1 1]); set(fig,'units',units); set(fig,'Color',[1 1 1]);hold on; xlabel('X-J','FontSize',20);ylabel('Y-I','FontSize',20);zlabel('Z-K','FontSize',20); Creating and plotting patch dataSetting up indices for slices to plotS=round(size(M,2)./2);L_slices=false(size(M));L_slices(:,S,:)=1;IND_slices=find(L_slices);[Fs,Vs,C_slice]=ind2patch(IND_slices,M,'sx'); %Creating patch data for x mid-voxel sliceshs=patch('Faces',Fs,'Vertices',Vs,'EdgeColor','none', 'CData',C_slice,'FaceColor','flat','FaceAlpha',0.75);Setting up indices for slices to plotS=round(size(M,1)./2);L_slices=false(size(M));L_slices(S,:,:)=1;IND_slices=find(L_slices);[Fs,Vs,C_slice]=ind2patch(IND_slices,M,'sy'); %Creating patch data for y mid-voxel sliceshs=patch('Faces',Fs,'Vertices',Vs,'EdgeColor','none', 'CData',C_slice,'FaceColor','flat','FaceAlpha',0.75);Setting up indices for slices to plotS=round(size(M,3)./2);L_slices=false(size(M));L_slices(:,:,S)=1;IND_slices=find(L_slices);[Fs,Vs,C_slice]=ind2patch(IND_slices,M,'sz'); %Creating patch data for z mid-voxel sliceshs=patch('Faces',Fs,'Vertices',Vs,'EdgeColor','none', 'CData',C_slice,'FaceColor','flat','FaceAlpha',0.75);Setting up indices for voxels to plotIND=find(M>-0.2 & M0.9);[Fs,Vs,C_slice]=ind2patch(IND,M,'v'); %Creating patch data for selection of high voxelshs=patch('Faces',Fs,'Vertices',Vs,'EdgeColor','k', 'CData',C_slice,'FaceColor','flat','FaceAlpha',1);axis equal; view(3); axis tight; colormap jet; colorbar; caxis([0 1]); grid on;set(gca,'FontSize',20);

Requirements: No special requirements
Platforms: Matlab
Keyword: Clffig Colordef Creating Datasetting Hold Midvoxel Plotting Setfig Color Setfig U Setfig Units Normalized Outerposition Slices Sliceshs Dpatch Faces Vertices Edgecolor Units Dgetfig Units White Xlabel Fontsize Ylabel Fontsize Zlabel Fontsize
Users rating: 0/10

License: Freeware Size: 10 KB
IND2PATCH RELATED
Communication  -  subtri 1.0
[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...
10 KB  
Development Tools  -  ncquiverref 1.0
This function is a substitute for the standard versions of quiver and quiverm available using a vanilla release of matlab. This version assumes a 2D vector field is being plotted using a gridded flow field from a numerical model. It is primarily...
10 KB  
Web Authoring  -  Pop-a-Color Value 1.0
Pop-a-Color Value is a simple graphics tool that can be used to get color values when making skins for programs and also creating websites. When looking for html color values, hex color values, or rgb color values, Pop-a-Color Value is convenient...
316 KB  
Development Tools  -  1D Non-derivative Peak Finder 1.0
PEAKFIND general 1D peak finding algorithm peakfind(x_data,y_data) peakfind(x_data,y_data,upsam) peakfind(x_data,y_data,upsam,gsize,gstd) peakfind(x_data,y_data,upsam,htcut,'cuttype') peakfind(x_data,y_data,upsam,gsize,gstd,htcut,'cuttype')...
10 KB  
Social Networking  -  24HR Blood Bank 1.0
Blood is universally recognized as the most precious element that sustains life. It saves innumerable lives across the world in a variety of conditions. It is a BIG WORLD out there and Do you know that every year our nation requires about 4 Crore...
3.9 MB  
Social Networking  -  24HR Dawoodi Bohra Blood Bank 1.0
Blood is universally recognized as the most precious element that sustains life. It saves innumerable lives across the world in a variety of conditions. It is a BIG WORLD out there and Do you know that every year our nation requires about 4 Crore...
2.5 MB  
Games  -  Ball Fill Free 2.2
Ball Fill has been designed with Multi-Touch and Accelerometer in mind. Few other games are so responsive to whatever you do to your device! It's an Ultimate Filling Game! ---------------------------- NOTE: fingers seen on the...
9.4 MB  
Multimedia & Graphics  -  MOPlot 1.93
MOPlot is a handy visualization application specially designed for fast molecular orbitals plotting from the outputs of the Gaussian 03/98/94, Molcas, Gamess/US quantum chemical calculation packages. This Molecular Orbital Plotting Program will...
 
Audio Tools  -  IMS Music and Message On-Hold Player for Mac OS 3.31
This software mixes and plays messages and music that will play to your callers while they are on-hold or being transferred. The main advantages of using a computer are automation (eg. date sensitive messages) and great user control. Features: -...
2.9 MB  
Games  -  Yahtzee Texas Hold'em for Mac OS 1.0
The roll-and-score fun of Yahtzee meets the thrilling strategy of Texas Hold 'em in this exciting new challenge. Beat your opponents by scoring the top 5-dice hand using 2 personal dice in the pocket and 5 more that are up-for-grabs for everyone!...
23 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB  
Development Tools  -  save2word 1.0
A simple function to copy figure from MATLAB into MS Word automatically. It is a modification of saveppt (a function in File exchange) that save figures to MS Powerpoint.
10 KB