Added essential_variables.mat and added segmentation version

Added essential_variables.mat which contains some necessary variables
and added a segmentation version (requires an additional mask which
denotes different regions in the image).