Class GaussianKernel

java.lang.Object
com.sk89q.worldedit.math.convolution.Kernel
com.sk89q.worldedit.math.convolution.GaussianKernel

public class GaussianKernel extends Kernel
A Gaussian Kernel generator (2D bellcurve).
  • Constructor Details

    • GaussianKernel

      public GaussianKernel(int radius, double sigma)
      Constructor of the kernel.
      Parameters:
      radius - the resulting diameter will be radius * 2 + 1
      sigma - controls 'flatness'