voxpts method - returns 3xN ijk matrix in voxels $Id$
0001 function [pts, vals] = voxpts(o, sp) 0002 % voxpts method - returns 3xN ijk matrix in voxels 0003 % 0004 % $Id$ 0005 0006 if nargin < 2 0007 error('Need space for voxpts call') 0008 end 0009 0010 sp = mars_space(sp); 0011 0012 % to maroi_matrix object 0013 mo = maroi_matrix(o); 0014 0015 % and return values 0016 [pts, vals] = voxpts(mo, sp);