Package me.kikoqiu.opencl.image

Examples of me.kikoqiu.opencl.image.ImageLumi


      }
      if(ww*divider!=w || hh*divider!=h){
        break;
      }
      w=ww;h=hh;
      IImage2d img=new ImageLumi();
      img.create(w, h, true);
      outputs.add(img);
    }
  }
View Full Code Here


    }
  }
 
  public void filter(IImage2d input){
    for(IImage2d output:outputs){
      IImage2d tmp=new ImageLumi();
      tmp.create(output.getWidth(), output.getHeight()*2, true);
     
      Kernels.setArgs(kernel, input.getBuffer(), tmp.getBuffer());     
      exec(kernel,tmp.getWidth(),tmp.getHeight());     
     
     
      Kernels.setArgs(kernel_v, tmp.getBuffer(), output.getBuffer());     
      exec(kernel_v,output.getWidth(),output.getHeight());
     
      tmp.dispose();
     
      input=output;
    }
  } 
View Full Code Here

TOP

Related Classes of me.kikoqiu.opencl.image.ImageLumi

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.