WolframRhodium / muvsfunc

Muonium's VapourSynth functions
75 stars 19 forks source link

dfttestMC with mdg=True makes image brighter #28

Closed Ryuukishi closed 3 years ago

Ryuukishi commented 4 years ago

link to comparison

The code I used to replicate the issue:

src16 = core.fmtc.bitdepth(src,bits=16)
denoise = muf.dfttestMC(src16,mdg=True)
denoise.set_output()

I've tested with multiple sources and they all have the same issue when mdg=True. Any ideas why?

kgrabs commented 4 years ago

It's because DitherLumaRebuild is being used on the mv.Degrain super clip. Rebuild clips should be used for Analyse/Recalculate super clips and the clip-to-be-processed should be used for super clips used by Degrain, Compensate and the like. Also, Analyse is the only filter that uses more than one level so the other super clips can use levels=1 as well.

WolframRhodium commented 4 years ago

Sorry for late response, it should be fixed now. Thanks for the report and the solution.