Finalised histogram equalistation