/* * Created on Jul 22, 2004 */ package imageprocessing; /** Start the image application by creating an ImageFrame. * This version is a sample. You will need to modify it according to * the names of your concrete classes. * @author dickey */ public class ImageApplication { public static void main (String[] args) { AbstractImagePanel ipanel_1 = new ImagePanel(); AbstractImagePanel ipanel_2 = new ImagePanel(); ImageProcessor ip = new ImageProcessor(); //Array of filters. You can make this list longer or shorter //according to the filters you actually implement. IImageFilter[] filters = new IImageFilter[] { new Duplicator(), new LightenUpFilter(), new DoublerFilter() }; ImageFrame fr = new ImageFrame(ipanel_1, ipanel_2, ip, filters); fr.setTitle("Martin's sample viewer"); } }