JMathStudio is a Java based digital image and signal processing toolkit/library.
It is simple to use, portable, light (~300 Kb), extendable and free.
Full source code available at https://github.com/bhavyaajani/jmathstudio
Android compatible JMathStudio is available @
https://sourceforge.net/projects/jmathstudio-android/