Home > phiwave > @phiw_wvimg > end.m

end

PURPOSE ^

end method for phiw_wvimg object

SYNOPSIS ^

function e = end(obj,K,N)

DESCRIPTION ^

 end method for phiw_wvimg object
 The indexing for the wvimg object works thus:
 For one index (eg wvimg(2)) the whole level is returned (as a vector)
 For two (eg wvimg(2,4) the quadrant from the level is returned (as a
 vector)
 For three, (wvimg(2, 5, 10)) the voxel value is returned for the
 contained object.

 $Id: end.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function e = end(obj,K,N)
0002 % end method for phiw_wvimg object
0003 % The indexing for the wvimg object works thus:
0004 % For one index (eg wvimg(2)) the whole level is returned (as a vector)
0005 % For two (eg wvimg(2,4) the quadrant from the level is returned (as a
0006 % vector)
0007 % For three, (wvimg(2, 5, 10)) the voxel value is returned for the
0008 % contained object.
0009 %
0010 % $Id: end.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $
0011 
0012 if N == 3
0013   % img case
0014   e = obj.wvol.dim(K);
0015 elseif K == 1  % levels
0016   e = obj.scales+1;
0017 else  % two indices, K == 2 -> quadrants
0018   e = 2^3-1;
0019 end

Generated on Wed 06-Jul-2005 18:07:21 by m2html © 2003