|
There are three parts to this assignment.
(1) Download the appropriate code from the dbn.media.mit.edu site so that you can run a DBN program as a Java applet. Write the necessary HTML code so that you can display one of your DBN programs as a Java applet. For example, you might display one of the programs you created for assignment eight on your web page.
(2) Compile and then use the JPG2DBN tool that you can find here: JPG2DBN.java. Write a program so that you can load into DBN a JPG, display it on the paper, and then draw over the top of it. You can use the following program to load in and display the image, but you will need to add a drawing program to this: load_photo.dbn
(3) Read the chapter from Java 2D Graphics and pay especial attention to the section on convolution filters. Write three convolution filters in DBN: sharpen, edge detection, and blur. Implement the filters by implementing the convolveOp command three different ways using the following code as a framework. Note that this code is a varient of PETRI.DBN: RASTER.DBN
|