Home > brede > brede_vol_xform.m

brede_vol_xform

PURPOSE ^

brede_vol_xform - Transform a 'vol' structure

SYNOPSIS ^

function Vout = brede_vol_xform(Vin, varargin);

DESCRIPTION ^

 brede_vol_xform      - Transform a 'vol' structure

       function Vout = brede_vol_xform(Vin, 'PropertyName', ...
          'PropertyValue');

       Input:    Vin   'Vol' Structure

       Property: Info   [ {0} | integer ] Amount of debug information
                 Matrix 'Mat' structure with transformation matrix
                 Method [ linear | {*linear} | nearest | *nearest |
                        cubic | *cubic | spline | *spline ]
                        Resampling method
                 Type   [ Affine | {Brett} | InvBrett |
                        MeyerLindenberg | InvMeyerLindenberg |
                        MNI2Tal | Tal2MNI ]  

       Output:   Vout  'Vol' structure in new space

       This function transforms a volume in a 'vol' structure, eg,
       from SPM99 to "Talairach" coordinates. 

       The type 'Brett' can be used to transform from 
       McGill/MNI/SPM96/SPM99 space to Talairach SPM95 space (MNI2Tal).
       This is the nonlinear transformation (approach 2) described by
       Matthew Brett. 'InvBrett' is the inverse operation (Tal2MNI).

       'MeyerLindenberg' is a simpler affine transformation and
       'InvMeryerLindenberg' is approximately the inverse operation
       of this.  

       Example: 
         % With SPM99 installed
         f = fullfile(fileparts(which('spm')), 'templates', 'EPI');
         Vmni = brede_read_analyze(f)
         Vtal = brede_vol_xform(Vmni, 'type', 'MNI2Tal')

       Ref: Andreas Meyer-Lindenberg, Matthew Brett, 
            http://www.mailbase.ac.uk/lists/spm/1998-06/007
            http://www.mrc-cbu.cam.ac.uk/Imaging/mnispace.html 

       See also BREDE, BREDE_VOL, BREDE_VOL_RESAMPLE,
                BREDE_LOC_XFORM, RREDE_READ_ANALYZE.

 $Id: brede_vol_xform.m,v 1.5 2005/07/01 19:51:50 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005