Class SpectrogramImage

java.lang.Object
rawDeepLearningClassifier.layoutFX.dlTransfroms.SpectrogramImage

public class SpectrogramImage extends Object
Draws the image of a spectrogram on a canvas.
Author:
Jamie Macaulay
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpectrogramImage(double[][] spectrogram, ColourArray colourArray, double[] clims)
    Constructor for a spectrogram image.
    SpectrogramImage(double[][] spectrogram, ColourArray colourArray, double[] clims, boolean log)
    Constructor for a spectrogram image.
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.image.WritableImage
    Create a an image of the spectrogram by applying a colour gradient to the surface data.
    javafx.scene.image.WritableImage
    writeImageData(double[][] data, ColourArray colourArray, double[] clims)
    Create a an image of the spectrogram by applying a colour gradient to the surface data.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpectrogramImage

      public SpectrogramImage(double[][] spectrogram, ColourArray colourArray, double[] clims)
      Constructor for a spectrogram image.
      Parameters:
      spectrogram - - the spectrogram to make an image of
      clims - - the colour limits for the spectrogram.
      colourArrayType - - the colour map to use for the spectrogram
    • SpectrogramImage

      public SpectrogramImage(double[][] spectrogram, ColourArray colourArray, double[] clims, boolean log)
      Constructor for a spectrogram image.
      Parameters:
      spectrogram - - the spectrogram to make an image of
      clims - - the colour limits for the spectrogram.
      colourArrayType - - the colour map to use for the spectrogram
  • Method Details

    • writeImageData

      public javafx.scene.image.WritableImage writeImageData(double[][] data, ColourArray colourArray, double[] clims)
      Create a an image of the spectrogram by applying a colour gradient to the surface data.
      Parameters:
      colourArray - - the colour array to use for the colour gradient.
      clims - - the colour limits to apply.
      spectrogram - - the spectrogram to draw
    • getRawSpecImage

      public javafx.scene.image.WritableImage getRawSpecImage()
      Create a an image of the spectrogram by applying a colour gradient to the surface data.
      Returns:
      spectrogram image which is the same size in pixels as it is in data length