Tutorial on using Android for Image Processing Projects
EE368 Digital Image Processing, Spring 2010
Linux Version for SCIEN Lab
In this tutorial, we will learn how to set up the Android software development environment and
how to implement image processing operations on an Android-based mobile device (e.g., the
DROID phone that you have received for the class assignments). Android is an open-source
platform developed by Google and the Open Handset Alliance on which interesting and powerful
new applications can be quickly developed and distributed to many mobile device users. There is
a growing community of Android developers and a growing market for Android-based devices
(e.g., Motorola DROID, HTC DROID ERIS, Google Nexus One). Android also comes with a
vast library of useful functions, including functions for user interfaces, image/bitmap
manipulation, and camera control that we will frequently use in EE368. We look forward to
seeing your novel image processing algorithms and applications running on Android-based
devices as the quarter progresses.
The tutorial is split into two parts. In the first part, we will explain how to personalize the
Android software development environment on a SCIEN computer. Then, in the second part, we
will explain how to develop image processing programs that can run on an Android-based
Part I: Creating the Software Development Environment
The necessary software packages are already installed on the SCIEN lab computers. Just a few
simple steps need to be taken to personalize the environment.
1. Change to your root directory, e.g., /afs/ir.stanford.edu/users/j/d/johndoe
2. Open your .cshrc file in a text editor like emacs.
3. Add the following line to modify your PATH.
setenv PATH /users/ee368/EE368-Android/android-sdk-linux_86/tools:$PATH
4. Add the following line to create an alias to Eclipse.
alias ee368eclipse '/users/ee368/EE368-Android/eclipse/eclipse –vm\