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

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

Serving Software Downloads in 956 Categories, Downloaded 50.377.050 Times

ind2patch 1.0

  Date Added: March 22, 2013  |  Visits: 490

ind2patch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 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
USER REVIEWS
More Reviews or Write Review


IND2PATCH RELATED
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  
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  
Home & Leisure  -  Holdem Radar Texas Hold em Calculator 1.3
Holdem Radar software is an award winning FREEWARE package for No Limit Texas Hold em Winning Strategy Expert Calculator. The software automatically analyzes in real time your poker cards (both pocket ones and the community cards) and your...
5.72 MB  
Science  -  Periscope 3D Plotting Library 0.1
Periscope is a 3D plotting library written in C++ on top of VTK. It provides an abstract interface for creating 3D plots.
369.29 KB  
Graphics Editors  -  Hold Image 2.0
Hold Image 2 is a professional DRM (Digital rights management) system for image copy protection. This program is primarily designed for the individuals willing to protect their intellectual property against theft in the global Internet. The...
8.62 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...
 
Web Authoring  -  PHP DataForm - PHP script for creating HTML Forms 1.0.1
PHP Dataform (PHP DF) script is a simple tool for creating HTML Forms with ease. It was especially designed for web developers, who do not want to spend excessive time on creating Forms in HTML or through PHP, but want to use a first-class OOP...
69 KB  
Science  -  APLpy (Astronomical Plotting in Python) 0.9.5
APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at producing publication-quality plots of astronomical imaging data in FITS format. Visit http://aplpy.sourceforge.net/ for tutorials and documentation.
55.36 KB  
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  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
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