returns wvimg object as wt image matrix, or sets matrix in object $Id: as_matrix.m,v 1.2 2005/05/31 23:58:54 matthewbrett Exp $
0001 function r = as_matrix(obj, m) 0002 % returns wvimg object as wt image matrix, or sets matrix in object 0003 % 0004 % $Id: as_matrix.m,v 1.2 2005/05/31 23:58:54 matthewbrett Exp $ 0005 0006 if nargin < 2 % get 0007 obj = doproc(obj); 0008 r = obj.img; 0009 else 0010 obj.img = m; 0011 r = obj; 0012 end