[Master Index] [Index for export/lyngby]

lyngby_getvolume

(export/lyngby/lyngby_getvolume.m)


Function Synopsis

V = lyngby_getvolume(index);

Help text

 lyngby_getvolume     - Get a volume from a file

	function V = lyngby_getvolume(index);

	Input:	index	Index in the total number of scans, indexed
	                from one.
	
	Output:	V	The volume as a row vector

       Global: DATATYPE           Datatype, see fread
               FILENAMEPATH       The 'Path' part of the filename
               FILENAME_PATTERN   Pattern for file name containing a
                                  '%d' part
               FILE_READING_TYPE  [ analyze | analyze4d | sdt |
                                  vapet4d | 1 | 2 | 3 ] The filetype 
               NUM_VOXELS         Number of voxels
               ORDERING           Ordering between dimensions, eg,
                                  whether y is before x
               ORIENTATION        Mirroring, e.g., whether left or
                                  right is first in the volume

       This function reads a volume in one of several
       fileformats. The volume read and how it is interpret is
       determined from global variables. 
 
	If FILE_READING_TYPE is 2 the function looks
	for a matlab function named 'data_readdata' that the user 
	should provide. This function should be defined as:
		V = data_readdata(index);
	
	If FILE_READING_TYPE is 1 it will be assumed
	that the filetype is ANALYZE of VAPET, and the orientation
	and ordering is: 
		[left-to-right back-to-front bottom-to-top] 

	See also LYNGBY, LYNGBY_READ_VOLUME, LYNGBY_GETINFO,
	         LYNGBY_GLOBAL, LYNGBY_READ_ANALYZE,
	         LYNGBY_READ_ANA4D, LYNGBY_READ_SDT,
	         LYNGBY_READ_VAPET4D.

 $Id: lyngby_getvolume.m,v 1.10 2002/05/19 22:26:28 fnielsen Exp $

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF