code: private static void compute(int[] in, int[] out, int width, int height, int radius)
      {
          final int widthMinus1 = width - 1;
          final int tableSize = 2 * radius + 1;
          final int[] divide = new int[Constant.UNSIGNED_BYTE * tableSize];
  
          for (int i = 0; i < Constant.UNSIGNED_BYTE * tableSize; i++)
          {
              divide[i] = i / tableSize;
          }
  
          int inIndex = 0;
          for (int y = 0; y < height; y++)
          {
              compute(in, out, y, inIndex, divide, width, widthMinus1, height, radius);
              inIndex += width;
          }
      }
docs: Compute bilinear filtering.
  
  @param in The source pixels.
  @param out The destination pixels.
  @param width The image width.
  @param height The image height.
  @param radius The radius used.