摘要:
A method of magnifying a digital image based on an edge map. The image has many original pixels, with each pixel having a level, and the locations of the pixels having a resolution. The method to magnify the image includes the steps of producing an edge map with many boundaries from the digital image, projecting the edge map onto the digital image, generating one or more additional pixels in locations among the original pixels by manipulating the levels of one or more original pixels without crossing any boundaries set by the edge map, and expanding the distances between the pixels so that the resolution of the locations of the pixels becomes the same as the original pixels. In another preferred embodiment, the original digital image is enlarged to the size of the magnified image by extending proportionally the locations of the original pixels. Then the edge map is produced and projected onto the enlarged image to generate additional pixels. After the step of generating, the resolution of the locations of the pixels becomes the same as the original pixels.
摘要:
A method and apparatus for converting a binary image into a gray scale image includes a pipeline having a number of nearly identical stages. At each stage, modifications occur to provide the gray scale image by following a sequence of steps including: (1) determining a sample mean value representing an averaging of pixel values within a neighborhood containing a selected pixel; (2) determining a weighted variation value representing pixel value variations within the neighborhood; and (3) adjusting the pixel value of the selected pixel toward the sample mean value if the difference between the pixel value and the sample mean value exceeds the weighted variation value. The adjustment to the pixel value is in the direction of the sample mean value. Preferably, the weighting of the variation value is different at each stage. At each stage along the pipeline, low pass filtering is provided to remove high frequency noise generated by the process.