function [segment] = segmentvolume(cfg, mri)

% VOLUMESEGMENT segments an anatomical MRI into gray matter, white
% matter, and CSF compartments.
%
% Warning: SEGMENTVOLUME has been renamed to VOLUMESEGMENT
% Warning: backward compatibility will be removed in the future

warning('SEGMENTVOLUME has been renamed to VOLUMESEGMENT');
warning('backward compatibility will be removed in the future');

[volume] = volumesegment(cfg, volume)
