returns object without image included FORMAT thinobj = thin(obj, nosavef) where nosavef prevents object image save even if there have been changes to the object since creation $Id: thin.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $
0001 function thinobj = thin(obj, nosavef) 0002 % returns object without image included 0003 % FORMAT thinobj = thin(obj, nosavef) 0004 % 0005 % where nosavef prevents object image save even if there 0006 % have been changes to the object since creation 0007 % 0008 % $Id: thin.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $ 0009 0010 if nargin < 2 0011 nosavef = 0; 0012 end 0013 if obj.changef & ~nosavef 0014 thinobj = write_wtimg(obj); 0015 else 0016 thinobj = obj; 0017 end 0018 thinobj.img = thinobj.wvol;