Home > brede > brede_vol_smooth.m

brede_vol_smooth

PURPOSE ^

brede_vol_smooth - Smooth a volume

SYNOPSIS ^

function T = brede_vol_smooth(S, varargin)

DESCRIPTION ^

 brede_vol_smooth     - Smooth a volume

       function T = brede_vol_smooth(S, 'PropertyName',
          'PropertyValue') 
       
       Input:    S  Volume structure

       Property: Filter    [ {Box} | Gaussian | Median ] Filter type 
                 BoxWidth  [ {[3 3 3]} ] Filter width for 'box'
                           filtering specified in voxels.
                 FWHM      [ {0.01} ] Width or the gaussian filter in
                           meter unit. 0.01 corresponds to 10mm full
                           width half max.
                 Neighbor  [ 4 | 6 | 8 ] The number of neighboring
                           voxels to use in the median filter
 
       Output: T   Smoothed volume structure

       Spatial smoothing of a volume. The 'box' filter will only be
       controlled by the 'boxWidth' property and the 'Gaussian'
       filter only by the FWHM (full width half max). 

       The median filter will only work on a 6-neighborhood region with
       [3 3 3] or a 4- or 8-neighborhood region with [3 3 1], and it
       will treat NaN as missing values. 

       The Gaussian filter use the smooth3 matlab function and will not
       work with voxels that are nonisotropic. 

       Example:
         S = brede_read_analyze('spmT_0002')
         T = brede_vol_smooth(S);

       See also BREDE, BREDE_VOL, BREDE_VOL_THRESHOLD, BREDE_VOL_LOC,
                BREDE_VOL_REGIDENT, BREDE_VOL_MAT2VOL,
                BREDE_VOL_GENCOORD.

 $Id: brede_vol_smooth.m,v 1.9 2009/10/15 13:45:32 fn Exp $

CROSS-REFERENCE INFORMATION ^

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