WO2015188342A1 - 基于三维调色板的图像编码方法、装置以及图像处理设备 - Google Patents
基于三维调色板的图像编码方法、装置以及图像处理设备 Download PDFInfo
- Publication number
- WO2015188342A1 WO2015188342A1 PCT/CN2014/079724 CN2014079724W WO2015188342A1 WO 2015188342 A1 WO2015188342 A1 WO 2015188342A1 CN 2014079724 W CN2014079724 W CN 2014079724W WO 2015188342 A1 WO2015188342 A1 WO 2015188342A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- color
- index
- palette
- encoding
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—Three-dimensional [3D] image rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
Definitions
- the present invention relates to the field of graphic image technology, and in particular to an image encoding method, apparatus and image processing apparatus based on a three-dimensional palette.
- Palette-based coding is widely used in graphic image technology (especially video coding technology).
- a coding unit for the image area to be encoded, for example, a coding unit (CU), including a plurality of pixels having color values (for example, RGB mode, having 24 bits of true color);
- the storage capacity of the image usually pointing the pixel to the data index of the palette.
- the color value of each output pixel can be determined by looking up the palette with the corresponding data index.
- the palette is a set of pixel values, and for pixels whose pixel values are in the palette, only the pixel index corresponding to the pixel value in the palette is used (the pixel index can be
- the bit stream encoding of the palette and the index corresponding to the pixels in the coding unit can reduce the bit cost of the encoding.
- Non-Patent Document 1 JCTVC-O0182. Xun Guo, etc, Microsoft, Major-color-based screen content coding.
- Non-Patent Document 2 JCTVC-N0249. Liwei Guo, etc, Qualcomm, Modified Palette Mode for Screen Content Coding.
- Embodiments of the present invention provide an image encoding method, apparatus, and image processing apparatus based on a three-dimensional palette; the encoding compression ratio can be further improved to obtain a smaller bit cost.
- an image encoding method based on a three-dimensional palette comprising:
- the pixel information includes encoding mode information and pixel index information generated for the plurality of pixels adopting the palette mode;
- an image encoding apparatus based on a three-dimensional palette comprising:
- An initial information generating unit that generates palette three-dimensional color information for a plurality of pixels adopting a palette mode in an image region to be encoded, and generates non-palette three-dimensional color information for each pixel that adopts a non-palette mode;
- An information generating unit configured to generate color information of the image region to be encoded based on the palette three-dimensional color information and the non-palette three-dimensional color information, wherein the color information includes three-dimensional color index information and is separately for each dimension Generated color and index corresponding information;
- a pixel information generating unit configured to generate pixel information of the image region to be encoded, wherein the pixel information includes encoding mode information and pixel index information generated for the plurality of pixels adopting the palette mode; a stream encoding unit, based on The color information and the pixel information perform bitstream encoding on the image region to be encoded.
- an image processing apparatus comprising:
- the image decoding device decodes the bit stream to obtain an image.
- a computer readable program is provided, wherein when the program is executed in an image processing device, the program causes a computer to perform three-dimensional based on the image processing device as described above The image encoding method of the palette.
- a storage medium storing a computer readable program, wherein the computer readable program causes a computer to perform a three-dimensional palette-based image encoding as described above in an image processing apparatus method.
- An advantageous effect of an embodiment of the present invention is to generate palette 3D color information for a plurality of pixels in a palette mode and non-palette 3D color information for each pixel in a non-palette mode.
- 1 is a schematic flow chart of an image encoding method according to an embodiment of the present invention
- 2 is a schematic diagram of an example of a coding unit according to an embodiment of the present invention
- FIG. 3 is a diagram showing an example of initial color information of an embodiment of the present invention.
- FIG. 4 is a diagram showing an example of color information of an embodiment of the present invention.
- FIG. 5 is a diagram showing an example of an encoding mode according to an embodiment of the present invention.
- FIG. 6 is a diagram showing an example of pixel index information according to an embodiment of the present invention.
- FIG. 8 is another exemplary diagram of color information according to an embodiment of the present invention.
- Figure 9 is a diagram showing an example of prediction of the three subscales shown in Figure 8.
- FIG. 10 is a schematic structural diagram of an encoding apparatus according to an embodiment of the present invention.
- FIG. 11 is a block diagram showing the structure of an image processing apparatus according to an embodiment of the present invention. detailed description
- FIG. 1 is a schematic flowchart of an image encoding method according to an embodiment of the present invention. As shown in FIG. 1, the image encoding method includes:
- Step 101 Generate palette three-dimensional color information for a plurality of pixels adopting a palette mode in an image region to be encoded, and generate non-palette three-dimensional color information for each pixel adopting a non-palette mode;
- Step 102 Generate color information of an image region to be encoded based on the palette three-dimensional color information and the non-palette three-dimensional color information, where the color information includes three-dimensional color index information and color and index correspondence information respectively generated for each dimension;
- Step 103 Generate pixel information of an image region to be encoded, where the pixel information includes encoding mode information and pixel index information generated for a plurality of pixels adopting a palette mode;
- Step 104 Perform bitstream encoding on the image region to be encoded based on the color information and the pixel information.
- the image area to be encoded may be a coding unit (CU), but the invention is not limited thereto, and may be, for example, a Large Coding Unit (LCU) or the like.
- CU coding unit
- LCU Large Coding Unit
- three-dimensional color information may be used to represent the color.
- RGB mode color component comprising a first (1 st component of color), a second color component (2 nd component of color) color component and the third (3 rd component of color).
- the present invention is not limited to the RGB mode, and for example, other three-dimensional color information may be employed.
- three-dimensional color information (which may be referred to as palette three-dimensional color information) for the palette may be generated, and specifically, any one of the prior art may be used. Ways. For one or more pixels in a non-palette mode (such as escape mode), three-dimensional color information (which can be called non-palette 3D color information) needs to be generated for each pixel.
- the coding unit has 8 ⁇ 8 pixels; wherein pixels having the same pixel value use the same symbol to represent pixel values, such as C0, Cl. , ..., C7.
- step 101 initial color information corresponding to the CU may be generated.
- Figure 3 is a diagram showing an example of initial color information of an embodiment of the present invention, showing an initial color table obtained by the encoding unit shown in Figure 2 after passing through step 101.
- the color information (palette 3D color information) in the palette is located in the first six columns of the initial color table, and can be sorted by statistics (for example, as shown in FIG. 3, the order from left to right is C0). , Cl, C2, C6, C4, C7).
- the present invention is not limited thereto, and may be other sequences or the like.
- non-palette 3D color information is located in the next few columns of the palette's 3D color information.
- non-palette 3D color information is generated; sorting can be done by scan order. As shown in FIG. 3, the C3 pixel at the ⁇ 0, 7 ⁇ position, the C3 pixel at the ⁇ 1, 7 ⁇ position, and the C5 pixel at the ⁇ 7, 7 ⁇ position are sequentially arranged in the last three columns of the initial color table.
- color information of an image region to be encoded may be generated based on an initial color table (including palette three-dimensional color information and non-palette three-dimensional color information); wherein the color information includes a color table (three-dimensional color index information) And three subscales (color and index correspondence information generated for each dimension).
- an initial color table including palette three-dimensional color information and non-palette three-dimensional color information
- the color information includes a color table (three-dimensional color index information) And three subscales (color and index correspondence information generated for each dimension).
- FIG. 4 is a diagram showing an example of color information according to an embodiment of the present invention, showing that the coding unit shown in FIG. A color table obtained after step 102 and three subscales.
- the value in the color table is index information of the three-dimensional color; as shown in FIG. 4, the first component index, the second component index, and the third component index may be included.
- each of the sub-tables has corresponding information of color and index, and the color and index corresponding information of each dimension includes color values that are not equal to each other and index values corresponding to the color values.
- V1[0] to V1[N1-1] are not equal
- V2[0] to V2[N2-1] are not equal
- V3[0] to V3[N3-1] are not equal.
- the coding compression ratio can be improved not only by adopting the palette mode and the non-palette mode, but also the coding compression ratio can be improved by the three-dimensional color index and the three-dimensional component table, and further smaller bits can be obtained. cost.
- pixel information of an image region to be encoded may be generated, wherein the pixel information includes encoding mode information, such as information of whether each pixel in the CU adopts a palette mode or a non-palette mode.
- encoding mode information such as information of whether each pixel in the CU adopts a palette mode or a non-palette mode.
- the representation can be made by means of a map, but the invention is not limited thereto.
- Fig. 5 is a diagram showing an example of an encoding mode of the embodiment of the present invention, showing coding mode information of the coding unit shown in Fig. 2. Where 0 indicates that the pixel adopts the palette mode, and 1 indicates that the pixel adopts the non-palette mode. As shown in Fig. 5, the pixels corresponding to C3 and C5 in Fig. 2 adopt a non-palette mode.
- pixel information is already included in the color information.
- corresponding pixel index information needs to be generated.
- Fig. 6 is a view showing an example of pixel index information of an embodiment of the present invention, showing pixel index information of a plurality of pixels in a palette mode in the coding unit shown in Fig. 2.
- step 104 the image region to be encoded may be bitstream encoded based on the color information and the pixel information.
- V1[0 ⁇ N1-1] are programmed into the bit stream
- the table length N2 and V2[0 ⁇ N2-1] of the second subscale table as shown in FIG. 4 are programmed into the bit stream, as shown in FIG.
- the third subscale table shown in Figure 4 has a length N3, and V3[0 ⁇ N3-1] is programmed into the bitstream.
- the present invention is not limited thereto, and specific coding information may be determined according to actual conditions.
- the length of a certain sub-table is equal to the length of the color table, it means that there is no same color value in the color component (for example, the first color component) corresponding to the sub-table, and the order can be implicitly made by sequentially If the color value of the sub-table corresponds to the index in the color table, the index information in the sub-table may not be programmed into the bit stream (for example, the table length N1 of the first sub-table may not be programmed into the bit stream).
- prediction can also be performed by information of other coding units, thereby further improving the coding compression ratio.
- the color information further includes first prediction information for predicting the three-dimensional color index information, and/or second prediction information for predicting color or index correspondence information of a certain dimension or several dimensions.
- the prediction information may be represented by a predicted flag.
- first prediction information for predicting the three-dimensional color index information may be included.
- second prediction information for predicting the color and index corresponding information of a certain dimension or several dimensions may be included.
- the prediction of the color index and the prediction of the color component may be independent, and either one of them may be used or both may be employed.
- Fig. 8 is another exemplary diagram of color information of an embodiment of the present invention, showing a obtained color table containing prediction information and three subscales not including prediction information.
- Fig. 9 is a diagram showing an example of prediction of the three subscales shown in Fig. 8.
- prediction information (second prediction information including, for example, first component prediction information, second component prediction information, third component prediction information) may be included, and for colors that are not predicted.
- the component is explicitly represented.
- the image area to be encoded is performed based on color information and pixel information.
- the bit stream coding may specifically include: performing bit stream coding on the coding mode information, and then performing bit stream coding on the color information.
- bit stream encoding of the encoding mode information After bit stream encoding of the encoding mode information, the number of pixels in the non-pal palette mode has been obtained.
- the relevant information For example, it is not necessary to compile the length information of the color table.
- the coding compression ratio can be further improved.
- performing bitstream encoding on the to-be-coded image region based on the color information and the pixel information in step 104 may specifically include: performing bitstream encoding on the pixel index information, and then performing bitstream encoding on the color information.
- the maximum index value can be obtained, and the size of the color palette is 1 for the maximum index value, and the related information does not need to be explicitly added, which can be further improved.
- Encoding compression ratio
- the bitstream encoding of the to-be-coded image region is performed based on the color information and the pixel information in the step 104.
- the method may further include: when the number of the second prediction information is equal to the number of the three-dimensional color index information. Next, the bit stream encoding is not performed on the color and the corresponding information of the cable I.
- the information in the corresponding sub-table is predicted at this time, thereby eliminating the need to explicitly add the color and the index corresponding information, that is, the color may not be
- the bit stream is encoded by the information corresponding to the cable I.
- the coding compression ratio can be further improved.
- the bit stream encoding is performed on the to-be-coded image region based on the color information and the pixel information in the step 104, and the method may further include: the number of the color and the index corresponding information in a certain dimension is equal to the three-dimensional color index information. In the case of the number, or in the case where the sum of the number of color and index correspondence information of a certain dimension and the number of second prediction information is equal to the number of three-dimensional color index information, the index of the certain dimension is not The information is bitstream encoded.
- the number of colors and index correspondence information in a certain dimension (for example, the first component) (for example, the first sub-table length N1 shown in FIG. 3) is equal to the number of three-dimensional color index information.
- the information in the color component corresponding to the sub-table is not repeated at this time, so that the color values in the sub-table can be arranged in order, by pressing
- the sequential arrangement may implicitly make the color value of the sub-table correspond to the index in the color table, and the index information in the sub-table may not be programmed into the bit stream.
- the color and index corresponding information in a certain dimension (for example, the first component)
- the sum of the number (for example, the first sub-table length ⁇ shown in FIG. 9) and the number of second prediction information (for example, the number of first component prediction information shown in FIG. 9) is equal to the number of three-dimensional color index information.
- the information in the color component corresponding to the sub-table is not repeated at this time, so that the color values in the sub-table can be arranged in order, and the sub-tables can be implicitly made by being arranged in order.
- the color value corresponds to the index in the color table, and the index information in the sub-table may not be programmed into the bit stream.
- the following image may be used to represent the image encoding method of the embodiment: cuo
- nCbS * nCbS is the width and height of a coding unit
- Run_ type //run of copy left or copy above
- NumEscColors NumEscColors +1;
- predCompTableSize is the component table size of predictor.
- CompTableSize[comp] pr edNum [comp ] + explicit_comp_table_num_entries [comp];
- Pred_ index //which one element in current comp table is predicted by i-th element of predictor.
- the above pseudo code is only one embodiment of the embodiment of the present invention, but the embodiment of the present invention is not limited thereto.
- the prediction information may not be used or the copy mode (for example, copy left or copy above) may be used, and the specific implementation manner may be determined according to actual conditions.
- the encoded bit stream may be decoded, and the decoding process may be corresponding to the encoding process.
- the decoding process may be corresponding to the encoding process.
- the palette three-dimensional color information is generated for using a plurality of pixels of the palette mode, and the non-palette three-dimensional color information is generated for each pixel adopting the non-palette mode to obtain the image to be encoded.
- the board mode is used to increase the coding compression ratio, and the coding compression ratio can be improved by the three-dimensional color index and the three-dimensional component table, thereby further obtaining a smaller bit cost.
- the embodiment of the present invention provides an image encoding apparatus based on a three-dimensional palette, which corresponds to the image encoding method of Embodiment 1, and the same content will not be described again.
- Figure 10 is a block diagram showing the structure of an encoding apparatus according to an embodiment of the present invention. It is to be noted that Figure 10 is only illustrative of the various components associated with the present invention and is not shown for other components of the encoding device, reference may be made to the prior art.
- the image encoding apparatus 1000 includes: an initial information generating unit 1001, a color information generating unit 1002, a pixel information generating unit 1003, and a stream encoding unit 1004;
- the initial information generating unit 1001 generates palette three-dimensional color information for a plurality of pixels adopting the palette mode in the image region to be encoded, and generates non-palette three-dimensional color information for each pixel adopting the non-palette mode.
- the color information generating unit 1002 generates color information of the image region to be encoded based on the palette three-dimensional color information and the non-palette three-dimensional color information, wherein the color information includes three-dimensional color index information and Dimensionally generated color and index corresponding information;
- pixel information generating unit 1003 generates pixel information of the image region to be encoded, wherein the pixel information includes encoding mode information and a pixel index generated for a plurality of pixels adopting a palette mode Information;
- stream encoding unit 1004 performs bitstream encoding on the image region to be encoded based on the color information and the pixel information.
- the color information may further include first prediction information that predicts the three-dimensional color index information, and/or a second prediction that predicts color and index correspondence information of a certain dimension or several dimensions. information.
- the stream coding unit 1004 may be specifically configured to: after performing bitstream coding on the coding mode information, performing bitstream coding on the color information.
- the stream coding unit 1004 is specifically configured to: after performing bitstream coding on the pixel index information, performing bitstream encoding on the color information.
- the stream coding unit 1004 may be specifically configured to: if the number of the second prediction information is equal to the number of the three-dimensional color information, the color and the cable are not The bit stream encoding is performed on the corresponding information. In another embodiment, the stream coding unit 1004 may be specifically configured to: the sum of the number of color and index correspondence information in the certain dimension and the number of the second prediction information is equal to the three-dimensional color index information In the case of the number, the bit stream encoding of the index information of the certain dimension is not performed.
- the stream coding unit 1004 may be specifically configured to: when the number of colors and index correspondence information of the certain dimension is equal to the number of the three-dimensional color index information, not for the certain The index information of the dimension is bit stream encoded.
- the palette three-dimensional color information is generated for using a plurality of pixels of the palette mode, and the non-palette three-dimensional color information is generated for each pixel adopting the non-palette mode to obtain the image to be encoded.
- An embodiment of the present invention provides an image processing apparatus, the image processing apparatus comprising: the image encoding apparatus according to Embodiment 2; and decoding means for decoding the bit stream to obtain an image.
- FIG. 11 is a block diagram showing the structure of an image processing apparatus according to an embodiment of the present invention.
- the image processing apparatus 1100 may include: a central processing unit (CPU) 200 and a memory 210; the memory 210 is coupled to the central processing unit 200.
- the memory 210 can store various data; in addition, a program for information processing is stored, and the program is executed under the control of the central processing unit 200.
- the functionality of image encoding device 1000 may be integrated into central processor 200.
- the central processing unit 200 may be configured to implement the image encoding method as described in Embodiment 1.
- the image encoding device 1000 can be configured separately from the central processing unit.
- the image encoding device 1000 can be configured as a chip connected to the central processing unit 200, and the image encoding device 1000 can be implemented by the control of the central processing unit.
- the image processing apparatus 1100 may further include: an input and output unit 220, a display unit 230, and the like; wherein the functions of the above components are similar to those of the prior art, and details are not described herein again. It is to be noted that the image processing apparatus 1100 does not necessarily have to include all the components shown in FIG. 11; further, the image processing apparatus 1100 may further include components not shown in FIG. 11, and reference may be made to the related art.
- the embodiment of the present invention further provides a computer readable program, wherein the program causes a computer to execute the three-dimensional palette described in Embodiment 1 in the image processing device when the program is executed in an image processing device Image encoding method.
- the embodiment of the present invention further provides a storage medium storing a computer readable program, wherein the computer readable program causes the computer to execute the three-dimensional palette-based image encoding method described in Embodiment 1 in the image processing device.
- the above apparatus and method of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software.
- the present invention relates to a computer readable program that, when executed by a logic component, enables the logic component to implement the apparatus or components described above, or to cause the logic component to implement the various methods described above Or steps.
- the present invention also relates to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, or the like.
- One or more of the functional blocks described in the figures and/or one or more combinations of functional blocks may be implemented as a general purpose processor, digital signal processor (DSP) for performing the functions described herein.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- One or more of the functional blocks described with respect to the figures and/or one or more combinations of functional blocks may also be implemented as a combination of computing devices, eg, a combination of a DSP and a microprocessor, multiple microprocessors One or more microprocessors in conjunction with DSP communication or any other such configuration.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
一种基于三维调色板的图像编码方法、装置以及图像处理设备。所述图像编码方法包括:为采用调色板模式的多个像素生成调色板三维颜色信息,以及为采用非调色板模式的每个像素生成非调色板三维颜色信息;基于调色板三维颜色信息和非调色板三维颜色信息生成待编码图像区域的颜色信息;生成待编码图像区域的像素信息;基于颜色信息和像素信息对待编码图像区域进行比特流编码。不仅可以通过采用调色板模式和非调色板模式来提高编码压缩比,而且可以通过三维颜色索引和三维分量表来提高编码压缩比,进一步获得更小的比特代价。
Description
基于三维调色板的图像编码方法、 装置以及图像处理设备 技术领域
本发明涉及一种图形图像技术领域,特别涉及一种基于三维调色板的图像编码方 法、 装置以及图像处理设备。
背景技术
基于调色板 (Palette-based) 的编码在图形图像技术 (尤其是视频编码技术) 中 得到了广泛应用。 在编码过程中, 对于待编码图像区域, 例如一个编码单元 (CU, coding Unit), 包含多个具有色彩值 (例如采用 RGB模式, 具有 24比特的真彩色) 的像素; 为了减少用于存储位图图像的存储容量, 通常可以将像素指向调色板的数据 索引。在译码过程中, 每一输出像素的色彩值可以通过査找具有相应数据索引的调色 板来决定。
其中, 调色板为一系列像素值 (pixel value) 的集合, 对于像素值位于调色板中 的像素, 仅需使用该像素值在调色板中对应的像素索引 (pixel index 由此可以仅将 调色板以及编码单元中的像素所对应的索引进行比特流编码,可以减少编码的比特代 价 (bit cost )。
下面列出了对于理解本发明和常规技术有益的文献, 通过引用将它们并入本文 中, 如同在本文中完全阐明了一样。
[非专利文献 1]: JCTVC-O0182. Xun Guo, etc, Microsoft, Major-color-based screen content coding.
[非专利文献 2]: JCTVC-N0249. Liwei Guo, etc, Qualcomm, Modified Palette Mode for Screen Content Coding.
应该注意, 上面对技术背景的介绍只是为了方便对本发明的技术方案进行清楚、 完整的说明, 并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本发 明的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。
发明内容
目前, 出现了采用三维调色板 (triplet palette)对颜色信息进行表示的技术方案。
但是, 发明人发现: 目前的基于三维调色板的技术方案并不能实现最佳的编码, 不能 进一步提高编码压缩比来获得更小的比特代价。
本发明实施例提供一种基于三维调色板的图像编码方法、 装置以及图像处理设 备; 可以进一步提高编码压缩比来获得更小的比特代价。
根据本发明实施例的第一个方面, 提供一种基于三维调色板的图像编码方法, 所 述图像编码方法包括:
为待编码图像区域中采用调色板模式的多个像素生成调色板三维颜色信息,以及 为采用非调色板模式的每个像素生成非调色板三维颜色信息;
基于所述调色板三维颜色信息和所述非调色板三维颜色信息生成所述待编码图 像区域的颜色信息,其中所述颜色信息包括三维颜色索引信息以及为每一维分别生成 的颜色和索引对应信息;
生成所述待编码图像区域的像素信息,其中所述像素信息包括编码模式信息以及 为所述采用调色板模式的多个像素所生成的像素索引信息;
基于所述颜色信息和所述像素信息对所述待编码图像区域进行比特流编码。 根据本发明实施例的第二个方面, 提供一种基于三维调色板的图像编码装置, 所 述图像编码装置包括:
初始信息生成单元,为待编码图像区域中采用调色板模式的多个像素生成调色板 三维颜色信息, 以及为采用非调色板模式的每个像素生成非调色板三维颜色信息; 颜色信息生成单元,基于所述调色板三维颜色信息和所述非调色板三维颜色信息 生成所述待编码图像区域的颜色信息,其中所述颜色信息包括三维颜色索引信息以及 为每一维分别生成的颜色和索引对应信息;
像素信息生成单元, 生成所述待编码图像区域的像素信息, 其中所述像素信息包 括编码模式信息以及为所述采用调色板模式的多个像素所生成的像素索引信息; 流编码单元,基于所述颜色信息和所述像素信息对所述待编码图像区域进行比特 流编码。
根据本发明实施例的第三个方面, 提供一种图像处理设备, 所述图像处理设备包 括:
如上所述的基于三维调色板的图像编码装置; 以及
图像解码装置, 对比特流进行解码以获得图像。
根据本发明实施例的又一个方面, 提供一种计算机可读程序, 其中当在图像处理 设备中执行所述程序时,所述程序使得计算机在所述图像处理设备中执行如上所述的 基于三维调色板的图像编码方法。
根据本发明实施例的又一个方面, 提供一种存储有计算机可读程序的存储介质, 其中所述计算机可读程序使得计算机在图像处理设备中执行如上所述的基于三维调 色板的图像编码方法。
本发明实施例的有益效果在于,为采用调色板模式的多个像素生成调色板三维颜 色信息以及为采用非调色板模式的每个像素生成非调色板三维颜色信息,来获得待编 码图像区域的颜色信息; 以及生成所述待编码图像区域的像素信息; 基于颜色信息和 像素信息对所述待编码图像区域进行比特流编码。 由此, 不仅可以通过采用调色板模 式和非调色板模式来提高编码压缩比,而且可以通过三维颜色索引和三维分量表来提 高编码压缩比, 进一步获得更小的比特代价。
参照后文的说明和附图, 详细公开了本发明的特定实施方式, 指明了本发明的原 理可以被采用的方式。应该理解, 本发明的实施方式在范围上并不因而受到限制。 在 所附权利要求的精神和条款的范围内,本发明的实施方式包括许多改变、修改和等同。
针对一种实施方式描述和 /或示出的特征可以以相同或类似的方式在一个或更多 个其它实施方式中使用, 与其它实施方式中的特征相组合, 或替代其它实施方式中的 特征。
应该强调, 术语 "包括 /包含"在本文使用时指特征、 整件、 步骤或组件的存在, 但并不排除一个或更多个其它特征、 整件、 步骤或组件的存在或附加。 附图说明
参照以下的附图可以更好地理解本发明的很多方面。 附图中的部件不是成比例 绘制的, 而只是为了示出本发明的原理。 为了便于示出和描述本发明的一些部分, 附 图中对应部分可能被放大或缩小。
在本发明的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个 其它附图或实施方式中示出的元素和特征相结合。此外, 在附图中, 类似的标号表示 几个附图中对应的部件, 并可用于指示多于一种实施方式中使用的对应部件。
图 1是本发明实施例的图像编码方法的一流程示意图;
图 2是本发明实施例的编码单元的一实例示意图;
图 3是本发明实施例的初始颜色信息的一示例图;
图 4是本发明实施例的颜色信息的一示例图;
图 5是本发明实施例的编码模式的一示例图;
图 6是本发明实施例的像素索引信息的一示例图;
图 7是本发明实施例的初始颜色信息的另一示例图;
图 8是本发明实施例的颜色信息的另一示例图;
图 9是对图 8所示的三个分量表进行预测的一示例图;
图 10是本发明实施例的编码装置的一构成示意图;
图 11是本发明实施例的图像处理设备的一构成示意图。 具体实施方式
参照附图, 通过下面的说明书, 本发明的前述以及其它特征将变得明显。 在说明 书和附图中, 具体公开了本发明的特定实施方式, 其表明了其中可以采用本发明的原 则的部分实施方式, 应了解的是, 本发明不限于所描述的实施方式, 相反, 本发明包 括落入所附权利要求的范围内的全部修改、 变型以及等同物。
实施例 1
本发明实施例提供一种基于三维调色板的图像编码方法。图 1是本发明实施例的 图像编码方法的一流程示意图, 如图 1所示, 所述图像编码方法包括:
步骤 101, 为待编码图像区域中采用调色板模式的多个像素生成调色板三维颜色 信息, 以及为采用非调色板模式的每个像素生成非调色板三维颜色信息;
步骤 102, 基于调色板三维颜色信息和非调色板三维颜色信息生成待编码图像区 域的颜色信息,其中该颜色信息包括三维颜色索引信息以及为每一维分别生成的颜色 和索引对应信息;
步骤 103, 生成待编码图像区域的像素信息, 其中该像素信息包括编码模式信息 以及为采用调色板模式的多个像素生成的像素索引信息;
步骤 104, 基于颜色信息和像素信息对待编码图像区域进行比特流编码。
在本实施例中, 待编码图像区域可以为一编码单元 (CU), 但本发明不限于此, 例如还可以是最大编码单元(LCU, Largest Coding Unit)等等。 以下仅以 CU为例对
本发明进行说明。
在本实施例中, 对于编码单元中的一像素, 可以采用三维颜色信息来表示颜色。 例如采用 RGB模式, 包括第一颜色分量(1st component of color )、第二颜色分量(2nd component of color)以及第三颜色分量( 3rd component of color )。但本发明不限于 RGB 模式, 例如还可以采用其他的三维颜色信息。
在本实施例中, 对于采用调色板模式的多个像素, 可以生成用于调色板的三维颜 色信息 (可称为调色板三维颜色信息), 具体可以采用现有技术中的任意一种方法。 对于采用非调色板模式 (例如 escape mode) 的一个或多个像素, 需要为每一个像素 生成三维颜色信息 (可称为非调色板三维颜色信息)。
图 2是本发明实施例的编码单元的一实例示意图, 如图 2所示, 该编码单元具有 8 X 8 个像素; 其中具有相同像素值的像素采用同一符号来表示像素值, 例如 C0、 Cl、 ……、 C7。 其中, 可以对除了 C3和 C5之外的像素采用调色板模式, 即调色板 Palette={ C0、 Cl、 C2、 C4、 C6、 C7 }, 调色板的大小 Palette_size=6。 而对于 C3禾口 C5采用非调色板模式, S卩 Escape={ C3、 C3、 C5 }, 非调色板的大小 Escape_size=3; 其中, Escap_location[0]= {0 , 7} , Escap_location[l]={l , 7} , Escap_location[2]= {7 , 7}。
在步骤 101中, 可以生成 CU对应的初始颜色信息。 图 3是本发明实施例的初始 颜色信息的一示例图,示出了图 2所示的编码单元在经过步骤 101之后所获得的一初 始颜色表。 其中调色板中的颜色信息(调色板三维颜色信息)位于该初始颜色表的前 六列, 并且可以通过统计来进行排序(例如如图 3所示, 从左到右的排列顺序为 C0、 Cl、 C2、 C6、 C4、 C7)。 但本发明不限于此, 还可以是其他的顺序等。
此外, 非调色板中的颜色信息(非调色板三维颜色信息)位于调色板三维颜色信 息的后面几列。对于每一个采用非调色板模式的像素,均生成非调色板三维颜色信息; 可以通过扫描顺序来进行排序。 如图 3所示, {0, 7}位置的 C3像素、 {1, 7}位置的 C3像素以及 {7, 7}位置的 C5像素依次排列在该初始颜色表的后三列。
在步骤 102中, 可以基于初始颜色表(包括调色板三维颜色信息以及非调色板三 维颜色信息)生成待编码图像区域的颜色信息; 其中该颜色信息包括一个颜色表(三 维颜色索引信息) 以及三个分量表 (为每一维分别生成的颜色和索引对应信息)。
图 4是本发明实施例的颜色信息的一示例图,示出了图 2所示的编码单元在经过
步骤 102之后所获得的一颜色表以及三个分量表。其中, 颜色表中的值为三维颜色的 索引信息; 如图 4所示, 可以包括第一分量索引、 第二分量索引和第三分量索引。
如图 4所示, 每一分量表分别具有颜色和索引的对应信息, 每一维的颜色和索引 对应信息包括互不相等的颜色值以及与颜色值对应的索引值。 以第一分量表为例, V1[0]至 V1[N1-1]各不相等; 以第二分量表为例, V2[0]至 V2[N2-1]各不相等; 以第三 分量表为例, V3[0]至 V3[N3-1]各不相等。
由此,本发明实施例中不仅可以通过采用调色板模式和非调色板模式来提高编码 压缩比, 而且可以通过三维颜色索引和三维分量表来提高编码压缩比, 进一步获得更 小的比特代价。
在步骤 103中, 可以生成待编码图像区域的像素信息, 其中该像素信息包括编码 模式信息, 例如 CU中的每个像素是采用调色板模式还是采用非调色板模式的信息。 可以采用位图 (map) 的方式进行表示, 但本发明不限于此。
图 5是本发明实施例的编码模式的一示例图,示出了图 2所示的编码单元的编码 模式信息。 其中, 0表示该像素采用调色板模式, 1表示该像素采用非调色板模式。 如图 5所示, 图 2中对应 C3和 C5的像素采用非调色板模式。
此外, 对于采用非调色板模式的像素, 像素信息已经包含在颜色信息中。 而对于 采用调色板模式的多个像素, 需要生成对应的像素索引信息。 图 6是本发明实施例的 像素索引信息的一示例图, 示出了图 2所示的编码单元中, 采用调色板模式的多个像 素的像素索引信息。
由此,通过上述步骤 101至 103可以获得待编码图像区域的颜色信息和像素信息。 值得注意的是, 步骤 101、 102与步骤 103之间并不存在顺序关系, 即步骤 103也可 以在步骤 101之前执行, 还可以与步骤 101和步骤 102并行执行。在步骤 104中, 可 以基于颜色信息和像素信息对该待编码图像区域进行比特流编码。
其中, 在进行颜色信息的编码时, 可以仅将颜色表的长度 N 以及颜色索引 Ι1[(>··Ν-1]、 I2[0〜N-1]、 I3[0〜N-1]进行编码; 例如, 将如图 4所示的颜色表的表长 N=9, 以及 Ι1[0···8]、 Ι2[0···8]、 13[0〜8]编入比特流中。 还可以仅将分量表的长度 Ni 以及颜色分量索引 Vi[0〜Ni-l], i=l、 2、 3进行编码; 例如, 将如图 4所示的第一分 量表的表长 Nl, 以及 V1[0〜N1-1]编入比特流中,将如图 4所示的第二分量表的表长 N2, 以及 V2[0〜N2-1]编入比特流中, 将如图 4所示的第三分量表的表长 N3, 以及
V3[0〜N3-1]编入比特流中。 但本发明不限于此, 可以根据实际情况确定具体的编码 信息。
此外, 如果某一分量表的长度等于颜色表的长度, 则意味着该分量表对应的颜色 分量(例如第一颜色分量) 中没有相同的颜色值, 通过按顺序排列即可隐式地使得该 分量表的颜色值与颜色表中的索引对应,则该分量表中的索引信息可以不必编入比特 流中 (例如可以不必将该第一分量表的表长 N1编入比特流中)。
在本实施例中, 还可以通过其他编码单元的信息进行预测, 从而更进一步地提高 编码压缩比。其中, 所述颜色信息还包括对所述三维颜色索引信息进行预测的第一预 测信息, 和 /或对某一维或几维的颜色和索引对应信息进行预测的第二预测信息。
在本实施例中, 如图 3所示的初始颜色表, 可以通过预测标识 (predicted flag) 来表示预测信息。 图 7是本发明实施例的初始颜色信息的另一示例图, 示出了所获得 的包括预测信息的一初始颜色表。 如图 7所示, 例如 predicted flag=l表示已被其他 CU预测, predicted flag=0表示没有被其他 CU预测。 其中关于具体如何进行预测, 可以采用现有技术中的任意一种方法。
对于如图 4所示的颜色表,可以包括对三维颜色索引信息进行预测的第一预测信 息。而对于如图 4所示的三个分量表, 可以包括对某一维或几维的颜色和索引对应信 息进行预测的第二预测信息。其中, 上述对颜色索引的预测和对颜色分量的预测可以 是独立的, 既可以采用其中之一, 也可以都采用。
图 8是本发明实施例的颜色信息的另一示例图,示出了所获得的包含预测信息的 一颜色表以及不包含预测信息的三个分量表。如图 8所示, 颜色表中还包括颜色预测 信息 (第一预测信息); 由于表 7中颜色索引 (color index) 为 0、 2、 3、 6、 7的列已 经被预测, 则只需要对 color index =1、 4、 5、 8的列进行显式表示即可。
图 9是对图 8所示的三个分量表也进行预测的一示例图。如图 9所示, 对于各个 颜色分量, 也可以包括预测信息(第二预测信息, 例如包括第一分量预测信息、 第二 分量预测信息、第三分量预测信息), 而对于没有进行预测的颜色分量进行显式表示。 在进行颜色信息的编码时,可以仅将颜色表的长度 N' 以及颜色索引 ΙΓ [0〜Ν' -1]、 12' [0〜Ν' -1]、 13 ' [0〜Ν' -1]进行编码。 还可以仅将分量表的长度 Ni' 以及颜色 分量索引 Vi' [0〜Ni' -1], i=l、 2、 3进行编码。
在本实施例中,步骤 104中基于颜色信息和像素信息对所述待编码图像区域进行
比特流编码, 具体可以包括: 对编码模式信息进行比特流编码之后, 再对颜色信息进 行比特流编码。
由此, 在对编码模式信息进行比特流编码之后, 非调色板模式的像素个数已经被 获得。 在进行颜色信息的编码时, 不需要再显式地编入相关信息; 例如不需要编入颜 色表的长度信息。 可以更进一步地提高编码压缩比。
在本实施例中,步骤 104中基于颜色信息和像素信息对所述待编码图像区域进行 比特流编码, 具体可以包括: 对像素索引信息进行比特流编码之后, 再对颜色信息进 行比特流编码。
由此, 对像素索引信息进行比特流编码之后, 可以获得最大索引值, 而调色板的 大小即为该最大索引值加 1, 不需要再显式地编入相关信息, 可以更进一步地提高编 码压缩比。
在本实施例中,步骤 104中基于颜色信息和像素信息对所述待编码图像区域进行 比特流编码, 具体还可以包括: 在第二预测信息的个数等于三维颜色索引信息的个数 的情况下, 不对颜色和索弓 I对应信息进行比特流编码。
在第二预测信息的个数等于三维颜色索引信息的个数的情况下,此时对应分量表 中的信息均被预测, 由此不需要显式地加入颜色和索引对应信息, 即可以不对颜色和 索弓 I对应信息进行比特流编码。 可以更进一步地提高编码压缩比。
在本实施例中,步骤 104中基于颜色信息和像素信息对所述待编码图像区域进行 比特流编码, 具体还可以包括: 在某一维的颜色和索引对应信息的个数等于三维颜色 索引信息的个数的情况下,或者在某一维的颜色和索引对应信息的个数与第二预测信 息的个数之和等于三维颜色索引信息的个数的情况下,不对该某一维的索引信息进行 比特流编码。
在分量表不具有预测信息时, 在某一维(例如第一分量)的颜色和索引对应信息 的个数 (例如图 3所示的第一分量表长度 N1 ) 等于三维颜色索引信息的个数 (例如 图 3所示的颜色表长度 N)的情况下, 此时该分量表对应的颜色分量中的信息没有重 复的, 由此可以按照顺序对该分量表中的颜色值进行排列, 通过按顺序排列即可隐式 地使得该分量表的颜色值与颜色表中的索引对应,则该分量表中的索引信息可以不必 编入比特流中。
在分量表具有预测信息时, 在某一维(例如第一分量)的颜色和索引对应信息的
个数(例如图 9所示的第一分量表长度 ΝΓ ) 与第二预测信息的个数(例如图 9所 示的第一分量预测信息的个数)之和等于三维颜色索引信息的个数的情况下, 此时该 分量表对应的颜色分量中的信息没有重复的,由此可以按照顺序对该分量表中的颜色 值进行排列,通过按顺序排列即可隐式地使得该分量表的颜色值与颜色表中的索引对 应, 则该分量表中的索引信息可以不必编入比特流中。
在本实施例中, 可以采用如下的伪代码表示本实施例的图像编码方法: cuo
Palette mode— flag;
If (Palette_mode_flag=l){ //palette mode is used
index bit depth;
NumEscColors =0;
PaletteSize =0;
scanPos = 0;
//the following is pixel information
While(scanPos< nCbS * nCbS ){ // nCbS is the width and height of a coding unit;
esc flag;
If (esc_flag=0){ // not escaped
run— type; //run of copy left or copy above
run;
If (run_type==CopyLeft) { //copy left means the run number pixels has same index value form scan pos pixel.
index;
if(index> PaletteSize -1)
PaletteSize = index+1;
}
scanPos = scanPos+run;
}
Else{
scanPos = scanPos+1;
NumEscColors = NumEscColors +1;
}
}
//the following is color information
for(comp=0;comp<3;comp++){
predNum[comp]=0;
for( i = 0; i < predCompTableSize[comp]; i++ ) { II predCompTableSize is the component table size of predictor.
predict _flag[comp] [ i];
if (predict_flag[comp] [ i]=l){
predNum[comp]++;
}
}
If (pr edNum [ comp ] < Palette Size+ NumEscColors) {
explicit_comp_table_num_entries[comp];
CompTableSize[comp]= pr edNum [comp ] + explicit_comp_table_num_entries [comp];
for(int i=0;i< explicit_comp_table_num_entries [comp],i++)
expli_comp_table[comp] [i];
}
Else{
CompTableSize[comp]= PaletteSize+ NumEscColors; II ==predNum[comp]
} if (CompTableSize[comp]< PaletteSize+ NumEscColors) {
for(int j=0;j< PaletteSize+ NumEscColors;j++)
color table [comp] [j];
}
Else{
for(int j=0;j< predNum[comp];
pred_ index; //which one element in current comp table is predicted by i-th element of predictor.
}
}
}
}
值得注意的是, 以上伪代码仅是本发明实施例的一种实施方式, 但本发明实施例 不限于此。 例如还可以不采用预测信息或者不采用拷贝模式 (例如 copy left或 copy above) 等, 可以根据实际情况确定具体的实施方式。
在本实施例中,可以对编码后的比特流进行解码,解码过程可以对应于编码过程, 具体的实施过程可以参考相关技术, 本实施例不再赘述。
由上述实施例可知, 为采用调色板模式的多个像素生成调色板三维颜色信息, 并 为采用非调色板模式的每个像素生成非调色板三维颜色信息,来获得待编码图像区域 的颜色信息; 以及生成所述待编码图像区域的像素信息; 基于颜色信息和像素信息对 所述待编码图像区域进行比特流编码。 由此, 不仅可以通过采用调色板模式和非调色
板模式来提高编码压缩比,而且可以通过三维颜色索引和三维分量表来提高编码压缩 比, 进一步获得更小的比特代价。 实施例 2
本发明实施例提供一种基于三维调色板的图像编码装置,对应于实施例 1的图像 编码方法, 相同的内容不再赘述。
图 10是本发明实施例的编码装置的一构成示意图。值得注意的是, 附图 10仅示 意性示出了与本发明相关的各部件, 对于编码装置的其他部件没有示出, 可以参考现 有技术。
如图 10所示, 该图像编码装置 1000包括: 初始信息生成单元 1001、 颜色信息 生成单元 1002、 像素信息生成单元 1003和流编码单元 1004;
其中, 初始信息生成单元 1001为待编码图像区域中采用调色板模式的多个像素 生成调色板三维颜色信息,以及为采用非调色板模式的每个像素生成非调色板三维颜 色信息; 颜色信息生成单元 1002基于所述调色板三维颜色信息和所述非调色板三维 颜色信息生成所述待编码图像区域的颜色信息,其中所述颜色信息包括三维颜色索引 信息以及为每一维分别生成的颜色和索引对应信息; 像素信息生成单元 1003生成所 述待编码图像区域的像素信息,其中所述像素信息包括编码模式信息以及为采用调色 板模式的多个像素生成的像素索引信息; 流编码单元 1004基于所述颜色信息和所述 像素信息对所述待编码图像区域进行比特流编码。
在一个实施方式中,所述颜色信息还可以包括对所述三维颜色索引信息进行预测 的第一预测信息, 和 /或对某一维或几维的颜色和索引对应信息进行预测的第二预测 信息。
在一个实施方式中, 流编码单元 1004具体可以用于: 对所述编码模式信息进行 比特流编码之后, 再对所述颜色信息进行比特流编码。
在另一个实施方式中, 流编码单元 1004具体可以用于: 对所述像素索引信息进 行比特流编码之后, 再对所述颜色信息进行比特流编码。
在另一个实施方式中, 流编码单元 1004具体可以用于: 在所述第二预测信息的 个数等于所述三维颜色索弓 I信息的个数的情况下,不对所述颜色和索弓 I对应信息进行 比特流编码。
在另一个实施方式中, 流编码单元 1004具体可以用于: 在所述某一维的颜色和 索引对应信息的个数与所述第二预测信息的个数之和等于所述三维颜色索引信息的 个数的情况下, 不对所述某一维的索引信息进行比特流编码。
在另一个实施方式中, 流编码单元 1004具体可以用于: 在所述某一维的颜色和 索引对应信息的个数等于所述三维颜色索引信息的个数的情况下,不对所述某一维的 索引信息进行比特流编码。
由上述实施例可知, 为采用调色板模式的多个像素生成调色板三维颜色信息, 并 为采用非调色板模式的每个像素生成非调色板三维颜色信息,来获得待编码图像区域 的颜色信息; 以及生成所述待编码图像区域的像素信息; 基于颜色信息和像素信息对 所述待编码图像区域进行比特流编码。 由此, 不仅可以通过采用调色板模式和非调色 板模式来提高编码压缩比,而且可以通过三维颜色索引和三维分量表来提高编码压缩 比, 进一步获得更小的比特代价。 实施例 3
本发明实施例提供一种图像处理设备, 所述图像处理设备包括: 如实施例 2所述 的图像编码装置; 以及解码装置, 对比特流进行解码以获得图像。
图 11是本发明实施例的图像处理设备的一构成示意图。如图 11所示, 图像处理 设备 1100可以包括: 中央处理器(CPU) 200和存储器 210; 存储器 210耦合到中央 处理器 200。 其中该存储器 210可存储各种数据; 此外还存储信息处理的程序, 并且 在中央处理器 200的控制下执行该程序。
在一个实施方式中,图像编码装置 1000的功能可以被集成到中央处理器 200中。 其中, 中央处理器 200可以被配置为实现如实施例 1所述的图像编码方法。
在另一个实施方式中, 图像编码装置 1000可以与中央处理器分开配置, 例如可 以将图像编码装置 1000配置为与中央处理器 200连接的芯片, 通过中央处理器的控 制来实现图像编码装置 1000的功能。
此外, 如图 11所示, 图像处理设备 1100还可以包括: 输入输出单元 220和显示 单元 230等; 其中,上述部件的功能与现有技术类似,此处不再赘述。值得注意的是, 图像处理设备 1100也并不是必须要包括图 11中所示的所有部件; 此外, 图像处理设 备 1100还可以包括图 11中没有示出的部件, 可以参考现有技术。
本发明实施例还提供一种计算机可读程序,其中当在图像处理设备中执行所述程 序时,所述程序使得计算机在所述图像处理设备中执行实施例 1所述的基于三维调色 板的图像编码方法。
本发明实施例还提供一种存储有计算机可读程序的存储介质,其中所述计算机可 读程序使得计算机在图像处理设备中执行实施例 1 所述的基于三维调色板的图像编 码方法。
本发明以上的装置和方法可以由硬件实现, 也可以由硬件结合软件实现。 本发明 涉及这样的计算机可读程序, 当该程序被逻辑部件所执行时, 能够使该逻辑部件实现 上文所述的装置或构成部件, 或使该逻辑部件实现上文所述的各种方法或步骤。 本发 明还涉及用于存储以上程序的存储介质, 如硬盘、磁盘、光盘、 DVD、 flash存储器等。
针对附图中描述的功能方框中的一个或多个和 /或功能方框的一个或多个组合, 可以实现为用于执行本申请所描述功能的通用处理器、 数字信号处理器 (DSP)、 专 用集成电路 (ASIC)、 现场可编程门阵列 (FPGA) 或者其它可编程逻辑器件、 分立 门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方 框中的一个或多个和 /或功能方框的一个或多个组合, 还可以实现为计算设备的组合, 例如, DSP和微处理器的组合、 多个微处理器、 与 DSP通信结合的一个或多个微处 理器或者任何其它这种配置。
以上结合具体的实施方式对本发明进行了描述, 但本领域技术人员应该清楚, 这 些描述都是示例性的, 并不是对本发明保护范围的限制。 本领域技术人员可以根据本 发明的精神和原理对本发明做出各种变型和修改, 这些变型和修改也在本发明的范围 内。
Claims
1、 一种基于三维调色板的图像编码方法, 其特征在于, 所述图像编码方法包括: 为待编码图像区域中采用调色板模式的多个像素生成调色板三维颜色信息,以及 为采用非调色板模式的每个像素生成非调色板三维颜色信息;
基于所述调色板三维颜色信息和所述非调色板三维颜色信息生成所述待编码图 像区域的颜色信息,其中所述颜色信息包括三维颜色索引信息以及为每一维分别生成 的颜色和索引对应信息;
生成所述待编码图像区域的像素信息,其中所述像素信息包括编码模式信息以及 为采用调色板模式的多个像素生成的像素索引信息;
基于所述颜色信息和所述像素信息对所述待编码图像区域进行比特流编码。
2、 根据权利要求 1所述的图像编码方法, 其中, 所述颜色信息还包括对所述三 维颜色索引信息进行预测的第一预测信息, 和 /或对某一维或几维的颜色和索引对应 信息进行预测的第二预测信息。
3、 根据权利要求 1所述的图像编码方法, 其中, 每一维的所述颜色和索引对应 信息包括互不相等的颜色值以及与所述颜色值对应的索引值。
4、 根据权利要求 1所述的图像编码方法, 其中, 基于所述颜色信息和所述像素 信息对所述待编码图像区域进行比特流编码包括:
对所述编码模式信息进行比特流编码之后, 再对所述颜色信息进行比特流编码。
5、 根据权利要求 1所述的图像编码方法, 其中, 基于所述颜色信息和所述像素 信息对所述待编码图像区域进行比特流编码包括:
对所述像素索引信息进行比特流编码之后, 再对所述颜色信息进行比特流编码。
6、 根据权利要求 2所述的图像编码方法, 其中, 基于所述颜色信息和所述像素 信息对所述待编码图像区域进行比特流编码包括:
在所述第二预测信息的个数等于所述三维颜色索引信息的个数的情况下,不对所 述颜色和索弓 I对应信息进行比特流编码。
7、 根据权利要求 2所述的图像编码方法, 其中, 基于所述颜色信息和所述像素 信息对所述待编码图像区域进行比特流编码包括:
在所述某一维的颜色和索引对应信息的个数与所述第二预测信息的个数之和等
于所述三维颜色索引信息的个数的情况下,不对所述某一维的索引信息进行比特流编 码。
8、 根据权利要求 1所述的图像编码方法, 其中, 基于所述颜色信息和所述像素 信息对所述待编码图像区域进行比特流编码包括:
在所述某一维的颜色和索引对应信息的个数等于所述三维颜色索引信息的个数 的情况下, 不对所述某一维的索引信息进行比特流编码。
9、 一种基于三维调色板的图像编码装置, 其特征在于, 所述图像编码装置包括: 初始信息生成单元,为待编码图像区域中采用调色板模式的多个像素生成调色板 三维颜色信息, 以及为采用非调色板模式的每个像素生成非调色板三维颜色信息; 颜色信息生成单元,基于所述调色板三维颜色信息和所述非调色板三维颜色信息 生成所述待编码图像区域的颜色信息,其中所述颜色信息包括三维颜色索引信息以及 为每一维分别生成的颜色和索引对应信息;
像素信息生成单元, 生成所述待编码图像区域的像素信息, 其中所述像素信息包 括编码模式信息以及为采用调色板模式的多个像素生成的像素索引信息;
流编码单元,基于所述颜色信息和所述像素信息对所述待编码图像区域进行比特 流编码。
10、 根据权利要求 9所述的图像编码装置, 其中, 所述颜色信息还包括对所述三 维颜色索引信息进行预测的第一预测信息, 和 /或对某一维或几维的颜色和索引对应 信息进行预测的第二预测信息。
11、 根据权利要求 9所述的图像编码装置, 其中, 每一维的所述颜色和索引对应 信息包括互不相等的颜色值以及与所述颜色值对应的索引值。
12、 根据权利要求 9所述的图像编码装置, 其中, 所述流编码单元具体用于: 对 所述编码模式信息进行比特流编码之后, 再对所述颜色信息进行比特流编码。
13、 根据权利要求 9所述的图像编码装置, 其中, 所述流编码单元具体用于: 对 所述像素索弓 I信息进行比特流编码之后, 再对所述颜色信息进行比特流编码。
14、 根据权利要求 10所述的图像编码装置, 其中, 所述流编码单元具体用于: 在所述第二预测信息的个数等于所述三维颜色索引信息的个数的情况下,不对所述颜 色和索引对应信息进行比特流编码。
15、 根据权利要求 10所述的图像编码装置, 其中, 所述流编码单元具体用于:
在所述某一维的颜色和索引对应信息的个数与所述第二预测信息的个数之和等于所 述三维颜色索引信息的个数的情况下, 不对所述某一维的索引信息进行比特流编码。
16、 根据权利要求 9所述的图像编码装置, 其中, 所述流编码单元具体用于: 在 所述某一维的颜色和索引对应信息的个数等于所述三维颜色索引信息的个数的情况 下, 不对所述某一维的索引信息进行比特流编码。
17、 一种图像处理设备, 所述图像处理设备包括:
如权利要求 9所述的基于三维调色板的图像编码装置; 以及
图像解码装置, 对比特流进行解码以获得图像。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201480072693.3A CN105900422B (zh) | 2014-06-12 | 2014-06-12 | 基于三维调色板的图像编码方法、装置以及图像处理设备 |
| PCT/CN2014/079724 WO2015188342A1 (zh) | 2014-06-12 | 2014-06-12 | 基于三维调色板的图像编码方法、装置以及图像处理设备 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2014/079724 WO2015188342A1 (zh) | 2014-06-12 | 2014-06-12 | 基于三维调色板的图像编码方法、装置以及图像处理设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2015188342A1 true WO2015188342A1 (zh) | 2015-12-17 |
Family
ID=54832720
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2014/079724 Ceased WO2015188342A1 (zh) | 2014-06-12 | 2014-06-12 | 基于三维调色板的图像编码方法、装置以及图像处理设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105900422B (zh) |
| WO (1) | WO2015188342A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677279A (zh) * | 2016-01-08 | 2016-06-15 | 全时云商务服务股份有限公司 | 桌面区域共享方法、系统及相应的共享端和观看端 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116996687B (zh) * | 2023-07-21 | 2024-07-26 | 深圳市战音科技有限公司 | 一种图像拆分编码方法、装置及电子设备 |
Citations (6)
| 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 |
| US20030076993A1 (en) * | 2001-10-19 | 2003-04-24 | Sharp Laboratories Of America, Inc. | Palette-based image compression method, system and data file |
| CN1438614A (zh) * | 2002-02-15 | 2003-08-27 | 西门子公司 | 用检查体的三维体数据显示投影图像或截面图像的方法 |
| CN101340587A (zh) * | 2007-07-05 | 2009-01-07 | 联发科技股份有限公司 | 编码输入图像的方法以及播放已编码图像的方法及装置 |
| CN102510434A (zh) * | 2011-09-30 | 2012-06-20 | 深圳市融创天下科技股份有限公司 | 一种图像数据发送、恢复方法、装置及终端 |
| CN102523367A (zh) * | 2011-12-29 | 2012-06-27 | 北京创想空间商务通信服务有限公司 | 基于多调色板的实时图像压缩和还原方法 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102075752A (zh) * | 2011-01-11 | 2011-05-25 | 北京北纬点易信息技术有限公司 | 嵌入式系统的图像编码、解码方法和装置 |
-
2014
- 2014-06-12 CN CN201480072693.3A patent/CN105900422B/zh not_active Expired - Fee Related
- 2014-06-12 WO PCT/CN2014/079724 patent/WO2015188342A1/zh not_active Ceased
Patent Citations (6)
| 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 |
| US20030076993A1 (en) * | 2001-10-19 | 2003-04-24 | Sharp Laboratories Of America, Inc. | Palette-based image compression method, system and data file |
| CN1438614A (zh) * | 2002-02-15 | 2003-08-27 | 西门子公司 | 用检查体的三维体数据显示投影图像或截面图像的方法 |
| CN101340587A (zh) * | 2007-07-05 | 2009-01-07 | 联发科技股份有限公司 | 编码输入图像的方法以及播放已编码图像的方法及装置 |
| CN102510434A (zh) * | 2011-09-30 | 2012-06-20 | 深圳市融创天下科技股份有限公司 | 一种图像数据发送、恢复方法、装置及终端 |
| CN102523367A (zh) * | 2011-12-29 | 2012-06-27 | 北京创想空间商务通信服务有限公司 | 基于多调色板的实时图像压缩和还原方法 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677279A (zh) * | 2016-01-08 | 2016-06-15 | 全时云商务服务股份有限公司 | 桌面区域共享方法、系统及相应的共享端和观看端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105900422B (zh) | 2018-02-06 |
| CN105900422A (zh) | 2016-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7549109B2 (ja) | ビデオ符号化及び復号のための適応的伝達関数 | |
| CN103237216B (zh) | 深度图像的编解码方法和编解码装置 | |
| US10397612B2 (en) | Three-dimensional video encoding method, three-dimensional video decoding method, and related apparatus | |
| KR20130018413A (ko) | 랜덤 액세스 능력을 갖는 이미지 압축 방법 | |
| KR20130062109A (ko) | 영상의 부호화 방법 및 장치, 그 복호화 방법 및 장치 | |
| CN106341692A (zh) | 图像数据的霍夫曼解码装置和方法 | |
| JP2018522467A (ja) | 画像符号化方法、画像復号方法、符号化デバイス、および復号デバイス | |
| WO2017063168A1 (zh) | 图像编码方法、装置以及图像处理设备 | |
| CN112616058B (zh) | 视频编码或解码方法、装置、计算机设备和存储介质 | |
| WO2015188342A1 (zh) | 基于三维调色板的图像编码方法、装置以及图像处理设备 | |
| WO2014154074A1 (zh) | 一种深度信息编解码方法、装置及视频处理播放设备 | |
| CN112449191A (zh) | 压缩多个图像的方法、解压缩图像的方法和装置 | |
| CN111669598B (zh) | 用于图像压缩的混合调色板-dpcm编码 | |
| WO2015192340A1 (zh) | 基于调色板的图像编码方法、装置以及图像处理设备 | |
| CN114827613B (zh) | 视频编码方法、计算机设备及计算机可读存储介质 | |
| CN105323589B (zh) | 应用于视频系统的编码/解码方法及编码/解码装置 | |
| WO2015180139A1 (zh) | 图像编码方法、装置以及图像处理设备 | |
| CN112449188B (zh) | 视频解码方法、编码方法、装置、介质及电子设备 | |
| WO2016192053A1 (zh) | 拷贝信息的编码方法、装置以及图像处理设备 | |
| WO2015139180A1 (zh) | 图像编码方法、装置以及图像处理设备 | |
| WO2016029419A1 (zh) | 图像编码方法、装置以及图像处理设备 | |
| WO2015139176A1 (zh) | 基于调色板的编码装置、方法以及图像处理设备 | |
| CN117676143A (zh) | 一种编解码方法及装置 | |
| WO2016197317A1 (zh) | 拷贝信息的编解码方法、装置以及图像处理设备 | |
| WO2016029420A1 (zh) | 基于调色板的图像编码方法、装置以及图像处理设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14894355 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14894355 Country of ref document: EP Kind code of ref document: A1 |