function [images, metaData] = bfReadVolume(filename)
  volume = bfopen(filename);
  metaData = volume{1,2};
  R = metaData.get('Global ImageLength');
  C = metaData.get('Global ImageWidth');
  sliceCount = size(volume{1,1},1);
  images = single(zeros(R,C,sliceCount));
  for i = 1:sliceCount
      images(:,:,i) = single(volume{1,1}{i});
  end  
end

