Home > brede > brede_vol_binarize.m

brede_vol_binarize

PURPOSE ^

brede_vol_binarize - Binarize 'vol' structure

SYNOPSIS ^

function Vout = brede_vol_binarize(Vin, varargin)

DESCRIPTION ^

 brede_vol_binarize        - Binarize 'vol' structure

       Vout = brede_vol_binarize(Vin, 'PropertyName', 'PropertyValue') 

       Input:    Vin   'Vol' structure

       Property: Type  [ {Zero} | ZeroOrNaN ] 

       Output:   Vout  'Vol' structure

       Binarize the volume in a 'vol' structure, ie, set elements to
       one or zero. For 'type'='zero' the element that are zero will
       remain zero, while the rest will be set to one. For
       'type'='ZeroOrNaN' the elements that are either zero or not a
       number (NaN) will be set to zero. 

       Example:
         V = brede_loc_loc2vol(brede_loc_mat2loc([-0.03 0 0]));
         V = brede_vol_binarize(brede_vol_threshold(V, 1000));
         figure, brede_ta2_vol(V)

       See also BREDE, BREDE_VOL, BREDE_VOL_NEGATE,
                BREDE_VOL_THRESHOLD, BREDE_MAT_BINARIZE.

 $Id: brede_vol_binarize.m,v 1.3 2006/02/14 17:44:50 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