Apply less blur before affine reduction #121

This commit is contained in:
Lovell Fuller 2014-11-24 11:52:48 +00:00
parent b7c7fc22f3
commit 118b17aa2f

View File

@ -368,7 +368,7 @@ class ResizeWorker : public NanAsyncWorker {
// Apply Gaussian blur before large affine reductions // Apply Gaussian blur before large affine reductions
if (residual < 1.0) { if (residual < 1.0) {
// Calculate standard deviation // Calculate standard deviation
double sigma = ((1.0 / residual) - 0.5) / 1.5; double sigma = ((1.0 / residual) - 0.4) / 3.0;
if (sigma >= 0.3) { if (sigma >= 0.3) {
// Create Gaussian function for standard deviation // Create Gaussian function for standard deviation
VipsImage *gaussian; VipsImage *gaussian;