The codes for "Regularity Preserved Superpixels and Supervoxels" in TMM 2014