Full threadpfrench42·I use the algorithm for fast image resizing as well. The error term gives you the blend value for two adjacent pixels.View on HN