Class GaussianBlur

    • Field Detail

      • m_Radius

        protected double m_Radius
        the radius to use.
    • Constructor Detail

      • GaussianBlur

        public GaussianBlur()
    • Method Detail

      • setRadius

        public void setRadius​(double value)
        Sets the blur radius.
        Parameters:
        value - the radius
      • getRadius

        public double getRadius()
        Returns the blur radius.
        Returns:
        the radius
      • radiusTipText

        public String radiusTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • clamp

        protected int clamp​(int c)
        Clamp a value to the range 0..255
        Parameters:
        c - the value to clamp
        Returns:
        the clamped value
      • convolveAndTranspose

        protected void convolveAndTranspose​(Kernel kernel,
                                            int[] inPixels,
                                            int[] outPixels,
                                            int width,
                                            int height)
        Applies the kernel.
        Parameters:
        kernel - the kernel to apply
        inPixels - the incoming pixels
        outPixels - the generated pixels
        width - the width of the image
        height - the height of the image
      • makeKernel

        protected Kernel makeKernel​(float radius)
        Make a Gaussian blur kernel.
        Parameters:
        radius - the radius of the kernel