From 6336e42d8a6753cdfef3612e4cb53e1e4bacf2ff Mon Sep 17 00:00:00 2001 From: Mirta Date: Sun, 15 Jan 2023 07:27:55 +0200 Subject: Added GetGamutRegion to ConvertVolume to RGB, eventhough it is not necessary, since it is given in the Lab/RGB calculation --- Software/Visual_Studio/ColorLib/Tango.ColorLib_v6/ColorConverter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Software') diff --git a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v6/ColorConverter.cpp b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v6/ColorConverter.cpp index 47f0fcfff..70db11e2e 100644 --- a/Software/Visual_Studio/ColorLib/Tango.ColorLib_v6/ColorConverter.cpp +++ b/Software/Visual_Studio/ColorLib/Tango.ColorLib_v6/ColorConverter.cpp @@ -1632,7 +1632,7 @@ void Tango::ColorLib::ColorConverter::ConvertVolumeToRGBDisplay(InputCoordinates for (int i = 0; i < m_nInks; ++i) FinalVolumeNoLI(i) = VolumeNoLI(i); //VolumeNoLi is in Color Table Units PercentagetoNLcm(VolumeNoLI, VolumeNoLI); //in [nl/cm] converted in Color Table Space - GamutRegion = GetGamutRegion(VolumeNoLI, m_GamutRegionMaxLim); //Volume is in Color Table Units + GamutRegion = GetGamutRegion(Volume, m_GamutRegionMaxLim); //Volume is in Color Table Units NLcmtoPercentage(VolumeNoLI, VolumeNoLI); // in [%] VolumeToNLInkP(VolumeNoLI, NLInkP); //NLInkP is in % VectorToDouble(NLInkP, InkOutP); @@ -1657,12 +1657,14 @@ void Tango::ColorLib::ColorConverter::ConvertVolumeToRGBDisplay(InputCoordinates //Volume is in Thread Space, need to convert to Color Table space to get RGB for (int i = 0; i < m_nInks; ++i) // % to nl/cm in Thread Space VolumeNoLI(i) *= (m_maxNlPerCM(i) / 100); + m_currentMaxNLPerCM = m_maxNlPerCM; //Thread space for (int i = 0; i < m_nProcessRanges; ++i) { m_CurrentProcessRangesMax[i] = m_ProcessRangesMaxP[i]; m_CurrentProcessRangesMin[i] = m_ProcessRangesMinP[i]; } + GamutRegion = GetGamutRegion(Volume, m_GamutRegionMaxLim); int CTUnits = 0; //to convert to Color Table space // GetClosestInk(VolumeNoLI, GamutRegion, VolumeNoLI, CTUnits); //VolumenoLi Input is in [nl/cm], VolumeNoLI Output is in [%] in thread space -- cgit v1.3.1