类 KernelService

java.lang.Object
pkg.exoad.poprock.core.io.image.KernelService

@ServiceClass(requiresArming=false) public final class KernelService extends Object
  • 构造器详细资料

    • KernelService

      private KernelService()
  • 方法详细资料

    • convolveBufferedImageAt

      public static int convolveBufferedImageAt(BufferedImage image, float[][] kernel, int x, int y)
    • normalizeKernel

      public static void normalizeKernel(float[][] kernel)
      Assures all values in the kernel sum to 1
      参数:
      kernel - the supplied kernel
    • fromMatrix1D

      public static Kernel fromMatrix1D(float[] matrix, int size)
    • fromMatrix2D

      public static Kernel fromMatrix2D(float[][] matrix, int width, int height)