Skip to content

Commit

Permalink
Update UseModel.cs
Browse files Browse the repository at this point in the history
After large merge, had to add extra argument to  to draw LDFC method.
  • Loading branch information
towsey committed Feb 9, 2020
1 parent 49161e1 commit 398bd4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AnalysisPrograms/ContentDescription/UseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ private static string DrawSpectrogramsFromSpectralIndices(
{
string colorMap1 = ldSpectrogramConfig.ColorMap1; // SpectrogramConstants.RGBMap_ACI_ENT_EVN;
string colorMap2 = ldSpectrogramConfig.ColorMap2; // SpectrogramConstants.RGBMap_BGN_PMN_OSC;
double blueEnhanceParameter = ldSpectrogramConfig.BlueEnhanceParameter.Value;

var cs1 = new LDSpectrogramRGB(ldSpectrogramConfig, indexGenerationData, colorMap1);
string fileStem = basename;
Expand Down Expand Up @@ -347,8 +348,8 @@ private static string DrawSpectrogramsFromSpectralIndices(
cs1.DrawGreyScaleSpectrograms(outputDirectory, fileStem, keys);

// create two false-color spectrogram images
var image1NoChrome = cs1.DrawFalseColourSpectrogramChromeless(cs1.ColorMode, colorMap1);
var image2NoChrome = cs1.DrawFalseColourSpectrogramChromeless(cs1.ColorMode, colorMap2);
var image1NoChrome = cs1.DrawFalseColorSpectrogramChromeless(cs1.ColorMode, colorMap1, blueEnhanceParameter);
var image2NoChrome = cs1.DrawFalseColorSpectrogramChromeless(cs1.ColorMode, colorMap2, blueEnhanceParameter);
var spacer = new Bitmap(image1NoChrome.Width, 10);
var imageList = new[] { image1NoChrome, spacer, image2NoChrome, spacer };
Image image3 = ImageTools.CombineImagesVertically(imageList);
Expand Down

0 comments on commit 398bd4f

Please sign in to comment.