}
}
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;
}
}