This present invention relates to a color-modifying device applied to a color display, more especially, to a color-modifying device using a multi-dimensional color-mapping lookup table to transform an input image to an output image in the display.
A color modifier, applied in a color display, mixes three fundamental colors red, green and blue (denoted RGB) to enrich the image, that is, mixing RGB in a different ratio or different grayscale in a thin film transistor liquid crystal display (denoted TFT-LCD) obtains a various color.
In prior art, the color modifier maps a color to another color by a palette, and the palette is divided into 3 sub-palettes corresponding to 3 fundamental colors respectively. When a mapping maps a fundamental color with an origin grayscale to the fundamental color with another grayscale in the palette, the origin color maps to a new color, that is, the modification is dependent.
A mapping of the palette maps a color denoted (Rx, Gx, Bx) to another color denoted (Ry, Gy, By), and the colors (Rx, Gl, Bk) with different Gl and Bk map to (Ry, Gl, Bk), in the same reason, (Rl, Gx, Bl) to (Rl, Gy, Bk) and (Rl, Gk, Bx) to (Rl, Gk, By), that is to say a mapping affects 3×256×256 colors.
The objective of this present invention is to provide a device with an independent mapping for each color.
Another objective of this present invention is to introduce the method using the device to modify a color to a new color.
The invention discloses a color transformer applied to a colorful display to modify the color of an image to achieve the aforesaid objectives, and the color transformer includes a memory, a data controller, connected to the memory, building the color-mapping lookup table, saving the color-mapping lookup table in the memory and transforming an input image data to an output image data according to the color-mapping lookup table and an image processor, connected to the data controller, receiving the input image data and exporting the output image data, wherein the color-mapping lookup table is a multi-dimensional color lookup table.
The invention discloses another color transformer applied to a colorful display to modify the color of an image to achieve the aforesaid objectives, and the color transformer comprises a memory, a data controller, connected to the memory, building a color-mapping lookup table, saving the color-mapping lookup table in the memory, transforming an input image data to an output image data and exporting the output image data and an image processor, connected to the data controller, receiving the input image data and delivering the input image data to the data controller, wherein the color-mapping lookup table is a multi-dimensional color lookup table.
This present invention discloses a method using the above color transformers to achieve the aforementioned objectives, which method includes building a color-mapping lookup table by a data controller, wherein the color-mapping lookup table includes many index keys and index values and each index key is correspondent to an index value, saving the color-mapping lookup table to a memory and reading the color-mapping lookup table from the memory by the data controller flexibly, transforming an input image data to an output image data by the data controller, wherein the input image data acts as the index key to lookup the correspondent index value to be the output image data and exporting the output image data.
A 3-dimensional color coordinate system with 3 axes representing 3 fundamental colors red, green and blue respectively describes a color by a coordinate (R, G, B). In generally, a fundamental color has 256 grayscales in a TFT-LCD, that is to say all colors in a color TFT-LCD may be descript by 256×256×256 discrete points in the color coordinate system.
A transformation of color means a color maps to another color, that is, a point maps to another point in 3-dimensional color coordinate system, and the origin color points construct a variable region (or called a Domain) and the mapping color points do a value region (or called a Range). The point called an index key in Domain and an index value in Range, and the index key and value constructs a mapping, and all mapping construct a color lookup table.
A memory 212 is connected to a data controller 211, which builds a 3-dimensional LUT, saves the LUT in the memory 212, transforms an input image data to an output image data and exports the output image data to a panel 230 connected to the data controller 211. An image processor 220 connected to the data controller 211 receives the image data and delivers the input image data to the data controller 211.
Step S111 is to build a 3-dimensional color lookup table (LUT) means the data controller 111 in
Step S112 is to save the 3-dimensional color LUT means the data controller 111 in
Step S121 is to transform an input image data to an output image data means the image processor 120 in
Step S122 is to export the output image data means the data controller 111 in
For convenience, a fundamental color has 256 grayscales and the display uses 3 fundamental colors to represent the color, but this invention should apply to more grayscales of a fundamental color and more fundamental colors, so more grayscales and more fundamental colors should included in this invention.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that other modifications and variation can be made without departing the spirit and scope of the invention as claimed.