function I = lyngby_roi

% lyngby_roi           - Returns the begin and end index of the volume
%
%	function I = lyngby_roi() 
%
%	Output:	I	3x2 matrix in the style of ROI_VOXELS

% cvs : $Id: lyngby_roi.m,v 1.3 1997/12/03 10:55:05 fnielsen Exp $
%       $Revision: 1.3 $

    lyngby_global;

    if all([3 2] == size(ROI_VOXELS))
      I = ROI_VOXELS;
    else	
      if isempty(NUM_VOXELS)
	error('NUM_VOXELS not defined');
      else
	I = [[1 NUM_VOXELS(1)] ; [1 NUM_VOXELS(2)] ; [1 ...
		NUM_VOXELS(3)]];
      end
    end	


