Local adjustments - denoise improvments (#6705)
* Init improvment LA denoise * First display luma chroma residual noise * Clean code denoise iplocallab.cc * Change windows.yml with old version january 2023 * Clean code - change calculation denoise - GUI * Improve labels tooltip denoise * Clean code * Change tooltip * Set auto denoise - main - chroma auto to 50% when LA denoise is used * Change GUI denoise with expanders * Change labels * Change reference remianing noise in percentage * Change tooltip and labels * Change values in preview remaining noise * Clean comment code - chnage tooltips * Change windows.yml and appimage.yml publish_pre_dev labels * Update windows.yml * Restore windows.yml * Restore windows.yml and clean code * Revert change Noise Reduction link with Local denoise * Revert all changes on Noise-reduction linked with Local adjustments
This commit is contained in:
@@ -703,6 +703,19 @@ void Locallab::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited
|
||||
|
||||
expreti.updateMinMax(cdma, cdmin, mini, maxi, Tmean, Tsigma, Tmin, Tmax);
|
||||
}
|
||||
// Update Locallab Denoise tool lum/chro
|
||||
if (pp->locallab.selspot < (int) denoiselc.size()) {
|
||||
const double highres = denoiselc.at(pp->locallab.selspot).highres;
|
||||
const double nres = denoiselc.at(pp->locallab.selspot).nres;
|
||||
const double highres46 = denoiselc.at(pp->locallab.selspot).highres46;
|
||||
const double nres46 = denoiselc.at(pp->locallab.selspot).nres46;
|
||||
const double Lhighres = denoiselc.at(pp->locallab.selspot).Lhighres;
|
||||
const double Lnres = denoiselc.at(pp->locallab.selspot).Lnres;
|
||||
const double Lhighres46 = denoiselc.at(pp->locallab.selspot).Lhighres46;
|
||||
const double Lnres46 = denoiselc.at(pp->locallab.selspot).Lnres46;
|
||||
|
||||
expblur.updatedenlc(highres, nres, highres46, nres46, Lhighres, Lnres, Lhighres46, Lnres46);
|
||||
}
|
||||
|
||||
// Update default values according to selected spot
|
||||
setDefaults(pp, pedited);
|
||||
@@ -1094,6 +1107,28 @@ void Locallab::minmaxChanged(const std::vector<locallabRetiMinMax> &minmax, int
|
||||
}
|
||||
}
|
||||
|
||||
void Locallab::denChanged(const std::vector<locallabDenoiseLC> &denlc, int selspot)
|
||||
{
|
||||
// Saving transmitted min/max data
|
||||
denoiselc = denlc;
|
||||
|
||||
//Update Locallab Denoise tool lum chro
|
||||
if (selspot < (int) denoiselc.size()) {
|
||||
const double highres = denoiselc.at(selspot).highres;
|
||||
const double nres = denoiselc.at(selspot).nres;
|
||||
const double highres46 = denoiselc.at(selspot).highres46;
|
||||
const double nres46 = denoiselc.at(selspot).nres46;
|
||||
const double Lhighres = denoiselc.at(selspot).Lhighres;
|
||||
const double Lnres = denoiselc.at(selspot).Lnres;
|
||||
const double Lhighres46 = denoiselc.at(selspot).Lhighres46;
|
||||
const double Lnres46 = denoiselc.at(selspot).Lnres46;
|
||||
|
||||
expblur.updatedenlc(highres, nres, highres46, nres46, Lhighres, Lnres, Lhighres46, Lnres46);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Locallab::logencodChanged(const float blackev, const float whiteev, const float sourceg, const float sourceab, const float targetg, const bool autocomput, const bool autocie, const float jz1)
|
||||
{
|
||||
// Update Locallab Log Encoding and Ciecam accordingly
|
||||
|
Reference in New Issue
Block a user