Class DeepAcousticMatWriter

java.lang.Object
rawDeepLearningClassifier.dlClassification.deepAcoustics.DeepAcousticMatWriter

public class DeepAcousticMatWriter extends Object
Write .mat files for deepAcoustic model results. Used primarily for debugging.
  • Constructor Details

    • DeepAcousticMatWriter

      public DeepAcousticMatWriter()
  • Method Details

    • getMatFileOut

      public String getMatFileOut()
    • setMatFileOut

      public void setMatFileOut(String matFileOut)
    • addMatImage

      public void addMatImage(float[][] image, long timeMillisStart, long sampleNumber, int matCount)
      Add a new image to the .mat file.
      Parameters:
      image - The image data to add, as a 2D float array.
      timeMillisStart - The start time in milliseconds for the image.
      sampleNumber - The sample number associated with the image.
    • addMatDLResult

      public void addMatDLResult(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticResultArray deepAcousticResultArray, long timeMillisStart, long sampleNumber, int matCount)
    • writeMatFile

      public void writeMatFile()
      Write the results to a .mat file if matFileOut is set.
    • reset

      public void reset()
      Reset the writer state, clearing any existing data.