Home > brede > brede_vol_resample.m

brede_vol_resample

PURPOSE ^

brede_vol_resample - Resample the volume

SYNOPSIS ^

function T = brede_vol_resample(S, varargin)

DESCRIPTION ^

 brede_vol_resample   - Resample the volume

       function SR = brede_vol_resample(S, 'PropertyName',
          'PropertyValue') 
       
       Input:    S   Volume structure

       Property: Method         [ {*linear} | linear | *nearest |
                                nearest | *cubic | cubic | *spline |
                                spline ] Interpolation method
                 TargetVolume   Target volume structure
                 VoxelSize      { [0.002 0.002 0.002] } Size of voxel
                                after resampling 

       Output:   T   Resampled volume structure

       Spatial resampling of a volume. This is done via the interp3
       Matlab function. If 'TargetVolume' is specified the
       'VoxelSize' will be ignored.

       The interpolation method is controlled by the 'Method'
       property and can include a star (*), if the voxels are
       homogeneously spaced. See interp3 for details. 

       Example:
         % S1 and S2 are volume structures.
         S1res = brede_vol_resample(S1, 'TargetVolume', S2);

       See also: BREDE, BREDE_VOL, BREDE_VOL_MAT2VOL,
                 BREDE_VOL_GENCOORD, INTERP3.

 $Id: brede_vol_resample.m,v 1.6 2003/09/12 16:23:19 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