Home > rest_20090422 > rest_spm5_files > nic_spm_slice_vol.m

nic_spm_slice_vol   Windows

PURPOSE ^

returns a slice through a memory mapped image - a compiled routine

SYNOPSIS ^

function varargout = nic_spm_slice_vol(varargin)

DESCRIPTION ^

 returns a slice through a memory mapped image - a compiled routine
 FORMAT X = spm_slice_vol(V,A,dim,hold);
 V      -  is a memory mapped image volume
 A      -  is a 4 x 4 transformation matrix
 dim    -  [i j] defines the two dimensions of the output image. The 
           coordinates in 3-D space of the voxels in this image are assumed
           to range from 1,1,0 to i,j,0.
 hold   -  sets the interpolation method for the resampling.
           0          Zero-order hold (nearest neighbour).
           1          First-order hold (trilinear interpolation).
           2->127     Higher order Lagrange (polynomial) interpolation using
                      different holds (second-order upwards).
          -127 - -1   Different orders of sinic_ interpolation.
 X      -  output image
_______________________________________________________________________

 spm_slice_vol returns a section through a memory mapped image volume
 on disk.  This section is the transverse slice at z = 0 after linear
 transformation according to matrix A

 see also spm_sample_vol.m

_______________________________________________________________________
 Copyright (C) 2005 Wellcome Department of Imaging Neuroscienic_e

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

nic_spm_slice_vol.m

SOURCE CODE ^

0001 function varargout = nic_spm_slice_vol(varargin)
0002 % returns a slice through a memory mapped image - a compiled routine
0003 % FORMAT X = spm_slice_vol(V,A,dim,hold);
0004 % V      -  is a memory mapped image volume
0005 % A      -  is a 4 x 4 transformation matrix
0006 % dim    -  [i j] defines the two dimensions of the output image. The
0007 %           coordinates in 3-D space of the voxels in this image are assumed
0008 %           to range from 1,1,0 to i,j,0.
0009 % hold   -  sets the interpolation method for the resampling.
0010 %           0          Zero-order hold (nearest neighbour).
0011 %           1          First-order hold (trilinear interpolation).
0012 %           2->127     Higher order Lagrange (polynomial) interpolation using
0013 %                      different holds (second-order upwards).
0014 %          -127 - -1   Different orders of sinic_ interpolation.
0015 % X      -  output image
0016 %_______________________________________________________________________
0017 %
0018 % spm_slice_vol returns a section through a memory mapped image volume
0019 % on disk.  This section is the transverse slice at z = 0 after linear
0020 % transformation according to matrix A
0021 %
0022 % see also spm_sample_vol.m
0023 %
0024 %_______________________________________________________________________
0025 % Copyright (C) 2005 Wellcome Department of Imaging Neuroscienic_e
0026 
0027 % John Ashburner
0028 % $Id: spm_slice_vol.m 112 2005-05-04 18:20:52Z john $
0029 
0030 
0031 %-This is merely the help file for the compiled routine
0032 error('spm_slice_vol.c not compiled - see Makefile')

Generated on Wed 29-Apr-2009 01:06:38 by m2html © 2005