Package marvin.gui

Examples of marvin.gui.MarvinImagePanel


    JPanel panelBottom = new JPanel();
    panelBottom.setLayout(new BorderLayout());
    panelBottom.add(panelIntern, BorderLayout.NORTH);
    panelBottom.add(labelPerformance, BorderLayout.SOUTH);
   
    imagePanel = new MarvinImagePanel();
   
    //Container
    Container con = mainFrame.getContentPane();
    con.setLayout(new BorderLayout());
    con.add(imagePanel, BorderLayout.NORTH);
View Full Code Here


    panelBottom.add(btnGray);
    panelBottom.add(btnEdgeDetector);
    panelBottom.add(btnInvert);
    panelBottom.add(btnReset);
   
    imagePanel = new MarvinImagePanel();
       
    Container lc = mainFrame.getContentPane();
    lc.setLayout(new BorderLayout());
    lc.add(panelBottom, BorderLayout.SOUTH);
    lc.add(imagePanel, BorderLayout.NORTH);
View Full Code Here

    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);
  }
View Full Code Here

  }
 
 
  public MarvinImagePanel seImageToPanel(String imagePath)
  {
    imagePanel = new MarvinImagePanel();
    image = MarvinImageIO.loadImage(imagePath);
    image.resize(550, 250);
    imagePanel.setImage(image);
    return imagePanel;
  }
View Full Code Here

    panel.removeAll();
  }   
 
  public MarvinImagePanel newImagePanel()
  {
    this.imagePanel = new MarvinImagePanel();
    return this.imagePanel;
 
View Full Code Here

TOP

Related Classes of marvin.gui.MarvinImagePanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.