[Master Index] [Index for export/lyngby]

lyngby_write_ana

(export/lyngby/lyngby_write_ana.m)


Function Synopsis

lyngby_write_ana(filename, V, siz, arg1, ...

Help text

 lyngby_write_ana     - Write a volume to ANALYZE files

        function lyngby_write_ana(filename, V, siz, ...
           'PropertyName', 'PropertyValue');
                
        Input:    filename  Filename with no extension
                  V         Volume as a row vector
                  siz       x,y,z, No of pixels in each dimension

        Property: Datatype   [ uchar | uint8 | int16 | {float32} |
                             float64 ] 
                  Endian     [ {big} | little ]
                  Origin     [ {round(siz/2)} ] Center voxel (SPM
                             field) 
                  Scale      [ {off} | on ] Scaling of pixel
                             values. Only applicable for uchar, uint8
                             and int16  
                  VoxelDim   {[0.002 0.002 0.002]} Voxel size in
                             meters 

        SPM type of ANALYZE header is not fully supported.
        
        The volume x-coordinate is not flip, ie. it expects a
        left-to-right volume and writes and left-to-right volume (in
        accordance with the SPM99 ANALYZE definition NOT the original
        ANALYZE definition.

        Ref: http://www.fil.ion.ucl.ac.uk/spm/distrib.html#AzeFmt
             http://www.mayo.edu/bir/analyze/AnalyzeFileInfo.html

        See also LYNGBY_READ_ANALYZE, LYNGBY_READANAVOL,
                 LYNGBY_READANAHDR, LYNGBY_WRITE_SDT,
                 LYNGBY_WRITE_VAPET. 

 $Id: lyngby_write_ana.m,v 1.11 2003/05/21 09:21: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