MATLAB, and its open-source counterpart Octave are high-level numerical computation playgrounds with an easy-to-learn programming interface.
In Octave you need to load the image package before you can use the functions.
pkg load image