What I wanted to find out
I took 31 photos at a concert on an iPhone 16 Pro. Bright LED screens and colored haze sat above a dark crowd whose shadows looked gritty at full size. Could I clean up those shadows and keep the little lights and textures that made the pictures feel like the night itself? I tried a filter that smoothed the edges more than the center. One edge light dimmed and left a faint smear, even though the average brightness hardly moved. That made checking small regions part of the edit.
What I tested
I used the full-size originals, 23 HEICs and eight JPEGs from the rear cameras with flash off. The files recorded ISO 100–1000, with a median of 160, and shutter speeds from about 1/500 to 1/31 second. Those settings don’t quantify the grain already baked into the files. There was no clean reference or measured starting noise level, and the capture app couldn’t be confirmed.
Claude Code built the filter. It compared 7×7 patches within eight pixels and made two passes at each of four scales. The first pass ran at 0.7× the estimated noise in the center and 1.4× at the edge, with the second at 0.4× and 1.0×. To protect the light that smeared, the revision used the stricter noise allowance for each patch pair, stopped the allowance rising above the midtones, and capped the change at each scale.
What the crop showed
The worst 8×8 change in the reduced-size lamp frame went from 44.3 to 10.5 levels on a 255-level scale. The earlier sample went through HEIC encoding and the later crop was direct, and the three changes went in together. That comparison makes the defect worth investigating, with the contribution of each change still open.
Across the final batch, average RGB channel shifts stayed within 0.43 levels while individual 8×8 regions moved by up to 18.8. All 31 went through the numerical check. Nine had crops inspected visually, and the strongest smoothing still flattened some faint edge texture. I preferred these edits to the Codex edits I’d seen. A matched comparison would need both tools to process the same files under the same export settings.
Run the comparison
Unzip the comparison kit. From that folder, run python -m pip install -r requirements.txt and python compare.py. The script makes its own dark frame and applies the same blur twice, with a cap on pixel changes in one version. Open global-crop.png and capped-crop.png in comparison-output. Each strip has the original on the left.
The synthetic example gives the plain blur a whole-image channel shift under 0.01 level and a worst-block change of 43.56. With the cap, that block metric drops to 9.38. This is a separate, controlled example using a simple blur. In compare.py you can change the blur radius, the cap, or the noise seed one at a time and see what happens.
To try your own result, make a Lightroom Classic virtual copy. At 1:1, compare a dark patch, a little light and some detail like lettering. Increase Color Noise Reduction for colored specks and Luminance for grayscale grain. If the light starts spreading or lettering softens, back off and brush Noise into just the flat shadow. Export matching full-size sRGB PNGs, then run python compare.py before.png after.png. Use --box LEFT TOP RIGHT BOTTOM to watch the same detail across several edits.
What I’d do on the next batch
I’d use the whole-image numbers to spot obvious shifts and choose the strength by comparing the same small crops at delivery size. The synthetic test shows why a nearly unchanged average can leave room for a damaged detail. To test the actual concert filter more rigorously, I’d use identical exports and switch the three safeguards on one at a time.
