I do not know how to apply mathematical calculation on the image. therefore, is there a ready-made library and textbook for applying the effect on the image?
Thanks in advance.
You can try:
http://opencv.willowgarage.com/wiki/
or http://developers.aviary.com/mobile-api
See http://www.jhlabs.com/ip/blurring.html , which mentions most image processing methods with code and a proper description.