Restore linear filtering on cinematic images but avoid seams