Class GaussianFilter

java.lang.Object
org.jamdev.jpamutils.spectrogram.GaussianFilter

public class GaussianFilter
extends Object
Kernel smoothing for the spectrogram.

This is almost a carbon copy from PAMGuard (www.pamguard.org)

Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • generateKernal

      public double[][] generateKernal​(double sigma)
      Generate the Kernel for a sigma value
      Parameters:
      sigma -
      Returns:
    • setKernel

      public void setKernel​(double[][] kernel)
    • runFilter

      public ComplexArray[] runFilter​(ComplexArray[] complexArray)
      Run the Gaussian filter on a spectrogram. Convenience function. This will reset the current channel processes.
      Parameters:
      complexArray - - the spectrogram including the complex number.
      Returns:
      the complex array out.
    • getDescription

      public String getDescription()
    • initialise

      public boolean initialise​(int channelMap)
      Initialise the channelMap store
      Parameters:
      channelMap - - the channel map of expected input units.
      Returns:
      the channel map.
    • runNoiseReduction

      public boolean runNoiseReduction​(ComplexArray fftDataUnit)
    • runNoiseReduction

      public boolean runNoiseReduction​(ComplexArray fftDataUnit, int sigma)
      Run the noise reduction.
      Parameters:
      fftDataUnit - - the FFT data unit.
      sigma - - the sigma value.
      Returns:
      true if success.