Method and system for converting images in computer systems
First Claim
1. A method executed in a computer system for converting an image, the method comprising the steps of:
- receiving an original image to be displayed, the original image including a plurality of pixels, each pixel having a color associated with the pixel;
converting the original image into another image having fewer colors than the original image by;
determining a first gray-scale representation of the pixels in the converted image so that each pixel has a gray-value in the converted image;
determining a second gray-scale representation of the pixels in the converted image so that each pixel is assigned to a gray-level in the converted image, wherein the number of gray-levels in the converted image is equal to the number of colors in the converted image;
determining a color assigned to the pixels in each gray-level in the converted image; and
specifying a representation of the converted image using the determined second gray-scale representation and the determined colors; and
displaying the converted image using the specified representation of the converted image.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and system in computer systems for converting an original image into another image having fewer colors than the original image. This method and system attempt to preserve the contrast of the original image. As a result, this method and system are particularly well-suited for converting images that are relatively small in size. A computer system in which the present invention operates includes a computer connected to a display device and a secondary storage device. An image converter is stored in the secondary storage device for execution by the computer. In operation, the computer receives an original image to be displayed on the display device. The image converter converts the original image into another image having fewer colors than the original image. Lastly, the computer displays the converted image on the display device. In order to convert the original image, the image converter determines which pixels in the original image are opaque in the converted image. For the pixels that are opaque in the converted image, the image converter determines a gray-scale representation of the pixels. For the same pixels, the image converter then determines a black-and-white representation of the pixels. Next, the image converter determines the color assigned to the black pixels in the converted image and the color assigned to the white pixels in the converted image. Lastly, the image converter specifies the representation of the converted image.
-
Citations
35 Claims
-
1. A method executed in a computer system for converting an image, the method comprising the steps of:
-
receiving an original image to be displayed, the original image including a plurality of pixels, each pixel having a color associated with the pixel; converting the original image into another image having fewer colors than the original image by; determining a first gray-scale representation of the pixels in the converted image so that each pixel has a gray-value in the converted image; determining a second gray-scale representation of the pixels in the converted image so that each pixel is assigned to a gray-level in the converted image, wherein the number of gray-levels in the converted image is equal to the number of colors in the converted image; determining a color assigned to the pixels in each gray-level in the converted image; and specifying a representation of the converted image using the determined second gray-scale representation and the determined colors; and displaying the converted image using the specified representation of the converted image. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer program product for converting an image in a computer system, the computer program product comprising:
-
computer readable program code configured to receive an original image to be displayed, the original image including a plurality of pixels, each pixel having a color associated with the pixel; computer readable program code configured to convert the original image into another image having fewer colors than the original image so that the converted image can be displayed including; computer readable program code configured to determine a first gray-scale representation of the pixels in the converted image so that each pixel has a gray-value in the converted image; computer readable program code configured to determine a second gray-scale representation of the pixels in the converted image so that each pixel is assigned to a gray-level in the converted image, wherein the number of gray-levels in the converted image is equal to the number of colors in the converted image; computer readable program code configured to determine a color assigned to the pixels in each gray-level in the converted image; and computer readable program code configured to specify a representation of the converted image using the determined second gray-scale representation and the determined colors; and a computer readable medium in which the computer readable program codes are stored. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25)
-
-
26. A system for converting an image in a computer system, the system comprising:
-
a computer configured to control the operation of the system; a display device connected to said computer configured to display an image; a secondary storage device connected to said computer; and an image converter stored in said secondary storage device and executed by said computer, said image converter being configured to; receive an original image to be displayed, the original image including a plurality of pixels, each pixel having a color associated with the pixel; and convert the original image into another image having fewer colors than the original image so that the converted image can be displayed by; determining a first gray-scale representation of the pixels in the converted image so that each pixel has a gray-value in the converted image; determining a second gray-scale representation of the pixels in the converted image so that each pixel is assigned to a gray-level in the converted image, wherein the number of gray-levels in the converted image is equal to the number of colors in the converted image; determining a color assigned to the pixels in each gray-level in the converted image; and specifying a representation of the converted image using the determined second gray-scale representation and the determined colors. - View Dependent Claims (27, 28, 29, 30, 31, 32, 33, 34, 35)
-
Specification