binarize - returns / sets binarize value for object $Id$
0001 function h = binarize(obj, val) 0002 % binarize - returns / sets binarize value for object 0003 % 0004 % $Id$ 0005 0006 if nargin > 1 0007 if ~(val == 0 | val == 1) 0008 error('binarize is 0 or 1 flag'); 0009 end 0010 obj.binarize = val; 0011 h = obj; 0012 else 0013 h = obj.binarize; 0014 end