CN100471283C - Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image - Google Patents

Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image Download PDF

Info

Publication number
CN100471283C
CN100471283C CNB2006101098337A CN200610109833A CN100471283C CN 100471283 C CN100471283 C CN 100471283C CN B2006101098337 A CNB2006101098337 A CN B2006101098337A CN 200610109833 A CN200610109833 A CN 200610109833A CN 100471283 C CN100471283 C CN 100471283C
Authority
CN
China
Prior art keywords
color
image
index value
array
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2006101098337A
Other languages
Chinese (zh)
Other versions
CN1917654A (en
Inventor
庄振威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2006101098337A priority Critical patent/CN100471283C/en
Publication of CN1917654A publication Critical patent/CN1917654A/en
Application granted granted Critical
Publication of CN100471283C publication Critical patent/CN100471283C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The method comprises: in the first, reading a pixel and a fixed index value of color palette from image; then reading a color transform index value of an array element taking said index value of color palette as its label from the color transform index array; then, reading several color harmony values of the array element taking the color transform index value as their labels from a palette array; finally, selecting display the color of the pixel blended out with those color harmony values. The invention also reveals an image color transformer.

Description

Colors of image display packing, transforming colors of image method and convertor of colors of image
Technical field
The invention relates to a kind of colors of image display packing, especially when image color transformed, the versicolor array by inquiry one recording image then is to show the method for colors of image after the conversion.
Background technology
Since the development of digitlization idea, people grow with each passing day for the demand of visual perception's effect of multi-medium data.Therefore the research of all multi-vendor input image cartoon techniques has the abundant colors transform effect in the hope of making image.
See also Fig. 1, it is the schematic diagram of existing show image color, and wherein an image comprises a plurality of image block A, B, C and D, and each image block is made up of several pixels (pixel).When desiring the color of show image, then read the pairing color saucer index value of each pixel I in the image earlier, so as to several color harmony values among index color saucer (palette) the array P one by one, several color harmony values that can go out according to each pixel institute index at last, show the color of forming each pixel in the image, wherein these color harmony values comprise that red blending value R, green blending value G and blue blending value B can be in order to the different colors of the various color saucer index value I institute index of mixing colours out.In addition, have 16 kinds of color saucer index value I at least in that the display mode of 16 looks next, but each color saucer index value I index goes out a kind of color, therefore every kind of color saucer index value I has 4 positions at least, just can express 16 kinds of colors.
Color with show image block C is the example explanation.When desiring the color of show image block C, if the color saucer index value I that each pixel read from image block C is 15, then go out the content (that is x, y and z) of the 15th field in the color saucer, again according to the indicated redness of this content, the green mixed proportion pairing color of mixing colours out with blueness according to color saucer index value I index.If when mixing colours out to yellow according to the content of the 15th field among the color saucer array P, then each pixel among the show image block C is yellow.
In general animation, and though on the figure or on the color usually all through design in advance, play back again to reach the effect of various variation.When if desire is transformed to redness with the color of image by yellow, then certainly will be in advance with each pixel in the image be stored in the memory respectively corresponding to yellow with red toning index value, so that when playing, can read yellow with red toning index value in regular turn, index goes out yellow with the red color harmony value of mixing colours out immediately, so that the color of image can be transformed to redness by yellow.
Yet, when desire is play the animation of abundant more variation, must store the image frame of more different colors, therefore the number of the toning index value of required storage certainly will increase, and needs more storage space.When for example handling 640 * 480 image under the display mode of 16 looks, then every image frame then need store 640 * 480 color saucer index values.When desiring the color of conversion image frame, then must store 640 * 480 color saucer index value again, and each color saucer index value needs 4 positions to store, and therefore then needs the individual position of additional storage 1228800 (=640 * 480 * 4) each time when image frame conversion color.This shows that prior art can be used a large amount of storage space and cause cost to increase, and then the competitiveness as electronic products such as DVD audio and video players is descended.
Summary of the invention
In view of this, the present invention discloses a kind of colors of image display packing, transforming colors of image method and its device, be the effect that reaches demonstration or conversion colors of image according to inquiry one color transformed index array,, make into instinct and descend effectively so as to reducing the use amount of storage space.
The present invention discloses a kind of colors of image display packing.The colors of image display packing at first reads a color saucer index value of fixing of the pixel in the image.Then read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array.And then read several color harmony values of the array element that is label with this color transformed index value in the color saucer array.Show the color that the color of this pixel is mixed colours out for these color harmony values at last.
Colors of image display packing of the present invention, wherein this color transformed index array is the index information that comprises the color saucer array of display color that this image is desired.
Colors of image display packing of the present invention more comprises: when this pixel color transformed, then according to this color saucer index value to read this color transformed index value, wherein be according to the color of this color transformed index value that is read with this pixel of conversion.
Colors of image display packing of the present invention wherein is the array element that is label by this color transformed index array with this color saucer index value, so as to reading this color transformed index value that has upgraded.
Colors of image display packing of the present invention wherein is that the color transformed index array by another storage is that label is to read this color transformed index value with this color saucer index value.
The present invention also discloses a kind of transforming colors of image method, in order to the color of an image of several pixels of conversion tool.The transforming colors of image method then reads a fixing color saucer index value of this pixel at first when the pixel in this image color transformed.Then read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array.Read several color harmony values of the array element that is label with this color transformed index value in the color saucer array then.The color that the color of last this pixel of conversion is mixed colours out for these color harmony values.
Transforming colors of image method of the present invention, wherein this color transformed index array is the index information that comprises the color saucer array of next desire conversion color of this image.
The present invention also discloses a kind of convertor of colors of image, in order to the color of the image of several pixels of conversion tool, and each pixel corresponding one fixing color saucer index value separately wherein, convertor of colors of image comprises a microprocessor and comprises a storage device at least.Storage device is in order to store these color saucer index values, several color transformed index arrays and a color saucer array.And microprocessor is couple at least one storage device.During the pixel of microprocessor in handling this image color transformed, then read a color saucer index value of this pixel, read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array, read several color harmony values of the array element that is label with this color transformed index value in the color saucer array, the color of being mixed colours out for these color harmony values so as to the color of this pixel of conversion.
Convertor of colors of image of the present invention, wherein this color transformed index array is the index information that comprises the color saucer array of next desire conversion color of this image.
Convertor of colors of image of the present invention, wherein this microprocessor is at the color of this pixel once more during conversion, then read another color transformed index value of the array element that is label with this color saucer index value in another color transformed index array, reading in this color saucer array with this another color transformed index value is another color harmony value of the array element of label, the color of being mixed colours out for this another color harmony value so as to the color of this pixel of conversion once more.
Colors of image display packing of the present invention, transforming colors of image method and convertor of colors of image need not come the color saucer index value of each pixel of additional storage at each transforming colors of image, and then can significantly reduce the use amount of storage space.
Description of drawings
Fig. 1 is the schematic diagram for existing show image color;
Fig. 2 is the calcspar for convertor of colors of image of the present invention;
Fig. 3 is the schematic diagram for the conversion colors of image;
Fig. 4 is the flow chart for colors of image display packing of the present invention;
Fig. 5 is the flow chart for transforming colors of image method of the present invention.
Embodiment
See also Fig. 2, it is the calcspar of convertor of colors of image of the present invention.Convertor of colors of image 2 comprises a storage device 20 and a microprocessor 22 (micro-processor), wherein storage device 20 is in order to store several color saucer index values, several color transformed index arrays and a color saucer array, microprocessor 22 then is coupled to storage device 20, so as to reading the data of the required usefulness of conversion color.In one embodiment of this invention, storage device 20 can be a read-only access to memory (ROM) or a flash memory (Flash) etc., and microprocessor 22 can be a CPU (CPU) or a digital signal processor (DSP) etc.
Microprocessor 22 is when handling a pixel color transformed, then by a color saucer index value that reads this pixel in the storage device 20, then again by a color transformed index value that reads the array element that is label with this color saucer index value in the color transformed index array in the storage device 20, the color transformed index value in the wherein color transformed index array promptly is the color saucer array index information of conversion color that record is desired.Afterwards, several color harmony values of the array element that it is label with this color transformed index value in this color saucer array that 22 of microprocessors can read, the color after this pixel conversion of mixing colours out.And when this pixel is desired once more the conversion color, then microprocessor 22 is once more by the same color saucer index value that reads this pixel in the storage device 20, then again by another the color transformed index value that reads the array element that is label with this color saucer index value in another color transformed index array in the storage device 20.Afterwards, it is several color harmony values of the array element of label that 22 of microprocessors read in this color saucer array with this another color transformed index value, and this pixel of mixing colours out is the color after the conversion once more.As from the foregoing, the color of this pixel before each conversion with conversion after the time, then microprocessor 22 all is a fixing color saucer index value that reads this pixel, the corresponding color transformed index array of collocation again is so as to the color of this pixel of conversion.The rest may be inferred down, and microprocessor 22 can be handled each pixel in the image one by one, comes the color of each pixel in the conversion image, so as to reaching the effect of transforming colors of image.
Imagery zone C with 4 * 4 among Fig. 3 is that example illustrates, wherein imagery zone C is made up of 16 pixels.If the color saucer index value of all pixels of imagery zone C is 15, it can make microprocessor 22 index go out the color transformed index value of the 15th field among the color transformed index array CA1, this moment, color transformed index value was 15, go out 3 color harmony values (x, y and z) of the 15th field among the color saucer array P again according to color transformed index value 15 index, so as to the redness of mixing colours out.If desire is transformed to yellow with this imagery zone C by redness, the color of microprocessor 22 this moment each pixel in conversion imagery zone C is then once again according to 15 these color saucer index values, the 15th field so as to another color transformed index array CA2 of index, can obtain this moment is another color transformed index value of 1,22 of last microprocessors are according to 1 this another color transformed index value, come index to go out 3 color harmony values (p, q and r) of the 1st field among the color saucer array P, be yellow so as to each pixel among the yellow conversion imagery zone C that mixes colours.The rest may be inferred down, the color of each pixel among the imagery zone C at every turn before conversion with conversion after, then microprocessor 22 is according to a color saucer index value (being 15 at above-mentioned example) of fixing that reads each pixel, so as to reaching the effect of each pixel color of conversion.
The array element number of above-described color transformed index array is at least color display mode institute can the display color number, and the bits number of color transformed index value is at least and can represents that color display mode institute can the display color number.For example in the following time of display mode of 16 looks, the array element number of color transformed index array is at least 16, just can correspond to 16 kinds of colors, represents 16 kinds of colors and color transformed index value is at least 4 ability.When so prior art is handled 640 * 480 image under the display mode of 16 looks, each time the conversion colors of image then must additional storage 640 * 480 4 color saucer index value, therefore need individual position, 1228800 (=640 * 480 * 4) altogether.And the present invention is when conversion colors of image each time, only need the color transformed index array of 64 of additional storage (4 positions are multiplied by 16 array elements) position, and need not store extra 640 * 480 color saucer index values, and then can significantly reduce the use amount of storage space.
See also Fig. 4, it is the flow chart of colors of image display packing of the present invention.The colors of image display packing at first in step S40, reads a color saucer index value of fixing of the pixel in the image.Then in step S42, read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array, wherein the color transformed index value of color transformed index array comprises the index information of the color saucer array of display color that this image is desired, and the array element number of color transformed index array is at least the color number that the color display mode can show.In addition, the bits number of color transformed index value is at least the color number that can represent that the color display mode can show.In step S44, read several color harmony values of the array element that is label with this color transformed index value in the color saucer array then.At last in step S46, show the color that the color of this pixel is mixed colours out for these color harmony values.In addition, when this pixel color transformed, then equally according to this fixing color saucer index value to read color transformed index value once more.In one embodiment of this invention, this color transformed index value this color transformed index array of can serving as reasons is a label with this color saucer index value, and reading also can the serve as reasons color transformed index array of another storage of the array element value upgraded or this color transformed index value is the value that label reads with this fixing color saucer index value.
See also Fig. 5, it is the flow chart of transforming colors of image method of the present invention.The transforming colors of image method at first in step S50, reads a color saucer index value of fixing of the pixel in the image.Then in step S52, read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array, wherein color transformed index array comprises this image, and next desires the index information of the color saucer array of conversion color.In step S54, read several color harmony values of the array element that is label with this color transformed index value in the color saucer array then.At last in step S56, the color that the color of this pixel of conversion is mixed colours out for these color harmony values.
In sum, the method and the device thereof of image conversion color proposed by the invention, when each transforming colors of image, then each pixel only need read a fixing color saucer index value and comes color transformed index value in the index color color conversion index array, come display color according to the resulting color harmony value of color transformed index value more subsequently, can reach versicolor effect, and need not come the color saucer index value of each pixel of additional storage, and then can significantly reduce the use amount of storage space at each transforming colors of image.
The above only is preferred embodiment of the present invention; so it is not in order to limit scope of the present invention; any personnel that are familiar with this technology; without departing from the spirit and scope of the present invention; can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.
Being simply described as follows of symbol in the accompanying drawing:
2: convertor of colors of image
20: storage device
22: microprocessor

Claims (10)

1. a colors of image display packing is characterized in that, is that this colors of image display packing comprises in order to the color of an image that shows a plurality of pixels of tool:
Read a color saucer index value of fixing of the pixel in this image;
Read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array;
Read a plurality of color harmony values of the array element that is label with this color transformed index value in the color saucer array; And
Show the color that the color of this pixel is mixed colours out for those color harmony values.
2. colors of image display packing according to claim 1 is characterized in that, this color transformed index array is the index information that comprises the color saucer array of display color that this image is desired.
3. colors of image display packing according to claim 1 is characterized in that, more comprises:
When this pixel color transformed, then according to this color saucer index value to read this color transformed index value, wherein be according to the color of this color transformed index value that is read with this pixel of conversion.
4. colors of image display packing according to claim 3 is characterized in that, is the array element that is label by this color transformed index array with this color saucer index value, so as to reading this color transformed index value that has upgraded.
5. colors of image display packing according to claim 3 is characterized in that, is that the color transformed index array by another storage is that label is to read this color transformed index value with this color saucer index value.
6. a transforming colors of image method is characterized in that, is the color in order to an image of a plurality of pixels of conversion tool, and this transforming colors of image method comprises:
When the pixel in this image color transformed, then read a fixing color saucer index value of this pixel;
Read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array;
Read a plurality of color harmony values of the array element that is label with this color transformed index value in the color saucer array; And
The color that the color of this pixel of conversion is mixed colours out for those color harmony values.
7. transforming colors of image method according to claim 6 is characterized in that, this color transformed index array is the index information that comprises the color saucer array of next desire conversion color of this image.
8. a convertor of colors of image is characterized in that, is the color in order to the image of a plurality of pixels of conversion tool, the fixing color saucer index value of each pixel corresponding separately wherein, and this convertor of colors of image comprises:
One storage device, it is to store this color saucer index value, a plurality of color transformed index array and a color saucer array; And
One microprocessor, be coupled to this at least one storage device, when this microprocessor is a pixel color transformed in handling this image, then read a color saucer index value of this pixel, read a color transformed index value of the array element that is label with this color saucer index value in the color transformed index array, read a plurality of color harmony values of the array element that is label with this color transformed index value in this color saucer array, the color of being mixed colours out for those color harmony values so as to the color of this pixel of conversion.
9. convertor of colors of image according to claim 8 is characterized in that, this color transformed index array is the index information that comprises the color saucer array of next desire conversion color of this image.
10. convertor of colors of image according to claim 8, it is characterized in that, this microprocessor is at the color of this pixel once more during conversion, then read another color transformed index value of the array element that is label with this color saucer index value in another color transformed index array, reading in this color saucer array with this another color transformed index value is another color harmony value of the array element of label, the color of being mixed colours out for this another color harmony value so as to the color of this pixel of conversion once more.
CNB2006101098337A 2006-08-16 2006-08-16 Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image Active CN100471283C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101098337A CN100471283C (en) 2006-08-16 2006-08-16 Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101098337A CN100471283C (en) 2006-08-16 2006-08-16 Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image

Publications (2)

Publication Number Publication Date
CN1917654A CN1917654A (en) 2007-02-21
CN100471283C true CN100471283C (en) 2009-03-18

Family

ID=37738517

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101098337A Active CN100471283C (en) 2006-08-16 2006-08-16 Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image

Country Status (1)

Country Link
CN (1) CN100471283C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572678B (en) 2014-03-14 2024-03-12 Vid拓展公司 Method, encoding apparatus and encoder for palette encoding and decoding video data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1107242A (en) * 1994-01-25 1995-08-23 任天堂株式会社 Changing apparatus for game machine of use
US5517334A (en) * 1992-04-14 1996-05-14 Electronics For Imaging, Inc. Indexed processing of color image data
CN1258059A (en) * 1998-12-18 2000-06-28 索尼公司 Image processing apparatus and image processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5517334A (en) * 1992-04-14 1996-05-14 Electronics For Imaging, Inc. Indexed processing of color image data
CN1107242A (en) * 1994-01-25 1995-08-23 任天堂株式会社 Changing apparatus for game machine of use
CN1258059A (en) * 1998-12-18 2000-06-28 索尼公司 Image processing apparatus and image processing method

Also Published As

Publication number Publication date
CN1917654A (en) 2007-02-21

Similar Documents

Publication Publication Date Title
DE69630747T2 (en) Color image processing system
US7629980B2 (en) Color-revealing method, color-changing method and color-processing device
CN101388950B (en) Content-adaptive contrast improving method and apparatus for digital image
CN107111771A (en) Quick Response Code generating means, two-dimensional code generation method and program
CN103177701A (en) Multi-primary liquid crystal display
US7773259B2 (en) Hue adjusting device
US5727090A (en) Method of storing raster image in run lengths havng variable numbers of bytes and medium with raster image thus stored
US9406276B2 (en) Systems and methods for combining images into a file using multiple color palettes
JP2004054880A (en) Method for executing color gamut compression
JP2005210208A (en) Image processor, image processing method, and program
US7808686B2 (en) Picture editor
CN100471283C (en) Method of displaying colors of image, method of transforming colors of image, and convertor of colors of image
JP2015523593A5 (en)
CN109493826A (en) Electronic console border gain system and method
CN101867829B (en) Color-image representative color decision apparatus and method of controlling operation thereof
TW414883B (en) Improved dithering method and apparatus using ramp probability logic
CN1574882B (en) Image file processing method and image file processing apparatus
US20020109702A1 (en) Color display method and semiconductor integrated circuit using the same
JP4532682B2 (en) Method and apparatus for converting color image data under different light sources, and medium recording program for color image data conversion
US20130265321A1 (en) Systems and methods for a common image data array file
US7843603B2 (en) Image processing apparatus
EP0612054A1 (en) Invisible marking of electronic images
CN100437743C (en) Display color adjust
CN102542270B (en) Operatively process the method and system of color image data
US6278438B1 (en) Method of displaying digital photograph based bitmaps

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant