Skip to content

Commit

Permalink
Miinor changes
Browse files Browse the repository at this point in the history
Issue #297
  • Loading branch information
towsey committed Apr 21, 2020
1 parent a76b248 commit 7d529e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/AnalysisPrograms/Recognizers/GenericRecognizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public override AnalyzerConfig ParseConfig(FileInfo file)
case HarmonicParameters _:
algorithmName = "Harmonics";
break;
case FowardTrackParameters _:
case ForwardTrackParameters _:
algorithmName = "SpectralTrack";
break;
case UpwardTrackParameters _:
Expand All @@ -93,7 +93,7 @@ public override AnalyzerConfig ParseConfig(FileInfo file)
$"{nameof(OscillationParameters)}," +
$"{nameof(OnebinTrackParameters)}," +
$"{nameof(HarmonicParameters)}," +
$"{nameof(FowardTrackParameters)}," +
$"{nameof(ForwardTrackParameters)}," +
$"{nameof(UpwardTrackParameters)}," +
$"{nameof(OneframeTrackParameters)}," +
$"{nameof(Aed.AedConfiguration)}";
Expand Down Expand Up @@ -150,7 +150,7 @@ public override RecognizerResults Recognize(
|| profileConfig is OscillationParameters
|| profileConfig is OnebinTrackParameters
|| profileConfig is HarmonicParameters
|| profileConfig is FowardTrackParameters
|| profileConfig is ForwardTrackParameters
|| profileConfig is UpwardTrackParameters
|| profileConfig is OneframeTrackParameters)
{
Expand Down Expand Up @@ -202,10 +202,10 @@ public override RecognizerResults Recognize(
var plot = PreparePlot(decibelArray, $"{profileName} (Whistle:dB Intensity)", wp.DecibelThreshold.Value);
plots.Add(plot);
}
else if (profileConfig is FowardTrackParameters tp)
else if (profileConfig is ForwardTrackParameters tp)
{
double[] decibelArray;
(acousticEvents, decibelArray) = FowardTrackParameters.GetFowardTracks(
(acousticEvents, decibelArray) = ForwardTrackParameters.GetForwardTracks(
sonogram,
tp.MinHertz.Value,
tp.MaxHertz.Value,
Expand Down Expand Up @@ -270,7 +270,7 @@ public override RecognizerResults Recognize(
var plot = PreparePlot(harmonicIntensityScores, $"{profileName} (Harmonics:dct intensity)", hp.DctThreshold.Value);
plots.Add(plot);
}
if (profileConfig is OscillationParameters op)
else if (profileConfig is OscillationParameters op)
{
Oscillations2012.Execute(
sonogram,
Expand Down
2 changes: 1 addition & 1 deletion src/AudioAnalysisTools/Events/Interfaces/IPointData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void DrawPointsAsFillExperiment(IImageProcessingContext graphics, EventRe
graphics.Fill(
new GraphicsOptions()
{
BlendPercentage = 1.0f,
BlendPercentage = 0.8f,
//ColorBlendingMode = SixLabors.ImageSharp.PixelFormats.PixelColorBlendingMode.Multiply,
ColorBlendingMode = SixLabors.ImageSharp.PixelFormats.PixelColorBlendingMode.Overlay,
},
Expand Down

0 comments on commit 7d529e6

Please sign in to comment.