QutEcoacoustics / audio-analysis

The audio analysis code (AnalysisPrograms.exe) for the QUT Ecoacoustics Research Group
https://ap.qut.ecoacoustics.info/
Apache License 2.0
53 stars 12 forks source link

Exposes ImageChrome option for FCS to users #503

Closed atruskie closed 3 years ago

atruskie commented 3 years ago

Exposes ImageChrome option for FCS to users

Now users can suppress chrome output when doing index generation of when drawing false colour spectrograms.

Changes

Issues

Fixes #352

Visual Changes

Now when ImageChrome is false in an LdSpectrogramConfig, images with just raw spectral indices data will be shown.

Final Checklist

codecov[bot] commented 3 years ago

Codecov Report

Merging #503 (754b294) into master (7f5cfff) will increase coverage by 42.73%. The diff coverage is 79.48%.

:exclamation: Current head 754b294 differs from pull request most recent head 5464a20. Consider uploading reports for the commit 5464a20 to get more accurate results Impacted file tree graph

@@             Coverage Diff             @@
##           master     #503       +/-   ##
===========================================
+ Coverage    0.71%   43.45%   +42.73%     
===========================================
  Files         481      481               
  Lines       48917    48918        +1     
  Branches     7662     7667        +5     
===========================================
+ Hits          349    21255    +20906     
+ Misses      48516    27663    -20853     
+ Partials       52        0       -52     
Impacted Files Coverage Δ
...c/AnalysisPrograms/DrawLongDurationSpectrograms.cs 8.37% <0.00%> (+8.37%) :arrow_up:
...LongDurationSpectrograms/LDSpectrogramStitching.cs 42.18% <0.00%> (+42.18%) :arrow_up:
src/AnalysisPrograms/AcousticIndices.cs 66.81% <75.00%> (+66.81%) :arrow_up:
...Tools/LongDurationSpectrograms/LDSpectrogramRGB.cs 56.28% <83.33%> (+56.28%) :arrow_up:
src/AnalysisPrograms/ConcatenateIndexFiles.cs 42.82% <100.00%> (+42.82%) :arrow_up:
...ls/LongDurationSpectrograms/LDSpectrogramConfig.cs 76.74% <100.00%> (+76.74%) :arrow_up:
src/AED/EventPatternRecog.fs 7.46% <0.00%> (-86.57%) :arrow_down:
src/AED/SpectralPeakTrack.fs 24.13% <0.00%> (-72.42%) :arrow_down:
src/AED/Matlab.fs 76.19% <0.00%> (-11.12%) :arrow_down:
src/AED/Util.fs 22.44% <0.00%> (+1.02%) :arrow_up:
... and 432 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f5cfff...5464a20. Read the comment docs.

atruskie commented 3 years ago

I noticed the syntax ChromeImage.With and could not see if you had written an extention method for booleans

I have, but it was written when we first did chromeless images. It didn't change in this PR so you didn't see it. Good pick though.

I also decided using just a boolean would be simpler in the config file. Am open to making the enum work there too but that can be done later.

I wondered why not produce both chromed and unchromed images so the user does not have another choice to think about?

scale, performance, etc..

e.g. when running AP on the HPC cluster, I want it to output exactly what I want. Writing extra files takes a lot of time and storage space