Add parameter saving into watershed segmentation hdf5 file