feat: adjust noise reduction intensity mapping

This commit is contained in:
Hinnka committed 2026-05-17 13:11:37 +08:00
1 parent 9a94fe75db
commit 3a85ffa34d
2 files changed
+4 -4

No files matched your search

@@ -1156,8 +1156,8 @@ class LutImageProcessor {
val texelW = 1.0f / width
val texelH = 1.0f / height
// 将降噪强度映射到合理范围 (0.001 ~ 0.1)
val h = noiseReduction
val ch = chromaNoiseReduction
val h = noiseReduction * noiseReduction
val ch = chromaNoiseReduction * chromaNoiseReduction
val s = 0.015f
val o = 0.001f
@@ -1164,8 +1164,8 @@ class RawDemosaicProcessor {
val denoiseValue = denoiseValue ?: 0f
val chromaDenoiseValue = chromaDenoiseValue ?: 0f
val h = denoiseValue
val ch = chromaDenoiseValue + 0.5f
val h = denoiseValue * denoiseValue
val ch = chromaDenoiseValue * chromaDenoiseValue + 0.5f
PLog.d(TAG, "Dynamic BM3D: s=$s o=$o, h=$h ch=$ch iso=${metadata.iso}")
val identityMatrix = FloatArray(16)