mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Apply less blur before affine reduction #121
This commit is contained in:
parent
b7c7fc22f3
commit
118b17aa2f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user