Note: Instead of using the exact error, the error could have been weighted by factors such as the following: (a) a predetermined constant intended to amplify error or suppress it; (b) a value dependent upon the pixel value; (c) a value dependent upon a measure of the image such as local variance, density, and gradient; (d) a value dependent upon the spatial location of the pixel, e.g., could be pe