14.26: adaptive Contrast, Highlights and Shadows; Dehaze, Texture, Clarity and Sharpening

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 13:33:45 -04:00
1 parent a1453df517
commit 32f6362787
12 files changed
+289 -153

No files matched your search

+5 -1
View File
@@ -130,12 +130,16 @@ void CameraRawRulesTests::theClippingAndMaskViewsShowNothingElse()
void CameraRawRulesTests::theScaleDefaultsToOneAndReachesTheRadii()
{
// Glow's reach reads the scale; Clarity's follows the picture.
CameraRawSettings settings;
settings.clarity = 100;
settings.glow = 100;
const QImage edge = step();
QVERIFY(pixels(settings.apply(edge, std::nullopt, 0)) == pixels(settings.apply(edge, std::nullopt, 1)));
QVERIFY(pixels(settings.apply(edge, std::nullopt, -2)) == pixels(settings.apply(edge, std::nullopt, 1)));
QVERIFY(pixels(settings.apply(edge, std::nullopt, 0.25)) != pixels(settings.apply(edge, std::nullopt, 1)));
CameraRawSettings clear;
clear.clarity = 100;
QVERIFY(pixels(clear.apply(edge, std::nullopt, 0.25)) == pixels(clear.apply(edge, std::nullopt, 1)));
// Grain's units read the scale: a negative one is one.
CameraRawSettings grainy;
grainy.grainAmount = 60;