Skip to content

Commit

Permalink
Write methods to read ribbon images
Browse files Browse the repository at this point in the history
Reading ribbon plots into a csv file to generate a large feature vector spectral indices. Read from ribbon plots because only need 32 values per index.
There is no Issue number yet.
  • Loading branch information
towsey authored and atruskie committed Aug 22, 2019
1 parent 9b40034 commit d0b228d
Show file tree
Hide file tree
Showing 5 changed files with 362 additions and 323 deletions.
2 changes: 1 addition & 1 deletion src/AnalysisPrograms/Draw/RibbonPlots/RibbonPlot.Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void Add(string colorMap)
}

// try to find the associated ribbon
var searchPattern = "*" + colorMap + LDSpectrogramRGB.SpectralRibbonTag + "*";
var searchPattern = "*" + colorMap + LdSpectrogramRibbons.SpectralRibbonTag + "*";
if (Log.IsVerboseEnabled())
{
Log.Verbose($"Searching `{indexData.Source?.Directory}` with pattern `{searchPattern}`.");
Expand Down
3 changes: 2 additions & 1 deletion src/AnalysisPrograms/Sandpit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override Task<int> Execute(CommandLineApplication app)
Log.WriteLine("# Start Time = " + tStart.ToString(CultureInfo.InvariantCulture));

//AnalyseFrogDataSet();
Audio2CsvOverOneFile();
//Audio2CsvOverOneFile();
//Audio2CsvOverMultipleFiles();

// used to get files from availae for Black rail and Least Bittern papers.
Expand Down Expand Up @@ -105,6 +105,7 @@ public override Task<int> Execute(CommandLineApplication app)
//TestTernaryPlots();
//TestDirectorySearchAndFileSearch();
//TestNoiseReduction();
LdSpectrogramRibbons.ReadSpectralIndicesFromTwoFalseColourSpectrogramRibbons();
//Oscillations2014.TESTMETHOD_DrawOscillationSpectrogram();
//Oscillations2014.TESTMETHOD_GetSpectralIndex_Osc();

Expand Down
1 change: 1 addition & 0 deletions src/AudioAnalysisTools/AudioAnalysisTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
<Compile Include="Indices\SummaryIndexValues.cs" />
<Compile Include="Indices\InitialiseIndexProperties.cs" />
<Compile Include="Indices\RainIndices.cs" />
<Compile Include="LongDurationSpectrograms\LdSpectrogramRibbons.cs" />
<Compile Include="LongDurationSpectrograms\LDSpectrogramClusters.cs" />
<Compile Include="LongDurationSpectrograms\TimeOffsetSingleLayerSuperTile.cs" />
<Compile Include="LongDurationSpectrograms\Zooming\InvalidScaleException.cs" />
Expand Down
Loading

0 comments on commit d0b228d

Please sign in to comment.