How can I change the contrast for an uploaded image?

Has anyone changed the contrast of an image in Unity? That is, set up a gui button called contrast and have the user manually change the contrast of the image/texture uploaded from resources in the scene?

You may use a custom algorithm.

For example:

or, i you can use advanced objects (depends by target platforms)