Class ZoomFocusedSpectrograms
Inheritance
ZoomFocusedSpectrograms
Assembly: AudioAnalysisTools.dll
public static class ZoomFocusedSpectrograms
Methods
|
Improve this Doc
View Source
Declaration
public static Dictionary<string, double[, ]> CompressFrameSpectrogram(Dictionary<string, double[, ]> spectra, TimeSpan imageScale, TimeSpan defaultTimeScale)
Parameters
Returns
|
Improve this Doc
View Source
This method can add in the absolute recording start time. However currently disabled.
Declaration
public static Image DrawFrameSpectrogramAtScale(LdSpectrogramConfig config, IndexGenerationData indexGenerationData, TimeSpan startTimeOfData, int compressionFactor, List<double[]> frameData, double[, ] indexData, TimeSpan focalTime, TimeSpan frameScale, int imageWidth)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
This method can add in absolute time if you want.
Currently commented out - see below.
Declaration
public static Image<Rgb24> DrawIndexSpectrogramAtScale(LdSpectrogramConfig config, IndexGenerationData indexGenerationData, Dictionary<string, IndexProperties> indexProperties, TimeSpan focalTime, TimeSpan dataScale, TimeSpan imageScale, int imageWidth, Dictionary<string, double[, ]> spectra, string basename)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static void DrawStackOfZoomedSpectrograms(DirectoryInfo inputDirectory, DirectoryInfo outputDirectory, AnalysisIoInputDirectory io, ZoomParameters common, string analysisTag, TimeSpan focalTime, int imageWidth)
Parameters
|
Improve this Doc
View Source
A FALSE-COLOUR VERSION OF DECIBEL SPECTROGRAM
Taken and adapted from Spectrogram Image 5 in the method of CLASS Audio2InputForConvCNN.cs:.
Declaration
public static Image<Rgb24> DrawStandardSpectrogramInFalseColour(double[, ] dbSpectrogramData)
Parameters
Type |
Name |
Description |
Double[,] |
dbSpectrogramData |
the sonogram data (NOT noise reduced).
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawTitleBarOfZoomSpectrogram(string title, int width)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> FrameZoomSpectrogram(Image<Rgb24> bmp1, Image<Rgb24> titleBar, TimeSpan startOffset, TimeSpan xAxisPixelDuration, TimeSpan xAxisTicInterval, int nyquist, int herzInterval)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp1 |
|
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
titleBar |
|
TimeSpan |
startOffset |
|
TimeSpan |
xAxisPixelDuration |
|
TimeSpan |
xAxisTicInterval |
|
Int32 |
nyquist |
|
Int32 |
herzInterval |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static List<double[]> ReadFrameData(DirectoryInfo dataDir, string fileStem, TimeSpan startTime, TimeSpan maxDuration, SpectrogramZoomingConfig zoomingConfig, TimeSpan indexGenerationSegmentDuration)
Parameters
Returns