Optimise SLIC to get minimum variance in sp color