please follow this link to: http://www.cs.odu.edu/~mln/teaching/cs851-s15/image-example/