Home > brede > brede_vol_threshold.m

brede_vol_threshold

PURPOSE ^

brede_vol_threshold - Threshold volume

SYNOPSIS ^

function T = brede_vol_threshold(S, threshold, varargin)

DESCRIPTION ^

 brede_vol_threshold  - Threshold volume

       function T = brede_vol_threshold(V, threshold, ...
          'PropertyName', 'PropertyValue') 
       
       Input:    V           Volume structure
                 threshold   Threshold value

       Property: type      [ {>} | < | >< | = ] Threshold type
 
       Output:   T   Thresholded volume structure

       This function will threshold a volume based on voxel values: If
       'type' is set to '>' then every voxel above the threshold in
       V.volume will retain its value while the rest of the voxels will
       be zeroed.  

       '><' will threshold using the absolute value: Voxels with
       an absolute value less than the threshold will be zeroed.

       The function brede_vol_zero will also be able to perform some
       ways of thresholding.

       Example:
         V = brede_read_analyze('spmT_0002')
         T = brede_vol_threshold(V, 4.14);
         L = brede_vol_vol2loc(T);

       See also BREDE, BREDE_VOL, BREDE_VOL_VOL2LOC,
                BREDE_VOL_REGIDENT, BREDE_VOL_MAT2VOL,
                BREDE_VOL_GENCOORD, BREDE_VOL_ZERO.

 $Id: brede_vol_threshold.m,v 1.8 2008/03/25 15:55:43 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