code: private static void compute(Kernel kernel, int[] in, int[] out, int width, int height, boolean alpha, int edge)
      {
          final float[] matrix = kernel.getMatrix();
          final int cols = kernel.getWidth();
          final int cols2 = cols / 2;
  
          for (int y = 0; y < height; y++)
          {
              int index = y;
              final int ioffset = y * width;
              for (int x = 0; x < width; x++)
              {
                  compute(matrix, in, out, x, index, ioffset, cols2, width, alpha, edge);
                  index += height;
              }
          }
      }
docs: Compute blur.
  
  @param kernel The kernel used.
  @param in The source pixels.
  @param out The destination pixels.
  @param width The image width.
  @param height The image height.
  @param alpha The alpha flag.
  @param edge The edge flag.