Home > marsbar > @maroi > volume.m

volume

PURPOSE ^

volume method - returns volume of ROI in mm

SYNOPSIS ^

function v = volume(obj)

DESCRIPTION ^

 volume method - returns volume of ROI in mm

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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);

Generated on Thu 17-Mar-2016 01:14:46 by m2html © 2005