volume method - returns volume of ROI in mm $Id$
0001 function v = volume(obj) 0002 % volume method - returns volume of ROI in mm 0003 % 0004 % $Id$ 0005 0006 sp = native_space(obj); 0007 XYZ = voxpts(obj,sp); 0008 vox = sqrt(sum(sp.mat(1:3,1:3)'.^2)); 0009 v = size(XYZ,2) * prod(vox);