source.zip |
source.tar.gz |
2. Jar files that contain beans.
beans.zip |
beans.tar.gz |
You need these jar files to compile the source code in chapters 6 through 16.
3. Java documentation for the classes in chapters 4 through 17 and Appendixes
A and C.
javadocs.zip |
javadocs.tar.gz |
visframework.zip |
visframework.tar.gz |
5. Compiled classes from chapter 4 through 14.
classes.zip |
classes.tar.gz |
1. JDK 1.3 download: http://java.sun.com/j2se/1.3/
The progarms described in the book work best with
JDK 1.3. Some of the classes may not compile with JDK 1.4.
2. JAI 1.0.2 download:
http://java.sun.com/products/java-media/jai/downloads/download-1_0_2.html
You need this software for running JAI programs,
which are in chapters 10 through 16. If you use JAI 1.1, some of the classes
won't compile.
3. Image I/O (imageio.jar) download: http://developer.java.sun.com/developer/earlyAccess/imageio/
To download this file, you need to register
to become a member (if you are not already) of Java Developer Connection.
You need the imageio.jar file to compile and run
some classes in chapter 6 and 17.
4. Jakarta-Tomcat download: http://jakarta.apache.org/site/binindex.html
You need the Tomcat Servelet/JSP container to run
programs developed in chapter 16. Download both the Servlet API and
Jakarta-Tomcat container.
Here is an example to set up your environment in Windows:
rem echo If your directories are different, change the
following variables
set BOOK_HOME=c:\awl
set BOOK_CLASSES=d:\book\classes
set JDK_HOME=c:\jdk1.3\jre\bin;c:\jdk1.3\bin
rem set PATH and CLASSPATH
set PATH=%JDK_HOME%;%PATH%
set CLASSPATH=%BOOK_CLASSES%;%BOOK_CLASSES%\imloader.jar;%BOOK_CLASSES%\filebrowser.jar;%BOOK_CLASSES%\planarimloader.jar;%BOOK_CLASSES%\plotterbeans.jar;%CLASSPATH%
Here is an example for Unix korn shell:
#!/bin/ksh
#Change the variables to suit your settings
export BOOK_HOME=/home/staff/lhrodrig/awl
export BOOK_CLASSES=/home/staff/lhrodrig/book/classes
export JDK_HOME=/home/jdk1.3/jre/bin:/home/jdk1.3/bin
#Set PATH and CLASSPATH
PATH=$JDK_HOME:$PATH
export PATH
CLASSPATH=$BOOK_CLASSES:$BOOK_CLASSES/imloader.jar:$BOOK_CLASSES/filebrowser.jar:$BOOK_CLASSES/planarimloader.jar:$BOOK_CLASSES/plotterbeans.jar:$CLASSPATH
export CLASSPATH
Modify the script to suit your environment.
Once you compile the servlets and beans, move these classes (including beans) to the <TOMCAT_HOME>/webapps/examples/WEB-INF/classes directory. Retain the same directory structure of these classes. For example, all the beans are in the viewer package. So, the bean classes must be in the <TOMCAT_HOME>/webapps/examples/WEB-INF/classes/viewer directory.
Also, remember to move some images to the <TOMCAT_HOME>/webapps directory.
Some examples need lena.gif. You can find lena.gif in the src/chapter2/stats
directory. Some examples need images in theimages3 directory.Create images3
directory under TOMCAT_HOME>/webapps and move your own images to that directory.
Note that the app.ROIAnalyzer application currently doesn't work properly with JAI 1.1. I'll keep upadating this code with fixes for JAI 1.1 and other bugs
In case you want make the changes yourself, here is the list:
Change the type of 2nd argument to javax.media.jai.DFTScalingType
Change the type of 3nd argument to javax.media.jai.DFTDataNature
ii. CompositeImages()
Change the type of 4th argument to javax.media.jai.CompositeDestAlpha
(from int)
iii. medianFilterImage()
Change the type of 2nd argument to javax.media.jai.MedianFilterShape
(from int)
Related changes in the app.RunOperators
class
a. In the inner class FilterOpPanel,
change the types of variables masks and currentMask to MedianFilterShape.