摘要 |
A method of correcting out-of-range 8-bit pixel values, which should range from 0 to 255 by successively finding an out-of-range pixel, correcting it by adding (subtracting) an amount to restore that value to 0 (255), and then subtracting (adding) an equal amount to an adjacent pixel or pixels. An alternative, most useful for text, is to find an out-of-range pixel, and then replace it, and all adjacent pixels that are within a predetermined limit of 0 (255), with 0 (255).
|