mainFrame = new JFrame("::My First Image Processing App::");
mainFrame.setSize(800, 600);
mainFrame.setVisible(true);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
imagePanel = new MarvinImagePanel();
Container lc = mainFrame.getContentPane();
lc.setLayout(new BorderLayout());
lc.add(imagePanel, BorderLayout.NORTH);
/*
* IMAGE TESTS
*/
image = new MarvinImage(200,200);
image.fillRect(250, 10, 100, 100, Color.blue);
image2 = MarvinImageIO.loadImage("./images/image01.jpg");
MarvinImageIO.saveImage(image2, "./images/image01_test.jpg");
image2.resize(350, 300);
imagePlugin = MarvinPluginLoader.loadImagePlugin("org.marvinproject.image.artistic.mosaic.jar");
imagePlugin.process(image2,image2);
image2.update();
imagePanel.setImage(image2);
videoPanel = new MarvinImagePanel();
videoInterface = new MarvinJavaCVAdapter();
videoInterface.connect(0);
}