diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-11-19 14:43:46 +0200 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-11-19 14:43:46 +0200 |
| commit | 4cd4807ca5a7490c8d7edac496a19d618bf9197e (patch) | |
| tree | e1f6c1565c242584f4cd8f62160ce2777779881a /Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs | |
| parent | aa2170bb476e627ae3aaccb8f5835b1b9331c82a (diff) | |
| download | Tango-4cd4807ca5a7490c8d7edac496a19d618bf9197e.tar.gz Tango-4cd4807ca5a7490c8d7edac496a19d618bf9197e.zip | |
Statistics Fine Tuning Adaptation.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs index f4a239c98..2a347df3d 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs @@ -17,6 +17,7 @@ using Tango.Core.ExtensionMethods; using Newtonsoft.Json; using Tango.Settings; using Tango.PPC.Common; +using Tango.PMR.ColorLab; namespace Tango.PPC.Jobs.Models { @@ -375,6 +376,10 @@ namespace Tango.PPC.Jobs.Models } } + public int BestMatchRed { get; set; } + public int BestMatchGreen { get; set; } + public int BestMatchBlue { get; set; } + protected Double _offsetpercent; /// <summary> @@ -1405,10 +1410,13 @@ namespace Tango.PPC.Jobs.Models ColorSpaces colorSpace = ColorSpaces.LAB; BrushStop stop = CreateBrushStop(colorSpace); + + ConversionOutput output = null; + try { IsBusy = true; - var output = _converter.Convert(stop, SegmentModel.Job.Machine.Configuration, SegmentModel.Job.Rml, false, false, false); + output = _converter.Convert(stop, SegmentModel.Job.Machine.Configuration, SegmentModel.Job.Rml, false, false, false); _cyan = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Cyan).Volume); _yellow = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Yellow).Volume); @@ -1424,7 +1432,11 @@ namespace Tango.PPC.Jobs.Models _l = output.SingleCoordinates.L; _a = output.SingleCoordinates.A; _b = output.SingleCoordinates.B; - } + } + + BestMatchRed = output.SingleCoordinates.Red; + BestMatchGreen = output.SingleCoordinates.Green; + BestMatchBlue = output.SingleCoordinates.Blue; } catch (Exception ex) { |
