Class DeepAcousticMatWriter
java.lang.Object
rawDeepLearningClassifier.dlClassification.deepAcoustics.DeepAcousticMatWriter
Write .mat files for deepAcoustic model results. Used primarily for
debugging.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatDLResult(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticResultArray deepAcousticResultArray, long timeMillisStart, long sampleNumber, int matCount) voidaddMatImage(float[][] image, long timeMillisStart, long sampleNumber, int matCount) Add a new image to the .mat file.voidreset()Reset the writer state, clearing any existing data.voidsetMatFileOut(String matFileOut) voidWrite the results to a .mat file if matFileOut is set.
-
Constructor Details
-
DeepAcousticMatWriter
public DeepAcousticMatWriter()
-
-
Method Details
-
getMatFileOut
-
setMatFileOut
-
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.
-