Be less restrictive regarding variance in pass 2 of dual demosaic auto contrast threshold calculation

This commit is contained in:
heckflosse
2018-12-01 21:18:12 +01:00
parent bb428421f2
commit f38f0b0ef7

View File

@@ -282,7 +282,7 @@ void buildBlendMask(float** luminance, float **blend, int W, int H, float &contr
Lum[i][j] = luminance[i + minY][j + minX];
}
}
contrastThreshold = (pass == 0 || minvar <= 2.f) ? calcContrastThreshold(Lum, Blend, tilesize, tilesize) / 100.f : 0.f;
contrastThreshold = (pass == 0 || minvar <= 4.f) ? calcContrastThreshold(Lum, Blend, tilesize, tilesize) / 100.f : 0.f;
break;
}
}