Examples of ImageFilter


Examples of java.awt.image.ImageFilter

        // Create the actual Image for output
        // Pass old image through grayscale filter, creating new image
        // This is necessary since GIFs are limited to 255 colors.
        // The easiest way to guarantee this is to convert to greyscale.
        Image oldImage = createOutputImage();
        ImageFilter filter = new GreyscaleFilter();
        Image newImage = createImage(new FilteredImageSource(oldImage.getSource(), filter));

        // Use MediaTracker to wait for new image to be created
        try {
            MediaTracker tracker = new MediaTracker(this);
View Full Code Here

Examples of me.kikoqiu.opencl.filters.ImageFilter

 
  public void init() throws IOException{
    if(clear!=null){
      return;
    }
    clear=new ImageFilter("data/helpers.c","clear");
    copy=new me.kikoqiu.opencl.filters.CopyFilter();
    _copy2array=Kernels.createFromFile(context, "data/helpers.c", "copy2array", "-cl-enable-mad");
    _adjust=Kernels.createFromFile(context, "data/helpers.c", "adjust", "-cl-enable-mad");   
  }
View Full Code Here

Examples of me.kikoqiu.opencl.filters.ImageFilter

  }

  /***/
  private void initialize() {
    try {
      preprocess=new ImageFilter("data/optflow.c", "preprocess");
      solve=new ImageFilter("data/optflow.c","solve");
      solve_k=new ImageFilter("data/optflow.c","solve_k");
      sfPrev=new ScaleFilter();
      sfNow=new ScaleFilter();
    } catch (IOException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.photark.services.album.ImageFilter

            Session session = repositoryManager.getSession();
            if (albumURL != null) {
                try {
                    File album = new File(albumURL.toURI());
                    if (album.isDirectory() && album.exists()) {
                        String[] listPictures = album.list(new ImageFilter(".jpg"));
                        if (listPictures != null && listPictures.length > 0) {
                            Node albumNode = getAlbumNode(name);
                            for (String image : listPictures) {
                                if (!albumNode.hasNode(image)) {
                                    Node picNode = albumNode.addNode(image);
View Full Code Here

Examples of org.imagearchive.lsm.toolbox.gui.ImageFilter

  public ImagePlus[] open(String arg, boolean verbose) {
    File file = null;
    ImagePlus[] imp = null;
    if (arg.equals("")) {
      JFileChooser fc = new JFileChooser();
      fc.addChoosableFileFilter(new ImageFilter());
      fc.setAcceptAllFileFilterUsed(false);
      fc.setAccessory(new ImagePreview(masterModel, fc));
      fc.setName("Open Zeiss LSM image");
      String dds = OpenDialog.getDefaultDirectory();
      if (dds != null) {
View Full Code Here

Examples of org.photovault.swingui.ImageFilter

     dialog and updates fine name if one is selected.
     */
    private void selectFnameBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selectFnameBtnActionPerformed
        // Show the file chooser dialog
        JFileChooser fc = new JFileChooser();
        fc.addChoosableFileFilter( new ImageFilter() );
        fc.setAccessory( new ImagePreview( fc ) );
       
        int retval = fc.showDialog( this, "OK" );
        if ( retval == JFileChooser.APPROVE_OPTION ) {
            File exportFile = fc.getSelectedFile();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.