public static void convolve(Kernel kernel,int[] inPixels,int[] outPixels,int width,int height,boolean alpha,int edgeAction){
  if (kernel.getHeight() == 1)   convolveH(kernel,inPixels,outPixels,width,height,alpha,edgeAction);
 else   if (kernel.getWidth() == 1)   convolveV(kernel,inPixels,outPixels,width,height,alpha,edgeAction);
 else   convolveHV(kernel,inPixels,outPixels,width,height,alpha,edgeAction);
}

public static void convolve ( Kernel kernel , int [ ] inPixels , int [ ] outPixels , int width , int height , boolean alpha , int edgeAction ) { if ( kernel . getHeight ( ) == 1 ) convolveH ( kernel , inPixels , outPixels , width , height , alpha , edgeAction ) ; else if ( kernel . getWidth ( ) == 1 ) convolveV ( kernel , inPixels , outPixels , width , height , alpha , edgeAction ) ; else convolveHV ( kernel , inPixels , outPixels , width , height , alpha , edgeAction ) ; }
convolve a block of pixels .
