CN105900422B - Method for encoding images, device and image processing equipment based on three-dimensional palette - Google Patents

Method for encoding images, device and image processing equipment based on three-dimensional palette Download PDF

Info

Publication number
CN105900422B
CN105900422B CN201480072693.3A CN201480072693A CN105900422B CN 105900422 B CN105900422 B CN 105900422B CN 201480072693 A CN201480072693 A CN 201480072693A CN 105900422 B CN105900422 B CN 105900422B
Authority
CN
China
Prior art keywords
information
dimensional
color
index
pixel
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
CN201480072693.3A
Other languages
Chinese (zh)
Other versions
CN105900422A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Publication of CN105900422A publication Critical patent/CN105900422A/en
Application granted granted Critical
Publication of CN105900422B publication Critical patent/CN105900422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

A kind of method for encoding images based on three-dimensional palette, device and image processing equipment.Described image coding method includes:To generate palette three-dimensional color information using multiple pixels of pallet mode, and to generate non-palette three-dimensional color information using each pixel of non-pallet mode;The colouring information of image-region to be encoded is generated based on palette three-dimensional color information and non-palette three-dimensional color information;Generate the Pixel Information of image-region to be encoded;Coded image area is treated based on colouring information and Pixel Information and carries out encoding abit stream.Not only coding compression ratio can be improved by using pallet mode and non-pallet mode, and can be indexed by three-dimensional color with three-dimensional component table to improve coding compression ratio, further obtain smaller bit cost.

Description

