A technique for generating high-resolution bitmaps from low-resolution
bitmaps. A low-resolution bitmap is magnified to form a magnified image.
Edge detection is performed on the magnified image to find high contrast
edges. A plurality of image patches of the magnified image are generated.
These images patches are analyzed by performing connected components
analysis on each of them using the high contrast edges to produce a
plurality of foreground and background decisions determining whether a
portion of an image patch is a background or a foreground region. Then
the contrast of one or more pixels in each of the plurality of image
patches is enhanced based on the foreground and background decisions.
Finally, the system and method of the invention combines the luminance of
the enhanced output pixels with the color values generated by the
magnification algorithm. This produces a high-resolution bitmap from the
contrast-enhanced pixels.