Class LDSpectrogramClusters
This class contains two methods: (1) StitchPartialSpectrograms() and (2) ConcatenateSpectralIndexFiles()
(1) StitchPartialSpectrograms() This method stitches together images and/or indices derived from a sequence of short recordings with gaps between them. It was written to deal with a set of recordings with protocol of Gianna Pavan (10 minutes every 30 minutes).
The following Powershell command was constructed by Anthony to do the analysis and join the sequence of images so derived: Y:\Italy_GianniPavan\Sassofratino1day | % { & "C:\Work\GitHub\audio-analysis\AudioAnalysis\AnalysisPrograms\bin\Release\AnalysisPrograms.exe" audio2csv -so ($.FullName) -o "Y:\Italy_GianniPavan\output" -c "C:\Work\GitHub\audio-analysis\AudioAnalysis\AnalysisConfigFiles\Towsey.Acoustic.Parallel.yml" } where: Y:\Italy_GianniPavan\Sassofratino1day is the directory containing recordings | = a pipe % = foreach{} = perform the operation in curly brackets on each item piped from the directory. & "C:\Work\GitHub\audio-analysis\AudioAnalysis\AnalysisPrograms\bin\Release\AnalysisPrograms.exe" = runs an executable audio2csv = first command line argument which determines the "activity" performed -so ($.FullName) = the input file -o "Y:\Italy_GianniPavan\output" = the output directory -c "PATH\Towsey.Acoustic.Parallel.yml" is the config file
The following PowerShell command was used by Anthony to stitch together a sequence of spectrogam images without any gap between them. It requires ImageMagick software to be installed: i.e. C:\Program Files\ImageMagick-6.8.9-Q16\montage.exe Y:\Italy_GianniPavan\output\Towsey.Acoustic> & "C:\Program Files\ImageMagick-6.8.9-Q16\montage.exe" -mode concatenate -tile x1 2MAP "....\merge.png"
(2) ConcatenateSpectralIndexFiles() This method was written to deal with a new recording protocol in which 24 hours of recording are made in 4 blocks of 6 hours each. It merges all files of acoustic indices derived from a sequence of consecutive 6 hour recording, into one file. It then creates the images.
Inherited Members
Namespace: AudioAnalysisTools.LongDurationSpectrograms
Assembly: AudioAnalysisTools.dll
Syntax
public static class LDSpectrogramClusters
Methods
| Improve this Doc View SourceDrawTitleBarOfClusterSpectrogram(String, Int32)
Declaration
public static Image DrawTitleBarOfClusterSpectrogram(string title, int width)
Parameters
Type | Name | Description |
---|---|---|
String | title | |
Int32 | width |
Returns
Type | Description |
---|---|
SixLabors.ImageSharp.Image |
ExtractSOMClusters1()
This method rearranges the content of a false-colour spectrogram according to the acoustic cluster or acoustic state to which each minute belongs. The time scale is added in afterwards - must overwrite the previous time scale and title bar. THis method was writtent to examine the cluster content of recordings analysed by Mangalam using a 10x10 SOM. The output image was used in the paper presented by Mangalam to BDVA2015 in Tasmania. (Big data, visual analytics).
Declaration
public static void ExtractSOMClusters1()
ExtractSOMClusters2()
This method rearranges the content of a false-colour spectrogram according to the acoustic cluster or acoustic state to which each minute belongs. The time scale is added in afterwards - must overwrite the previous time scale and title bar. THis method was writtent to examine the cluster content of recordings analysed by Mangalam using a 10x10 SOM. The output image was used in the paper presented by Michael Towsey to Ecoacoustics Congress 2016, at Michigan State University.
Declaration
public static void ExtractSOMClusters2()