Paeth
Paeth is the name of a predictive filter used in the Portable Network Graphics (PNG) image compression format. It is one of the five filters designed to reduce redundancy by predicting pixel values from neighboring pixels, thereby producing smaller residuals that are easier to compress.
The Paeth predictor estimates the current pixel value from three already decoded neighbors: a, the left pixel;
In PNG, Paeth is used as Filter Type 4. Each scanline can be encoded with a different
The Paeth predictor is particularly effective on natural images with smooth gradients or repeating patterns, where