Home > brede > brede_vol_scale.m

brede_vol_scale

PURPOSE ^

brede_vol_scale - Scaling of a volume

SYNOPSIS ^

function Vout = brede_vol_scale(Vin, varargin)

DESCRIPTION ^

 brede_vol_scale      - Scaling of a volume

       function Vout = brede_vol_scale(Vin, 'PropertyName', 
           'PropertyValue') 

       Input:    Vin    'Vol' structure

       Property: Type   [ {100fullmean/8} ]

       Output:   Vout   'Vol' structure

       Scale the voxel values in a 'vol' structure.

       '100fullmean/8' will scale the voxel values so their 'volume
       mean' will be 100. The volume mean in this connection is
       computed as the 'fullmean/8', i.e., the mean of the values of
       the voxels which values are above an eighth of the ordinary
       volume mean.

       Ref: SPM.

       Example: 
         % 'swr_nru00010_altanserin' is an example Analyze file
         V = brede_read_analyze('swr_nru00010_altanserin');
         Vscaled = brede_vol_scale(V, 'type', '100fullmean/8');
         brede_vol_volumemean(Vscaled, 'type', 'fullmean/8')
         % The last function should return 100. 

       See also BREDE, BREDE_VOL, BREDE_VOL_DIVIDE,
                BREDE_VOL_VOLUMEMEAN, BREDE_MAT_SCALE,
                BREDE_READ_ANALYZE.

 $Id: brede_vol_scale.m,v 1.1 2005/07/13 13:51:28 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