mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Ensure gaussian blur is applied before lbb interpolator #289
This commit is contained in:
parent
84fd1caa46
commit
5dfeaa9fd1
@ -530,9 +530,7 @@ class PipelineWorker : public AsyncWorker {
|
|||||||
double residual = (xresidual + yresidual) / 2.0;
|
double residual = (xresidual + yresidual) / 2.0;
|
||||||
// Apply Gaussian blur before large affine reductions with non-linear interpolators
|
// Apply Gaussian blur before large affine reductions with non-linear interpolators
|
||||||
if (residual < 1.0 && (
|
if (residual < 1.0 && (
|
||||||
baton->interpolator == "bicubic" ||
|
baton->interpolator == "bicubic" || baton->interpolator == "lbb" || baton->interpolator == "nohalo"
|
||||||
baton->interpolator == "locallyBoundedBicubic" ||
|
|
||||||
baton->interpolator == "nohalo"
|
|
||||||
)) {
|
)) {
|
||||||
// Calculate standard deviation
|
// Calculate standard deviation
|
||||||
double sigma = ((1.0 / residual) - 0.4) / 3.0;
|
double sigma = ((1.0 / residual) - 0.4) / 3.0;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 65 KiB |
Loading…
x
Reference in New Issue
Block a user