Method for encoding images, device and image processing equipment based on three-dimensional palette
Technical field
The present invention relates to a kind of graphics technology field, more particularly to a kind of Image Coding side based on three-dimensional palette Method, device and image processing equipment.
Background technology
Coding based on palette (Palette-based) obtains in graphics technology (especially video coding technique) Extensive use is arrived.In an encoding process, for image-region to be encoded, such as coding unit (CU, a coding Unit), comprising multiple pixels with color-values (for example with RGB patterns, the RGB with 24 bits);In order to reduce use , generally can be by the data directory of pixel sensing palette in the memory capacity of storage bitmap image.It is each during decoding The color-values of output pixel can be determined by searching the palette indexed with corresponding data.
Wherein, palette is a series of set of pixel values (pixel value), is located at for pixel value in palette Pixel, it is only necessary to using the pixel value in palette corresponding pixel index (pixel index).It is possible thereby to only by palette And the index corresponding to the pixel in coding unit carries out encoding abit stream, it is possible to reduce the bit cost (bit of coding cost)。
It is listed below for understanding the present invention and the beneficial document of routine techniques, is incorporated them into herein by quoting In, as illustrating completely herein.
[non-patent literature 1]:JCTVC-O0182.Xun Guo, etc, Microsoft, Major-color-based screen content coding.
[non-patent literature 2]:JCTVC-N0249.Liwei Guo, etc, Qualcomm, Modified Palette Mode for Screen Content Coding.
It should be noted that the introduction to technical background above be intended merely to it is convenient technical scheme is carried out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Can not merely because these schemes the present invention Background section is set forth and thinks that above-mentioned technical proposal is known to those skilled in the art.
The content of the invention
At present, there is the technical side being indicated using three-dimensional palette (triplet palette) to colouring information Case.But inventor has found:The current technical scheme based on three-dimensional palette can not realize optimal coding, it is impossible to enter One step improves coding compression ratio to obtain smaller bit cost.
The embodiment of the present invention provides a kind of method for encoding images based on three-dimensional palette, device and image procossing and set It is standby;Coding compression ratio can further be improved to obtain smaller bit cost.
One side according to embodiments of the present invention, there is provided a kind of method for encoding images based on three-dimensional palette, institute Stating method for encoding images includes:
To use multiple pixels of pallet mode to generate palette three-dimensional color information in image-region to be encoded, and To generate non-palette three-dimensional color information using each pixel of non-pallet mode;
The figure to be encoded is generated based on the palette three-dimensional color information and the non-palette three-dimensional color information As the colouring information in region, wherein the colouring information includes three-dimensional color index information and for per the one-dimensional face generated respectively Color and index corresponding informance;
Generate the Pixel Information of the image-region to be encoded, wherein the Pixel Information include coding mode information and The pixel index information generated by multiple pixels using pallet mode;
Encoding abit stream is carried out to the image-region to be encoded based on the colouring information and the Pixel Information.
Second aspect according to embodiments of the present invention, there is provided a kind of picture coding device based on three-dimensional palette, institute Stating picture coding device includes:
Initial information generation unit, it is to generate palette using multiple pixels of pallet mode in image-region to be encoded Three-dimensional color information, and to generate non-palette three-dimensional color information using each pixel of non-pallet mode;
Colouring information generation unit, based on the palette three-dimensional color information and the non-palette three-dimensional color information The colouring information of the image-region to be encoded is generated, wherein the colouring information includes three-dimensional color index information and is every The one-dimensional color generated respectively and index corresponding informance;
Pixel Information generation unit, the Pixel Information of the image-region to be encoded is generated, wherein the Pixel Information bag Include coding mode information and the pixel index information generated by multiple pixels using pallet mode;
Stream encryption unit, bit is carried out to the image-region to be encoded based on the colouring information and the Pixel Information Stream encryption.
3rd aspect according to embodiments of the present invention, there is provided a kind of image processing equipment, described image processing equipment bag Include:
Picture coding device as described above based on three-dimensional palette;And
Picture decoding apparatus, bit stream is decoded to obtain image.
Another aspect according to embodiments of the present invention, there is provided a kind of computer-readable program, wherein when in image procossing When described program is performed in equipment, described program causes computer performs in described image processing equipment to be based on as described above The method for encoding images of three-dimensional palette.
Another aspect according to embodiments of the present invention, there is provided a kind of storage medium for being stored with computer-readable program, Wherein described computer-readable program causes computer performs in image processing equipment to be based on three-dimensional palette as described above Method for encoding images.
The beneficial effect of the embodiment of the present invention is, to generate palette three-dimensional face using multiple pixels of pallet mode Color information and the non-palette three-dimensional color information of each pixel generation for the non-pallet mode of use, to obtain figure to be encoded As the colouring information in region;And the Pixel Information of the generation image-region to be encoded;Based on colouring information and Pixel Information Encoding abit stream is carried out to the image-region to be encoded.Thus, not only can be by using pallet mode and non-palette Pattern improves coding compression ratio, and can be indexed by three-dimensional color and three-dimensional component table improve coding compression ratio, enters One step obtains smaller bit cost.
With reference to following explanation and accompanying drawing, only certain exemplary embodiments of this invention is disclose in detail, specifies the original of the present invention Reason can be in a manner of adopted.It should be understood that embodiments of the present invention are not so limited in scope.In appended power In the range of the spirit and terms that profit requires, embodiments of the present invention include many changes, modifications and are equal.
The feature for describing and/or showing for a kind of embodiment can be in a manner of same or similar one or more Used in individual other embodiment, it is combined with the feature in other embodiment, or substitute the feature in other embodiment.
It should be emphasized that term "comprises/comprising" refers to the presence of feature, one integral piece, step or component when being used herein, but simultaneously It is not excluded for the presence or additional of one or more further features, one integral piece, step or component.
Brief description of the drawings
Many aspects of the present invention may be better understood with reference to following accompanying drawing.Part in accompanying drawing is not proportional paints System, and it is intended merely to show the principle of the present invention.For the ease of showing and describing some parts of the present invention, corresponded in accompanying drawing Part may be exaggerated or minimized.
The present invention an accompanying drawing or a kind of embodiment described in element and feature can with it is one or more The element and feature shown in other accompanying drawings or embodiment is combined.In addition, in the accompanying drawings, similar label represents several attached Corresponding part in figure, and may be used to indicate the corresponding component used in more than one embodiment.
Fig. 1 is a schematic flow sheet of the method for encoding images of the embodiment of the present invention;
Fig. 2 is an example schematic of the coding unit of the embodiment of the present invention;
Fig. 3 is an exemplary plot of the priming color information of the embodiment of the present invention;
Fig. 4 is an exemplary plot of the colouring information of the embodiment of the present invention;
Fig. 5 is an exemplary plot of the coding mode of the embodiment of the present invention;
Fig. 6 is an exemplary plot of the pixel index information of the embodiment of the present invention;
Fig. 7 is another exemplary plot of the priming color information of the embodiment of the present invention;
Fig. 8 is another exemplary plot of the colouring information of the embodiment of the present invention;
Fig. 9 is the exemplary plot being predicted to three subscales shown in Fig. 8;
Figure 10 is a composition schematic diagram of the code device of the embodiment of the present invention;
Figure 11 is a composition schematic diagram of the image processing equipment of the embodiment of the present invention.
Embodiment
Referring to the drawings, will be apparent by following specification, foregoing and further feature of the invention.In specification In accompanying drawing, only certain exemplary embodiments of this invention is specifically disclosed, which show the portion for the principle that can wherein use the present invention Divide embodiment, it will thus be appreciated that the invention is not restricted to described embodiment, on the contrary, the present invention includes falling into appended power Whole modification, modification and equivalents in the range of profit requirement.
Embodiment 1
The embodiment of the present invention provides a kind of method for encoding images based on three-dimensional palette.Fig. 1 is the embodiment of the present invention One schematic flow sheet of method for encoding images, as shown in figure 1, described image coding method includes:
Step 101, it is to generate palette three-dimensional color using multiple pixels of pallet mode in image-region to be encoded Information, and to generate non-palette three-dimensional color information using each pixel of non-pallet mode;
Step 102, image district to be encoded is generated based on palette three-dimensional color information and non-palette three-dimensional color information The colouring information in domain, the wherein colouring information include three-dimensional color index information and for per the one-dimensional color generated respectively and ropes Draw corresponding informance;
Step 103, generate the Pixel Information of image-region to be encoded, wherein the Pixel Information include coding mode information with And the pixel index information to be generated using multiple pixels of pallet mode;
Step 104, coded image area is treated based on colouring information and Pixel Information and carries out encoding abit stream.
In the present embodiment, image-region to be encoded can be a coding unit (CU), but the invention is not restricted to this, such as It can also be maximum coding unit (LCU, Largest Coding Unit) etc..The present invention is carried out only by taking CU as an example below Explanation.
In the present embodiment, for the pixel in coding unit, color can be represented using three-dimensional color information.Example Such as use RGB patterns, including the first color component (1stComponent of color), the second color component (2nd Component of color) and the 3rd color component (3rdcomponent of color).But the invention is not restricted to RGB moulds Formula, such as other three-dimensional color information can also be used.
In the present embodiment, for multiple pixels using pallet mode, the three-dimensional face for palette can be generated Color information (can be described as palette three-dimensional color information), can specifically use any one method of the prior art.For adopting With one or more pixels of non-pallet mode (such as escape mode), it is necessary to generate three-dimensional color for each pixel Information (can be described as non-palette three-dimensional color information).
Fig. 2 is an example schematic of the coding unit of the embodiment of the present invention, as shown in Fig. 2 the coding unit have 8 × 8 pixels;Wherein the pixel with same pixel value represents pixel value using same symbol, for example, C0, C1 ..., C7.Its In, can use pallet mode to the pixel in addition to C3 and C5, i.e. palette Palette=C0, C1, C2, C4, C6, C7 }, the size Palette_size=6 of palette.And use non-pallet mode for C3 and C5, i.e. Escape=C3, C3, C5 }, the size Escape_size=3 of non-palette;Wherein, Escap_location [0]={ 0,7 }, Escap_ Location [1]={ 1,7 }, Escap_location [2]={ 7,7 }.
In a step 101, priming color information corresponding to CU can be generated.Fig. 3 is the priming color of the embodiment of the present invention One exemplary plot of information, show the priming color table that the coding unit shown in Fig. 2 is obtained after by step 101. Colouring information (palette three-dimensional color information) wherein in palette is located at the first six row of the priming color table, and can lead to Statistics is crossed to be ranked up (such as shown in figure 3, from left to right put in order as C0, C1, C2, C6, C4, C7).But this hair Bright not limited to this, it can also be other orders etc..
In addition, the colouring information (non-palette three-dimensional color information) in non-palette is located at palette three-dimensional color information Behind several row.The pixel of non-pallet mode is used for each, generates non-palette three-dimensional color information;It can lead to Overscanning is sequentially ranked up.As shown in figure 3, the C3 pixels of { 0,7 } position, the C3 pixels of { 1,7 } position and { 7,7 } position The C5 pixels put are sequentially arranged in rear three row of the priming color table.
In a step 102, being based on priming color table, (including palette three-dimensional color information and non-palette are three-dimensional Colouring information) generation image-region to be encoded colouring information;Wherein the colouring information includes a color table (three-dimensional color rope Fuse ceases) and three subscales (for every one-dimensional color generated respectively and index corresponding informance).
Fig. 4 is an exemplary plot of the colouring information of the embodiment of the present invention, shows the coding unit shown in Fig. 2 by walking The color table obtained after rapid 102 and three subscales.Wherein, the value in color table is believed for the index of three-dimensional color Breath;As shown in figure 4, the first component index, second component index and three-component index can be included.
As shown in figure 4, each subscale has the corresponding informance of color and index, every one-dimensional color and index pair respectively Information is answered to include the color value being not mutually equal and index value corresponding with color value.By taking the first subscale as an example, V1 [0] to V1 [N1-1] is each unequal;By taking second component table as an example, V2 [0] to V2 [N2-1] is each unequal;By taking three-component table as an example, V3 [0] it is each unequal to V3 [N3-1].
Thus, not only coding can be improved by using pallet mode and non-pallet mode in the embodiment of the present invention Compression ratio, and can be indexed by three-dimensional color with three-dimensional component table to improve coding compression ratio, further obtain smaller Bit cost.
In step 103, the Pixel Information of image-region to be encoded can be generated, wherein the Pixel Information includes coding mould Formula information, such as each pixel in CU are using pallet mode or the information using non-pallet mode.It can use The mode of bitmap (map) is indicated, but the invention is not restricted to this.
Fig. 5 is an exemplary plot of the coding mode of the embodiment of the present invention, shows the coding mould of the coding unit shown in Fig. 2 Formula information.Wherein, 0 represent that the pixel uses pallet mode, 1 represents that the pixel uses non-pallet mode.As shown in figure 5, The pixel that C3 and C5 is corresponded in Fig. 2 uses non-pallet mode.
In addition, for the pixel using non-pallet mode, Pixel Information is already contained in colouring information.And for adopting With multiple pixels of pallet mode, it is necessary to pixel index information corresponding to generating.Fig. 6 is the pixel index of the embodiment of the present invention One exemplary plot of information, shows in the coding unit shown in Fig. 2, and the pixel index using multiple pixels of pallet mode is believed Breath.
Thus, the colouring information and Pixel Information of image-region to be encoded can be obtained by above-mentioned steps 101 to 103. It is worth noting that, between step 101,102 and step 103 and ordinal relation is not present, i.e. step 103 can also be in step Perform, can also be performed parallel with step 101 and step 102 before 101.At step 104, colouring information and picture can be based on Prime information carries out encoding abit stream to the image-region to be encoded.
Wherein, can be only by the length N of color table and color index I1 [0 ... N- when carrying out the coding of colouring information 1], I2 [0 ... N-1], I3 [0 ... N-1] are encoded;For example, by the long N=9 of the table of color table as shown in Figure 4, and I1 [0 ... 8], I2 [0 ... 8], I3 [0 ... 8] are incorporated into bit stream.Only the length Ni and color component of subscale can also be indexed Vi [0 ... Ni-1], i=1,2,3 are encoded;For example, by the long N1 of table of the first subscale as shown in Figure 4, and V1 [0 ... N1-1] it is incorporated into bit stream, the long N2 of table of second component table as shown in Figure 4, and V2 [0 ... N2-1] are incorporated into bit stream In, the long N3 of table of three-component table as shown in Figure 4, and V3 [0 ... N3-1] are incorporated into bit stream.But the invention is not restricted to This, can determine specific coding information according to actual conditions.
In addition, if the length of a certain subscale is equal to the length of color table, mean color corresponding to the subscale There is no identical color value in component (such as first color component), can the implicitly subscale by arranging in order Color value it is corresponding with the index in color table, then the index information in the subscale may not necessarily be incorporated into bit stream (such as The long N1 of the table of first subscale may not necessarily be incorporated into bit stream).
In the present embodiment, can also be predicted by the information of other coding units, so as to further improve Encode compression ratio.Wherein, the colouring information also includes the first prediction letter being predicted to the three-dimensional color index information Breath, and/or to certain one-dimensional or apteryx color and the second information of forecasting for being predicted of index corresponding informance.
In the present embodiment, priming color table as shown in Figure 3, can by predict mark (predicted flag) come Represent information of forecasting.Fig. 7 is another exemplary plot of the priming color information of the embodiment of the present invention, shows that what is obtained is included in advance One priming color table of measurement information.As shown in fig. 7, such as predicted flag=1 represent to be predicted by other CU, Predicted flag=0 represent not predicted by other CU.Wherein on specifically how to be predicted, existing skill can be used Any one method in art.
For color table as shown in Figure 4, the first prediction letter being predicted to three-dimensional color index information can be included Breath.And for three subscales as shown in Figure 4, it can include carrying out certain one-dimensional or apteryx color and index corresponding informance Second information of forecasting of prediction.Wherein, the above-mentioned prediction to color index and the prediction to color component can be independent, both One of them can be used, can also all be used.
Fig. 8 is another exemplary plot of the colouring information of the embodiment of the present invention, show obtained comprising information of forecasting One color table and three subscales not comprising information of forecasting.As shown in figure 8, also include color information of forecasting in color table (the first information of forecasting);Because the row that color index (color index) is 0,2,3,6,7 in table 7 have been predicted, then only need Explicit representation is carried out to the row of color index=1,4,5,8.
Fig. 9 is the exemplary plot being also predicted to three subscales shown in Fig. 8.As shown in figure 9, for each color Component, can also include information of forecasting (the second information of forecasting, for example, including the first component information of forecasting, second component prediction letter Breath, three-component information of forecasting), and the color component for not being predicted carries out explicit representation.Carrying out colouring information Coding when, can be only by the length N ' of color table and color index I1 ' [0 ... N ' -1], I2 ' [0 ... N ' -1], I3 ' [0 ... N ' -1] encoded.The length Ni ' and color component of subscale only can also be indexed into Vi ' [0 ... Ni ' -1], i=1,2,3 Encoded.
In the present embodiment, the image-region to be encoded is carried out based on colouring information and Pixel Information in step 104 Encoding abit stream, it can specifically include:Encoding abit stream is carried out to coding mode information and then bit is carried out to colouring information Stream encryption.
Thus, after encoding abit stream is carried out to coding mode information, the number of pixels of non-pallet mode by Obtain.When carrying out the coding of colouring information, it is not necessary to be explicitly incorporated into relevant information again;Such as color table need not be incorporated into Length information.Coding compression ratio can further be improved.
In the present embodiment, the image-region to be encoded is carried out based on colouring information and Pixel Information in step 104 Encoding abit stream, it can specifically include:Encoding abit stream is carried out to pixel index information and then bit is carried out to colouring information Stream encryption.
Thus, after carrying out encoding abit stream to pixel index information, maximum index value can be obtained, and palette is big Small is that the maximum index value adds 1, it is not necessary to is explicitly incorporated into relevant information again, can further improve coding compression Than.
In the present embodiment, the image-region to be encoded is carried out based on colouring information and Pixel Information in step 104 Encoding abit stream, it can also specifically include:It is equal to the feelings of the number of three-dimensional color index information in the number of the second information of forecasting Under condition, encoding abit stream is not carried out to color and index corresponding informance.
In the case where the number of the second information of forecasting is equal to the number of three-dimensional color index information, now respective components table In information be predicted, thus without explicitly add color and index corresponding informance, you can with not to color and index Corresponding informance carries out encoding abit stream.Coding compression ratio can further be improved.
In the present embodiment, the image-region to be encoded is carried out based on colouring information and Pixel Information in step 104 Encoding abit stream, it can also specifically include:Indexed in the number of certain one-dimensional color and index corresponding informance equal to three-dimensional color In the case of the number of information, or in certain one-dimensional color and index the number of corresponding informance and the number of the second information of forecasting In the case that sum is equal to the number of three-dimensional color index information, the index information that certain is one-dimensional not to this carries out encoding abit stream.
When subscale does not have information of forecasting, in the color and index corresponding informance of certain one-dimensional (such as first component) Number (such as first subscale length N1 shown in Fig. 3) is equal to number (such as the face shown in Fig. 3 of three-dimensional color index information Color table length N) in the case of, now the information in color component corresponding to the subscale does not have what is repeated, it is possible thereby to according to Order is arranged the color value in the subscale, by arrange in order can the implicitly subscale color value Corresponding with the index in color table, then the index information in the subscale may not necessarily be incorporated into bit stream.
When subscale has information of forecasting, in the color of certain one-dimensional (such as first component) and of index corresponding informance The number of number (such as first subscale length N1 ' shown in Fig. 9) and the second information of forecasting (such as the first component shown in Fig. 9 The number of information of forecasting) in the case that sum is equal to the number of three-dimensional color index information, now color corresponding to the subscale Information in component does not have what is repeated, it is possible thereby to arrange in sequence the color value in the subscale, by by suitable Sequence arrangement can implicitly make it that the color value of the subscale is corresponding with the index in color table, then the index letter in the subscale Breath may not necessarily be incorporated into bit stream.
In the present embodiment, following false code can be used to represent the method for encoding images of the present embodiment:
It is worth noting that, above false code is only a kind of embodiment of the embodiment of the present invention, but the embodiment of the present invention Not limited to this.Such as information of forecasting can not also be used or do not use copy mode (such as copy left or copy Above) etc., specific embodiment can be determined according to actual conditions.
In the present embodiment, the bit stream after coding can be decoded, decoding process can correspond to cataloged procedure, Specific implementation process may be referred to correlation technique, and the present embodiment repeats no more.
From above-described embodiment, palette three-dimensional color information is generated for multiple pixels of use pallet mode, and To generate non-palette three-dimensional color information using each pixel of non-pallet mode, to obtain the face of image-region to be encoded Color information;And the Pixel Information of the generation image-region to be encoded;Wait to compile to described based on colouring information and Pixel Information Code image-region carries out encoding abit stream.Thus, can not only be improved by using pallet mode and non-pallet mode Compression ratio is encoded, and can be indexed by three-dimensional color with three-dimensional component table to improve coding compression ratio, is further obtained more Small bit cost.
Embodiment 2
The embodiment of the present invention provides a kind of picture coding device based on three-dimensional palette, corresponding to the image of embodiment 1 Coding method, identical content repeat no more.
Figure 10 is a composition schematic diagram of the code device of the embodiment of the present invention.It is worth noting that, accompanying drawing 10 is only illustrated Property shows each part related to the present invention, is not shown for the miscellaneous part of code device, may be referred to prior art.
As shown in Figure 10, the picture coding device 1000 includes:Initial information generation unit 1001, colouring information generation are single Member 1002, Pixel Information generation unit 1003 and stream encryption unit 1004;
Wherein, initial information generation unit 1001 is to be given birth in image-region to be encoded using multiple pixels of pallet mode Into palette three-dimensional color information, and to generate non-palette three-dimensional color letter using each pixel of non-pallet mode Breath;Colouring information generation unit 1002 is based on the palette three-dimensional color information and the non-palette three-dimensional color information life Into the colouring information of the image-region to be encoded, wherein the colouring information includes three-dimensional color index information and is each Tie up the color generated respectively and index corresponding informance;Pixel Information generation unit 1003 generates the picture of the image-region to be encoded Prime information, wherein the Pixel Information includes coding mode information and the picture to be generated using multiple pixels of pallet mode Plain index information;Stream encryption unit 1004 is based on the colouring information and the Pixel Information is entered to the image-region to be encoded Row encoding abit stream.
In one embodiment, the colouring information can also include being predicted the three-dimensional color index information The first information of forecasting, and/or to certain one-dimensional or apteryx color and the second information of forecasting for being predicted of index corresponding informance.
In one embodiment, stream encryption unit 1004 specifically can be used for:The coding mode information is compared Special stream encryption and then to the colouring information carry out encoding abit stream.
In another embodiment, stream encryption unit 1004 specifically can be used for:The pixel index information is carried out Encoding abit stream and then to the colouring information carry out encoding abit stream.
In another embodiment, stream encryption unit 1004 specifically can be used for:In of second information of forecasting In the case of number of the number equal to the three-dimensional color index information, bit stream is not carried out to the color and index corresponding informance Coding.
In another embodiment, stream encryption unit 1004 specifically can be used for:In certain described one-dimensional color and rope Draw the number of corresponding informance with the number sum of second information of forecasting equal to the number of the three-dimensional color index information In the case of, encoding abit stream is not carried out to certain described one-dimensional index information.
In another embodiment, stream encryption unit 1004 specifically can be used for:In certain described one-dimensional color and rope In the case of number of the number equal to the three-dimensional color index information for drawing corresponding informance, certain described one-dimensional index is not believed Breath carries out encoding abit stream.
From above-described embodiment, palette three-dimensional color information is generated for multiple pixels of use pallet mode, and To generate non-palette three-dimensional color information using each pixel of non-pallet mode, to obtain the face of image-region to be encoded Color information;And the Pixel Information of the generation image-region to be encoded;Wait to compile to described based on colouring information and Pixel Information Code image-region carries out encoding abit stream.Thus, can not only be improved by using pallet mode and non-pallet mode Compression ratio is encoded, and can be indexed by three-dimensional color with three-dimensional component table to improve coding compression ratio, is further obtained more Small bit cost.
Embodiment 3
The embodiment of the present invention provides a kind of image processing equipment, and described image processing equipment includes:As described in Example 2 Picture coding device;And decoding apparatus, bit stream is decoded to obtain image.
Figure 11 is a composition schematic diagram of the image processing equipment of the embodiment of the present invention.As shown in figure 11, image procossing is set Standby 1100 can include:Central processing unit (CPU) 200 and memory 210;Memory 210 is coupled to central processing unit 200.Its In the memory 210 can store various data;The additionally program of storage information processing, and in the control of central processing unit 200 The program is performed under system.
In one embodiment, the function of picture coding device 1000 can be integrated into central processing unit 200.Its In, central processing unit 200 can be configured as realizing method for encoding images as described in Example 1.
In another embodiment, picture coding device 1000 can be with central processing unit separate configuration, such as can be with The chip that picture coding device 1000 is configured to be connected with central processing unit 200, realized by the control of central processing unit The function of picture coding device 1000.
In addition, as shown in figure 11, image processing equipment 1100 can also include:Input-output unit 220 and display unit 230 etc.;Wherein, similarly to the prior art, here is omitted for the function of above-mentioned part.It is worth noting that, image procossing is set Standby 1100 are also not necessary to include all parts shown in Figure 11;In addition, image processing equipment 1100 can also include The part being not shown in Figure 11, may be referred to prior art.
The embodiment of the present invention also provides a kind of computer-readable program, wherein when performing the journey in image processing equipment During sequence, described program cause computer perform in described image processing equipment described in embodiment 1 based on three-dimensional palette Method for encoding images.
The embodiment of the present invention also provides a kind of storage medium for being stored with computer-readable program, wherein the computer can Reader causes computer to perform the Image Coding side based on three-dimensional palette described in embodiment 1 in image processing equipment Method.
Apparatus and method more than of the invention can be realized by hardware, can also be realized by combination of hardware software.The present invention It is related to such computer-readable program, when the program is performed by logical block, can realizes the logical block above Described device or component parts, or the logical block is realized various methods or step described above.The invention further relates to For storing the storage medium of procedure above, such as hard disk, disk, CD, DVD, flash memory.
Combined for one or more of function box described in accompanying drawing and/or the one or more of function box, It can be implemented as the general processor, digital signal processor (DSP), special integrated electricity for performing function described herein Road (ASIC), field programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic device Part, discrete hardware components or it is any appropriately combined.One or more of function box for accompanying drawing description and/or work( Can square frame one or more combinations, the combination of computing device is also implemented as, for example, DSP and microprocessor combine, are more Individual microprocessor, communicate the one or more microprocessors combined or any other this configuration with DSP.
Above in association with specific embodiment, invention has been described, it will be appreciated by those skilled in the art that this A little descriptions are all exemplary, are not limiting the scope of the invention.Those skilled in the art can be according to the present invention Spirit and principle various variants and modifications are made to the present invention, these variants and modifications are also within the scope of the invention.

Claims (17)

1. a kind of method for encoding images based on three-dimensional palette, it is characterised in that described image coding method includes:
To use multiple pixels of pallet mode to generate palette three-dimensional color information in image-region to be encoded, and to adopt Non- palette three-dimensional color information is generated with each pixel of non-pallet mode;
The image district to be encoded is generated based on the palette three-dimensional color information and the non-palette three-dimensional color information The colouring information in domain, wherein the colouring information include three-dimensional color index information and for per the one-dimensional color generated respectively and Index corresponding informance;
The Pixel Information of the image-region to be encoded is generated, wherein the Pixel Information includes coding mode information and to adopt The pixel index information generated with multiple pixels of pallet mode;
Encoding abit stream is carried out to the image-region to be encoded based on the colouring information and the Pixel Information.
2. method for encoding images according to claim 1, wherein, the colouring information also includes to the three-dimensional color rope The first information of forecasting that fuse breath is predicted, and/or, certain one-dimensional or apteryx color and index corresponding informance are predicted The second information of forecasting.
3. method for encoding images according to claim 1, wherein, include per the one-dimensional color with index corresponding informance The color value and index value corresponding with the color value being not mutually equal.
4. method for encoding images according to claim 1, wherein, based on the colouring information and the Pixel Information to institute Stating image-region progress encoding abit stream to be encoded includes:
Encoding abit stream is carried out to the coding mode information and then encoding abit stream is carried out to the colouring information.
5. method for encoding images according to claim 1, wherein, based on the colouring information and the Pixel Information to institute Stating image-region progress encoding abit stream to be encoded includes:
Encoding abit stream is carried out to the pixel index information and then encoding abit stream is carried out to the colouring information.
6. method for encoding images according to claim 2, wherein, based on the colouring information and the Pixel Information to institute Stating image-region progress encoding abit stream to be encoded includes:
In the case where the colouring information includes second information of forecasting, if the number of second information of forecasting is equal to The number of the three-dimensional color index information, encoding abit stream is not carried out to the color and index corresponding informance.
7. method for encoding images according to claim 2, wherein, based on the colouring information and the Pixel Information to institute Stating image-region progress encoding abit stream to be encoded includes:
In the case where the colouring information includes second information of forecasting, if certain described one-dimensional color is corresponding with index The number of information and the number sum of second information of forecasting are equal to the number of the three-dimensional color index information, not to described Certain one-dimensional index information carries out encoding abit stream.
8. method for encoding images according to claim 1, wherein, based on the colouring information and the Pixel Information to institute Stating image-region progress encoding abit stream to be encoded includes:
In the case where the number of certain one-dimensional color and index corresponding informance is equal to the number of the three-dimensional color index information, Encoding abit stream is not carried out to certain described one-dimensional index information.
9. a kind of picture coding device based on three-dimensional palette, it is characterised in that described image code device includes:
Initial information generation unit, it is to generate palette three-dimensional using multiple pixels of pallet mode in image-region to be encoded Colouring information, and to generate non-palette three-dimensional color information using each pixel of non-pallet mode;
Colouring information generation unit, based on the palette three-dimensional color information and the non-palette three-dimensional color information generation The colouring information of the image-region to be encoded, wherein the colouring information includes three-dimensional color index information and for per one-dimensional The color and index corresponding informance generated respectively;
Pixel Information generation unit, the Pixel Information of the image-region to be encoded is generated, wherein the Pixel Information includes compiling Pattern information and the pixel index information to be generated using multiple pixels of pallet mode;
Stream encryption unit, bit stream volume is carried out to the image-region to be encoded based on the colouring information and the Pixel Information Code.
10. picture coding device according to claim 9, wherein, the colouring information also includes to the three-dimensional color The first information of forecasting that index information is predicted, and/or, certain one-dimensional or apteryx color and index corresponding informance are carried out pre- The second information of forecasting surveyed.
11. picture coding device according to claim 9, wherein, every one-dimensional color and index corresponding informance bag Include the color value being not mutually equal and index value corresponding with the color value.
12. picture coding device according to claim 9, wherein, the stream encryption unit is specifically used for:To the coding Pattern information carries out encoding abit stream and then carries out encoding abit stream to the colouring information.
13. picture coding device according to claim 9, wherein, the stream encryption unit is specifically used for:To the pixel Index information carries out encoding abit stream and then carries out encoding abit stream to the colouring information.
14. picture coding device according to claim 10, wherein, the stream encryption unit is specifically used for:In the face In the case that color information includes second information of forecasting, if the number of second information of forecasting is equal to the three-dimensional color The number of index information, encoding abit stream is not carried out to the color and index corresponding informance.
15. picture coding device according to claim 10, wherein, the stream encryption unit is specifically used for:In the face Color information include second information of forecasting in the case of, if certain described one-dimensional color and index corresponding informance number and The number sum of second information of forecasting is equal to the number of the three-dimensional color index information, not to certain described one-dimensional index Information carries out encoding abit stream.
16. picture coding device according to claim 9, wherein, the stream encryption unit is specifically used for:It is one-dimensional at certain In the case that color and the number of index corresponding informance are equal to the number of the three-dimensional color index information, certain is not one-dimensional to described Index information carry out encoding abit stream.
17. a kind of image processing equipment, described image processing equipment includes:
Picture coding device as claimed in claim 9 based on three-dimensional palette;And
Picture decoding apparatus, bit stream is decoded to obtain image.
CN201480072693.3A 2014-06-12 2014-06-12 Method for encoding images, device and image processing equipment based on three-dimensional palette Active CN105900422B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079724 WO2015188342A1 (en) 2014-06-12 2014-06-12 Three-dimensional palette based image coding method, device and image processing apparatus

Publications (2)

Publication Number Publication Date
CN105900422A CN105900422A (en) 2016-08-24
CN105900422B true CN105900422B (en) 2018-02-06

Family

ID=54832720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480072693.3A Active CN105900422B (en) 2014-06-12 2014-06-12 Method for encoding images, device and image processing equipment based on three-dimensional palette

Country Status (2)

Country Link
CN (1) CN105900422B (en)
WO (1) WO2015188342A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677279B (en) * 2016-01-08 2018-10-12 全时云商务服务股份有限公司 Desktop area sharing method, system and corresponding shared end and viewing end

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6008816A (en) * 1996-04-25 1999-12-28 Microsoft Corporation Method and system for managing color specification using attachable palettes and palettes that refer to other palettes
US7162077B2 (en) * 2001-10-19 2007-01-09 Sharp Laboratories Of America, Inc. Palette-based image compression method, system and data file
DE10206397B4 (en) * 2002-02-15 2005-10-06 Siemens Ag Method for displaying projection or sectional images from 3D volume data of an examination volume
US20090010533A1 (en) * 2007-07-05 2009-01-08 Mediatek Inc. Method and apparatus for displaying an encoded image
CN102075752A (en) * 2011-01-11 2011-05-25 北京北纬点易信息技术有限公司 Image coding method, image decoding method and device for embedded system
CN102510434A (en) * 2011-09-30 2012-06-20 深圳市融创天下科技股份有限公司 Image data transmitting and restoring method, device and terminal
CN102523367B (en) * 2011-12-29 2016-06-15 全时云商务服务股份有限公司 Real time imaging based on many palettes compresses and method of reducing

Also Published As

Publication number Publication date
CN105900422A (en) 2016-08-24
WO2015188342A1 (en) 2015-12-17

Similar Documents

Publication Publication Date Title
GB2600583A (en) Attribute-aware image generation using neural networks
US20190138850A1 (en) Weakly-supervised spatial context networks
CN105828081A (en) Encoding method and encoding device
CN110427946A (en) A kind of file and picture binary coding method, device and calculate equipment
CN106716345A (en) Electronic calculating device for performing obfuscated arithmetic
CN105900422B (en) Method for encoding images, device and image processing equipment based on three-dimensional palette
CN117495816A (en) Concrete crack detection method and system based on improved YOLOv5
Drost et al. A hybrid system for real-time lossless image compression
CN111260532B (en) Privacy image encryption method, device, electronic equipment and computer readable storage medium
CN116630712A (en) Information classification method and device based on modal combination, electronic equipment and medium
Matsuda et al. Lossless coding using predictors and arithmetic code optimized for each image
CN102740065A (en) Image coding method and system thereof
CN105917651B (en) Image encoding method, device and image processing equipment
WO2016049843A1 (en) Palette coding method and apparatus and image processing device
CN106303526A (en) Method for encoding images, device and image processing equipment
CN106688236B (en) Image encoding method, device and image processing equipment
CN107172425A (en) Reduced graph generating method, device and terminal device
JP2006033161A (en) Encoder
CN103517068B (en) Method for compressing image and device
CN105637861B (en) Code device, method and image processing equipment based on palette
KR101952246B1 (en) System and Method of Energy efficient Image Encryption using Approximation based Hardware Memoization
Chang et al. A new probabilistic visual secret sharing scheme for color images
CN109712216A (en) Chart rendering method, device, readable storage medium storing program for executing and electronic equipment
CN113949868B (en) Entropy coding method and device
CN106303531B (en) Coding method, device and the image processing equipment of copy information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant