read segmentation settings from hdf5  using libmagic