Repository navigation
Replace MCTemporalDenoise's inert Sigma with Post-denoise; fix MCTD preview reach (task #141) - #292
Merged
StuartCameronCode merged 2 commits intoNov 28, 2026
Conversation
…st-denoise (task #141) havsfunc r31 reads MCTemporalDenoise's `sigma` only with pfMode=0, which the template never passes, so the Sigma slider changed nothing (every sigma gave the same picture). It is removed (mcTemporalSigma; old JSON still loads), and Post-denoise (mcTemporalPost, advanced only, default 0 = left out) passes havsfunc's `post`, an FFT3DFilter pass after the temporal denoise. Also: MCTD's high and very high profiles read 6-10 frames each side (two MDegrain passes, TTempSmooth, post's FFT3D window), but the preview decoded 3, so high's preview was up to 2 levels off its encode. The reach is now declared (NoiseReductionParameters::mctd_reach). Issue #177's guess that thSCD1 holds back the low/medium profiles on heavy noise is refuted for MCTD (thSCD1, thSAD and limit=0 don't rescue them); nothing is wired for it. Report: docs/reports/task-141-mctd-sigma. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-does-n # Conflicts: # docs/ENGINEERING_NOTES.md # docs/reports/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
MCTemporalDenoise's Sigma slider (
mcTemporalSigma) changed nothing. havsfunc r31 readssigmaonly for itspfMode=0FFT3D prefilter, and VapourBox never passespfMode, so havsfunc's default of 3 (DFTTest) applies. Every sigma gave the same picture: a spread of 0.0000 dB over 45 measured cells. Found by task #140 (issue #177).copyWith, the template and the legacyworker/filterscopy. Old JSON that still carriesmcTemporalSigmaloads, and the key is ignored. A default job's script only losessigma=4.0,, so its output is unchanged.mcTemporalPost→ havsfunc'spost): an FFT3DFilter pass after the temporal denoise. It is advanced-only, ranges 0–16 and defaults to 0, which leaves it out of the script. It has a 1.8.0 NEW badge. At noise sigma 6, medium goes from 34.5 to 43.1 dB at post 8. Because it is spatial, it costs 1.3–10.7 dB on a clean picture and takes 1.3–1.8x the time. The Strength steps don't set it.post, 10 at radius 4). The preview decoded only 3, so high's preview was up to 2 levels off its encode.NoiseReductionParameters::mctd_reachnow declares the reach from havsfunc's per-profile defaults, and previews match their encodes sample for sample.thSCD1was why the low and medium profiles do nothing on heavy noise. RaisingthSCD1to 800–2000 gains at most 0.7 dB,thSAD0.15 dB, andlimit=0about 3 dB at sigma 6 and nothing at sigma 9. Low and medium are profiles for light noise, so nothing is wired for this.post=4.0, and the committed table is unchanged.Report:
docs/reports/task-141-mctd-sigma, with entries in ENGINEERING_NOTES, CLAUDE.md and the reports index. It uses synthetic noise on three clips, measured on Apple Silicon only.Tests
test_273(script generation), plus unit tests for old JSON andmctd_reach.cargo testpasses.integration_filter_parameters_test.dart, and the push gate (--exclude-tags heavy,gpu) has 2070 passed and 8 skipped.integration_fft3dfilter_determinism_test.darthas new cases for MCTD high and very high withpost. Previews and the lossless encode match exactly, which also confirmspostrelies on FFT3DFilter's patchedmeasure=0default.integration_strength_test.dart: post 6 takes medium from 34.5 to 42.5 dB.mainin to resolve a docs-only conflict with Take a source's subtitles from their own input (fixes #266) #291 (both changes added an ENGINEERING_NOTES entry and a reports-index row) and re-rancargo testand the Flutter push gate.🤖 Generated with Claude Code