code: 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);
  	}
docs: Convolve a block of pixels.
  @param kernel the kernel
  @param inPixels the input pixels
  @param outPixels the output pixels
  @param width the width
  @param height the height
  @param alpha include alpha channel
  @param edgeAction what to do at the edges