Using MDegrain with a dct>0 (set in MAnalyze) the thresholds thSAD1, thSAD2 and thSCD1 are blocksize dependent.
Expectation:
Follwing the documentation: "The provided thSAD value is scaled to a 8x8 blocksize."
Thus the thresholds should not dependent on the blocksize.
Solution:
remove explicit multiplication of the sad value with variable nBlkSizeX in function PlaneOfBlocks::LumaSADx in each case statement