WO2014166433A1 - Depth-image encoding and decoding methods and encoding/decoding device - Google Patents

Depth-image encoding and decoding methods and encoding/decoding device Download PDF

Info

Publication number
WO2014166433A1
WO2014166433A1 PCT/CN2014/075234 CN2014075234W WO2014166433A1 WO 2014166433 A1 WO2014166433 A1 WO 2014166433A1 CN 2014075234 W CN2014075234 W CN 2014075234W WO 2014166433 A1 WO2014166433 A1 WO 2014166433A1
Authority
WO
WIPO (PCT)
Prior art keywords
image block
value
current image
pixel
residual
Prior art date
Application number
PCT/CN2014/075234
Other languages
French (fr)
Chinese (zh)
Inventor
郑萧桢
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014166433A1 publication Critical patent/WO2014166433A1/en

Links

Classifications

    • 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
    • H04N19/597Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding specially adapted for multi-view video sequence encoding

Definitions

  • Embodiments of the present invention relate to image processing technologies, and in particular, to a codec method and a codec device for a depth image.
  • Background Art In a three-dimensional video image system, two types of images, a visual image and a depth image, are included, and the visual image contains information of the image itself, such as color information, and the depth image contains depth information of the visual image, such as contour information.
  • the video image In the transmission of the three-dimensional video image, in order to reduce the bandwidth occupied by the video transmission, the video image needs to be encoded, including encoding the visual image and the depth image to reduce the size of the three-dimensional video image data.
  • an intra-frame prediction method is used for encoding a depth image in a three-dimensional video image system.
  • the encoding end divides the image block to be encoded into one or more sub-image blocks, obtains an intra prediction mode of the current image block, and obtains prediction data of the current image block according to the intra prediction mode, where the image block and the image block
  • the divided sub-image blocks are generally referred to collectively as image blocks, and the prediction data of the image blocks is used as prediction data of the current image block codec, which is derived from pixel data of adjacent blocks that have been encoded or decoded, or codec.
  • the encoding end performs a point-by-point difference between the pixel value of each pixel in the image block and the pixel value of each pixel corresponding to the prediction data (or the data of the reference block generated by the prediction data) to obtain a residual matrix, and the residual matrix
  • the difference matrix performs quantization, transform and entropy coding, and sends the code stream obtained by entropy coding to the decoding end.
  • the decoding end reads the bit stream from the obtained code stream, performs inverse quantization and inverse coding, and obtains a corresponding residual, obtains prediction data of the current image block according to the intra prediction mode, and uses the residual of the current image block and the prediction data.
  • the pixel values (or the pixel values of the reference blocks generated from the prediction data) are added to obtain the pixel values of the current image block.
  • the pixel average of the image block and the pixel mean of the reference image block are calculated by the prior art method, and the encoding and decoding efficiency is not high.
  • a first aspect of the embodiments of the present invention provides a method for encoding a depth image, including: obtaining prediction data of a current image block of a depth image, and obtaining a predicted pixel value in the prediction data according to a preset step size, according to the prediction The pixel value calculates a first mean value of the prediction data, and the preset step size is a positive integer that is not 1;
  • the residual of the current image block is encoded.
  • the obtaining a residual according to a first average of the prediction data and a pixel value of a pixel of the image block includes:
  • the obtaining the predicted pixel value in the prediction data according to the preset step size includes:
  • the method further includes:
  • the value of the preset step size is encoded.
  • the preset step size is used to identify the prediction The interval between data position coordinates.
  • the residual of the current image block Coding including:
  • the residual map value is encoded.
  • a sixth possible implementation manner Before obtaining predicted pixel values in the forecast data, it also includes:
  • the intra prediction mode set includes at least one intra prediction mode:
  • Wedgelet Wedgelet mode based on intra prediction mode.
  • a second aspect of the embodiments of the present invention provides a method for decoding a depth image, including: obtaining prediction data of a current image block of a depth image, and obtaining a predicted pixel value in the prediction data according to a preset step size, according to the prediction The pixel value calculates a first mean value of the prediction data, and the preset step size is a positive integer that is not 1;
  • a pixel value of a pixel of the current image block is obtained according to a first mean of the prediction data and a residual of the current image block.
  • the obtaining the pixel value of the pixel of the current image block according to the first average of the prediction data and the residual of the current image block includes: Adding a first mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block; or
  • the obtaining the predicted pixel value in the prediction data according to the preset step size includes:
  • the method further includes:
  • the parsing code stream obtains a value identifying the step size.
  • the preset step size is used to identify Predict the interval between data position coordinates.
  • the obtaining the residual of the current image block Poor including:
  • Mapping the residual mapping value to a residual using the residual as a residual of the current image block, indicating that the bit of the residual mapping value is smaller than a bit representing the residual.
  • the method Before obtaining the predicted pixel value in the predicted data, the method further includes:
  • Determining whether the intra prediction mode belongs to a preset according to an intra prediction mode of a current image block If so, it is determined that the predicted pixel value is obtained in the prediction data according to the preset step size.
  • the intra prediction mode set includes at least one intra prediction mode:
  • Wedgelet Wedgelet mode based on intra prediction mode.
  • a third aspect of the embodiments of the present invention provides a coding apparatus for a depth image, including: a first processing module, configured to obtain prediction data of a current image block of a depth image, and obtain a prediction in the prediction data according to a preset step size. a pixel value, a first average value of the prediction data is calculated according to the predicted pixel value, where the preset step size is a positive integer that is not 1;
  • a second processing module configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
  • an encoding module configured to encode a residual of the current image block.
  • the second processing module is configured to perform a difference between a pixel point of the current image block and a first average value of prediction data of the current image block, a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining a pixel value in the data of the current image block according to a preset step size, according to a pixel value of the data of the current image block Calculating a second mean value of the data of the current image block, and comparing a second mean value of the data of the current image block with a first mean value of the predicted data of the current image block to obtain a residual of the current image block .
  • the first processing module is configured to obtain a predicted pixel value according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or Obtaining a predicted pixel value according to the unequal step size of the horizontal direction and the vertical direction according to the size of the current image block; or determining the preset step size according to the size of the current image block, according to the preset The step size gets the predicted pixel value.
  • the coding module is further configured to The value of the preset step size is encoded.
  • the preset step size is used to identify the prediction The interval between data position coordinates.
  • the coding module is specifically used to The residual is mapped to a residual map value, and the bit of the residual map value is smaller than a bit representing the residual, and the residual map value is encoded.
  • the first processing module is further configured to Determining, by the intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if so, determining to obtain the predicted pixel in the prediction data according to the preset step size value.
  • the intra prediction mode set includes at least one intra prediction mode:
  • Wedgelet Wedgelet mode based on intra prediction mode.
  • a fourth aspect of the embodiments of the present invention provides a decoding apparatus for a depth image, including: a processing module, configured to obtain prediction data of a current image block of a depth image, and obtain a predicted pixel value in the prediction data according to a preset step size. Calculating a first mean value of the prediction data according to the predicted pixel value, where the preset step size is a positive integer that is not 1;
  • a decoding module configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to a first average of the prediction data and a residual of the current image block.
  • the decoding module is specifically configured to add a first average value of the prediction data of the current image block to a residual of the current image block, to obtain the a pixel value of a pixel of the current image block; or, adding a first mean value of the prediction data of the current image block to the residual to obtain a pixel mean of the current image block, where the current image block is The pixel mean is the pixel value of the pixel of the current image block.
  • the processing module is specifically configured to obtain a predicted pixel value according to an equal step size of a horizontal direction and a vertical direction according to a size of the current image block; or Determining the size of the current image block to obtain a predicted pixel value in an unequal step in the horizontal direction and the vertical direction; or determining the preset step size according to the size of the current image block, according to the preset step size The predicted pixel value is obtained.
  • the decoding module is further configured to obtain a code stream. Identifies the value of the step size.
  • the preset step size is used to identify the prediction The interval between data position coordinates.
  • the decoding module is specifically configured to use the current Performing a decoding process on the coding result of the image block to obtain a residual mapping value of the current image block, mapping the residual mapping value into a residual, and using the residual as a residual of the current image block, indicating The bit of the residual map value is less than the bit representing the residual.
  • the processing module is further configured to use the current image block
  • the intra prediction mode determines whether the intra prediction mode belongs to a preset intra prediction mode set, and if so, determines to obtain the predicted pixel value in the prediction data according to the preset step size.
  • the intra prediction mode set includes at least one intra prediction mode:
  • Wedgelet Wedgelet mode based on intra prediction mode.
  • a fifth aspect of the embodiments of the present invention provides a method for encoding a depth image, including: obtaining prediction data of a current image block of a depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, and obtaining a corresponding pixel value. Arithmetic value, arithmetic according to the corresponding pixel value Calculating a first mean value of the predicted data;
  • the residual of the current image block is encoded.
  • performing an arithmetic operation on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value including:
  • An averaging operation is performed on every N pixel points in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is taken as an arithmetic value of the corresponding pixel.
  • the residual is obtained according to the first average of the prediction data and the pixel value of the pixel of the image block , including:
  • obtaining data of the current image block of the depth image obtaining the pixel value in the data of the current image block according to a preset step size, and calculating a second mean value of the data of the image block according to the pixel value,
  • the second mean of the image block is different from the first mean of the reference image block of the current image block to obtain a residual of the current image block.
  • a sixth aspect of the embodiments of the present invention provides a method for decoding a depth image, including: obtaining prediction data corresponding to a current image block of a depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, and obtaining corresponding pixels. An arithmetic value of the value, calculating a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value;
  • a pixel value of a pixel point of the current image block is obtained according to an average of the prediction data and a residual of the current image block.
  • performing an arithmetic operation on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value including:
  • the current is obtained according to the mean value of the prediction data and a residual of the current image block
  • the pixel value of the pixel of the image block including:
  • a seventh aspect of the embodiments of the present invention provides a coding apparatus for a depth image, including: a first processing module, configured to obtain prediction data corresponding to a current image block of a depth image, and for each N pixel points in a pixel in the prediction data Performing an arithmetic operation, obtaining an arithmetic value of a corresponding pixel value, and calculating a first mean value of the predicted data according to an arithmetic value of the corresponding pixel value;
  • a second processing module configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
  • an encoding module configured to encode a residual of the current image block.
  • the first processing module is specifically configured to perform an averaging operation on each of the N pixel points in the predicted data to obtain an average pixel value,
  • the average pixel value is taken as the arithmetic value of the corresponding pixel.
  • the second processing module is specifically configured to: the pixel of the image block and the current image block Obtaining a difference between the first mean value of the prediction data to obtain a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining the pixel in data of the current image block according to a preset step size a value, a second mean value of the data of the image block is calculated according to the pixel value, and a second mean value of the image block is compared with a first mean value of a reference image block of the current image block to obtain the current image.
  • the residual of the block is specifically configured to: the pixel of the image block and the current image block Obtaining a difference between the first mean value of the prediction data to obtain a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining the pixel in data of the current image block according to a preset step size a value, a second mean value of the data of the image block is calculated according to the pixel value, and
  • An eighth aspect of the present invention provides a decoding apparatus for a depth image, including:
  • a processing module configured to obtain prediction data corresponding to a current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, and obtain an arithmetic value of the corresponding pixel value, according to an arithmetic value of the corresponding pixel value Calculating a first mean value of the predicted data;
  • a decoding module configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to an average of the prediction data and a residual of the current image block.
  • the processing module is specifically configured to An average operation is performed for every N pixels in the current image block and the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel value.
  • the decoding module is specifically configured to use an average of prediction data of the current image block and the current image Adding a residual of the block to obtain a pixel value of a pixel of the current image block; or, adding a mean value of the prediction data of the current image block to the residual to obtain a pixel mean of the current image block And using a pixel average of the current image block as a pixel value of a pixel point of the current image block.
  • the codec method and the codec device of the depth image obtained by the embodiment of the present invention obtain the predicted pixel value in the prediction data according to the preset step size by obtaining the prediction data corresponding to the current image block of the depth image, according to the prediction.
  • a pixel value calculates a first mean value of the prediction data, the preset step size is a positive integer that is not 1; obtaining a current image according to a first mean value of the prediction data and a pixel value of a pixel point of the current image block Residual of the block; encoding the residual of the current image block, may reduce the number of reference pixels of the prediction data of the current image block, and thus, when calculating the first mean value of the prediction data of the current image block, The amount of calculation is significantly reduced, so that the coding efficiency can be improved.
  • the decoding end when the decoding end performs the decoding process on the current image block, the calculation amount of the decoding process using the decoding method corresponding to the encoding method of the encoding end is also significantly reduced. Therefore, the technical solution of the embodiment of the present invention can be effectively improved. Codec efficiency.
  • Embodiment 1 is a schematic flow chart of Embodiment 1 of a method for encoding a depth image according to the present invention
  • FIG. 2 is a schematic diagram of an image block according to Embodiment 1 of a method for encoding a depth image according to the present invention
  • Embodiment 3 is a schematic flowchart of Embodiment 2 of a method for encoding a depth image according to the present invention
  • FIG. 4 is a schematic flowchart of Embodiment 1 of a method for decoding a depth image according to the present invention
  • 5 is a schematic flowchart of Embodiment 2 of a method for decoding a depth image according to the present invention
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of a device for encoding a depth image according to the present invention
  • Embodiment 7 is a schematic structural diagram of Embodiment 1 of a decoding apparatus for a depth image according to the present invention.
  • Embodiment 8 is a schematic flowchart of Embodiment 3 of a method for encoding a depth image according to the present invention.
  • Embodiment 9 is a schematic flowchart of Embodiment 3 of a method for decoding a depth image according to the present invention.
  • Embodiment 2 of a depth image encoding apparatus according to the present invention
  • FIG. 11 is a schematic structural diagram of Embodiment 2 of a decoding apparatus for a depth image according to the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the depth image contains depth information of the view image, for example, contour information.
  • the depth image is characterized by a smoother texture in most areas. Usually, only the edge information of Rayleigh is included at the boundary of the object, and the pixels in the depth image are The values are relatively simple and the distribution is uniform. Therefore, when each prediction of the depth image is encoded by the intra prediction method, the pixel mean of the image block to be encoded is used between the pixel mean of the reference image block corresponding to the image block. The residual is coded.
  • the depth image block is divided into image blocks, the size is usually larger.
  • the image block contains less texture information
  • the embodiment of the present invention combines the feature that the large size image block contains less texture information, between the pixel mean value of the image block to be encoded and the pixel mean value of the reference image block corresponding to the image block.
  • the image block is identical to the reference image block corresponding to the image block.
  • the punctured pixel the pixel mean of the reference image block and the pixel mean of the reference image block corresponding to the image block are obtained, so as to reduce the calculation amount at the time of encoding and improve the coding efficiency.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for encoding a depth image according to the present invention.
  • the execution body of the embodiment is an encoding device, and the method of this embodiment includes:
  • S101 Obtain a prediction data corresponding to a current image block of the depth image, according to a preset step size
  • the predicted pixel value is obtained in the measured data, and the first mean value of the predicted data is calculated according to the predicted pixel value, and the preset step size is a positive integer not being 1.
  • the preset step size may be used to identify an interval between predicted data position coordinates.
  • the process of obtaining the predicted pixel value in the prediction data according to the preset step size by the encoding end is a process of performing the sampling on the prediction data.
  • each square represents a pixel
  • the size of the prediction data of the current image block is 8 x 8, that is, 64 pixels. pixel.
  • the predicted data of the current image block can be processed 2:1, that is, one pixel is spaced once in the horizontal direction and the vertical direction, and one pixel is obtained.
  • the predicted pixel value can be obtained.
  • the black pixel shown in Fig. 2 is the predicted pixel value, and the number of predicted pixel values is 16.
  • the encoding end may calculate a first mean value of the prediction data according to the predicted pixel value, and obtain a residual according to the first mean value of the predicted data and the pixel value of the pixel point of the image block.
  • the reference image block corresponding to the current image block may be processed by the processing procedure corresponding to the encoding end, thereby further improving the decoding efficiency.
  • the preset step size is a positive integer not being 1; a residual is obtained according to the first mean of the prediction data and the pixel value of the pixel of the current image block; encoding the residual of the current image block, the reference pixel of the prediction data of the current image block may be reduced Therefore, when calculating the first mean value of the prediction data of the current image block, the calculation amount is significantly reduced, so that the coding efficiency can be improved.
  • the decoding end when the decoding end performs decoding processing on the current image block, the calculation amount of the decoding process using the decoding method corresponding to the encoding method of the encoding end is also significantly reduced. Therefore, the technical solution of the embodiment can effectively improve the editing. Decoding efficiency.
  • Method 1 The pixel of the current image block is compared with the first average of the prediction data of the current image block. Poor, get the residual of the current image block; or,
  • the second method is: obtaining data of the current image block of the depth image, obtaining a predicted pixel value in the data of the current image block according to the preset step size, and calculating a second mean value of the data of the current image block according to the pixel value of the data of the current image block, The second mean value of the data of the current image block is compared with the first mean value of the prediction data of the current image block to obtain a residual of the current image block, and at this time, the image block has only one residual value.
  • the foregoing method 2 can reduce the number of reference pixel points of the data of the current image block, so that when calculating the second mean value of the data of the current image block, the calculation amount is significantly reduced, thereby further improving the coding efficiency. .
  • the process of obtaining the pixel value in the data of the current image block according to the preset step size is similar to the process of obtaining the predicted pixel value in the prediction data of the current image block according to the preset step size. , will not repeat them here.
  • FIG. 3 is a schematic flowchart of the second embodiment of the method for encoding a depth image according to the present invention.
  • the execution subject of the embodiment is an encoding device, and the method of the embodiment includes :
  • S301 Determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set; if yes, execute S302 ⁇ 306, if not, execute S307.
  • S302 Determine to perform a sample processing on the current image block and the reference image block corresponding to the current image block.
  • the intra prediction mode set in this embodiment includes at least a DC mode, a Planar mode, a displayed identification mode, and an intra prediction mode based mode, and the current image block and the reference image block are performed according to a preset lowering rule.
  • a preset set of intra prediction modes is a set of intra prediction modes that have been tested to show that the encoding method of S302 S306 can obtain better encoding processing performance.
  • steps S301 and S302 are optional steps, and may not be performed, and S303 ⁇ S306 are directly executed.
  • S303: Obtain data of a current image block of the depth image, obtain a predicted pixel value in the data of the current image block according to the preset step size, obtain prediction data corresponding to the current image block of the depth image, and obtain the predicted data according to the preset step size. Get the predicted pixel value.
  • obtaining the predicted pixel value in the data of the current image block according to the preset step size, or obtaining the predicted pixel value in the prediction data according to the preset step size may be implemented in the following three manners:
  • Method 1 obtaining equal prediction steps in the horizontal direction and the vertical direction according to the size of the current image block
  • the current image block size is 64 ⁇ 64
  • the horizontal and vertical directions are 4:1 to obtain the predicted pixel value
  • the predicted pixel values are obtained.
  • the number is 16 x 16.
  • Manner 2 The non-equal step size in the horizontal direction and the vertical direction is obtained according to the size of the current image block to obtain a predicted pixel value.
  • the step size in the horizontal direction is 2, and the step size in the vertical direction is 4 to obtain the predicted pixel value.
  • the horizontal direction is 2:1 to obtain the horizontal direction.
  • the predicted pixel value on the upper side is 4:1 in the vertical direction to obtain the predicted pixel value in the vertical direction, and the number of predicted pixel values obtained is 8 ⁇ 4.
  • Method 3 Determine the step size according to the size of the current image block, and obtain the predicted pixel value according to the step size. Taking 32 X 32 and 64 X 64 image blocks as an example, let 32 ⁇ 32 image blocks have a horizontal and vertical step size of 2, and 32 x 32 image blocks have a horizontal and vertical step size of 4, for these two sizes. The number of predicted pixel values obtained by the image block is 16 X 16 .
  • the decoding end can perform decoding processing by using a processing procedure corresponding to the encoding end.
  • the foregoing process of obtaining the predicted pixel value in a preset step size may be preset by the encoding end and the decoding end, or may not be preset.
  • the encoding end compares the processing results of the values of the respective step sizes to determine an optimal step size for processing, and at the time of encoding,
  • the value of the preset step size is encoded, so that the decoding end performs corresponding processing according to the value of the step size of the identifier.
  • S304 Calculate a first mean value of the prediction data according to the predicted pixel value, and calculate a second mean value of the data of the current image block according to the pixel value of the data of the current image block.
  • S305 Perform a difference between the second mean value of the data of the current image block and the first mean value of the prediction data of the current image block to obtain a residual of the current image block.
  • the encoding process of the residual includes at least the following implementation manners: The first implementation manner: quantizing the residual, quantizing the residual to a smaller value, and using less The bit is encoded, and accordingly, at the decoding end, the inverse quantization process is performed using the same quantization scale, and the result of the inverse quantization process is used as the residual used.
  • the second implementation manner is: directly encoding the residual, and correspondingly, the decoding end decodes the residual, and uses the decoding processing result as the residual used to avoid the compression loss caused by the quantization.
  • the residual is mapped to another residual, and another residual is encoded, indicating that the bit of another residual is smaller than the bit representing the residual, thereby further improving coding in a specific implementation. It can be mapped according to the mapping table. For example, if the pixel values in the depth image are 8, 64, 164, 240, 245, then the pixel values in the corresponding mapping table are 1, 2, 3, 4, 5, and in this way, the coding bits can be reduced to further Improve coding efficiency.
  • the residual matrix obtained by performing the point-by-point difference between the data of the current image block and the pixel value of the reference data of the current image block may be encoded to obtain a coding result, or the method of Wedgelet may be used.
  • a residual matrix obtained by subtracting a constant value from each pixel in the current image block is subjected to an encoding process to obtain a coding result, which is not described in detail in this embodiment.
  • Obtaining a predicted pixel value in the prediction data calculating a first mean value of the prediction data according to the predicted pixel value, calculating a second mean value of the data of the current image block according to the pixel value of the data of the current image block, and secondizing the data of the current image block
  • the mean value is different from the first mean value of the prediction data of the current image block, and the residual of the current image block is obtained, and the residual is encoded to obtain the coding result of the current image block, which can reduce the reference pixel of the prediction data of the current image block.
  • the number of points and the number of reference pixels of the data of the current image block so that when calculating the first mean value of the prediction data of the current image block and the second mean value of the data of the current image block, the calculation amount is significantly reduced. Thereby, the coding efficiency can be improved.
  • the decoding end decodes the current image block
  • the calculation amount of the decoding process by the decoding method corresponding to the encoding method of the encoding side is also significantly reduced. Therefore, the coding and decoding efficiency can be effectively improved by using the technical solution of the embodiment.
  • FIG. 4 is a schematic flowchart of a first embodiment of a method for decoding a depth image according to the present invention.
  • the execution body of the embodiment is a decoding device, and the method of this embodiment includes:
  • the preset step size may be used to identify an interval between predicted data position coordinates.
  • the decoding end can still use the process corresponding to the above encoding end to implement the step of obtaining the predicted pixel value in the prediction data according to the preset step size.
  • the predicted data of the current image block can be processed 2:1, that is, one pixel is spaced once in the horizontal direction and the vertical direction, and one pixel point is obtained.
  • the predicted pixel value can be obtained.
  • the encoding end may obtain prediction data corresponding to the current image block of the depth image, obtain a predicted pixel value in the prediction data according to the preset step size, calculate a first mean value of the prediction data according to the predicted pixel value, and according to the predicted data.
  • the first mean value and the pixel value of the pixel of the current image block are obtained as residuals, and the residual is encoded and sent to the decoding end, and the decoding end can acquire the residual of the current image block from the code stream.
  • the preset step size is A positive integer not being 1, obtaining a residual of the current image block, obtaining a pixel value of a pixel of the current image block according to the first mean value of the prediction data and the residual of the current image block, and reducing the reference pixel of the prediction data of the current image block.
  • Method 1 Adding a first mean value of prediction data of a current image block to a residual of a current image block, Obtaining a pixel value of a pixel of the current image block;
  • the processing of the encoding end is to make the difference between the pixel point of the current image block and the first average value of the prediction data of the current image block to obtain the residual of the current image block, and then the decoding end can perform the current image block.
  • the first mean of the prediction data is added to the residual of the current image block to obtain the pixel value of the pixel of the current image block.
  • Manner 2 adding the first mean value of the prediction data of the current image block to the residual, obtaining a pixel mean value of the current image block, and using the pixel mean value of the current image block as the pixel value of the pixel point of the current image block.
  • the processing of the encoding end is to obtain the data of the current image block of the depth image, obtain the predicted pixel value in the data of the current image block according to the preset step size, and calculate the current image according to the pixel value of the data of the current image block.
  • the second mean value of the data of the block is obtained by comparing the second mean value of the data of the current image block with the first mean value of the predicted data of the current image block to obtain a residual of the current image block, and the processing process corresponding to the decoding end is The first mean value of the prediction data of the image block is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel point of the current image block.
  • FIG. 5 is a schematic flowchart of a second embodiment of a method for decoding a depth image according to the present invention.
  • the execution body of the embodiment is a decoding device, and the method in this embodiment includes:
  • S501 Determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set; if yes, execute S502 ⁇ S506, if not, execute S507.
  • S502 Determine to perform a sample processing on the reference image block corresponding to the current image block.
  • the intra prediction mode set in this embodiment includes at least a DC mode, a Planar mode, a displayed identification mode, and an intra prediction mode based mode, and the reference image block corresponding to the current image block is performed according to a preset lowering rule.
  • the intra prediction mode belongs to the intra prediction mode set, and accordingly, the encoding end has the same intra prediction mode set as the decoding end, and corresponds to the current image block and the current image block.
  • the reference image block is subjected to the sample processing, it is also necessary to first determine whether the intra prediction mode belongs to the combination of the intra prediction modes.
  • the preset intra prediction mode set is a set of intra prediction modes that the encoding end has been tested to show that the encoding method is averaged to obtain better encoding processing performance.
  • steps S501 and S502 are optional steps, and may not be performed, and S503 ⁇ S506 are directly executed.
  • S503 Obtain prediction data corresponding to the current image block of the depth image, and obtain a predicted pixel value in the prediction data according to the preset step size.
  • Obtaining predicted pixel values in the prediction data according to the preset step size can be achieved in the following three ways:
  • Method 1 obtaining equal prediction steps in the horizontal direction and the vertical direction according to the size of the current image block
  • the current image block size is 64 ⁇ 64
  • the horizontal and vertical directions are 4:1 to obtain the predicted pixel value
  • the predicted pixel values are obtained.
  • the number is 16 x 16.
  • Manner 2 The non-equal step size in the horizontal direction and the vertical direction is obtained according to the size of the current image block to obtain a predicted pixel value.
  • the step size in the horizontal direction is 2, and the step size in the vertical direction is 4 to obtain the predicted pixel value.
  • the horizontal direction is 2:1 to obtain the horizontal direction.
  • the predicted pixel value on the upper side is 4:1 in the vertical direction to obtain the predicted pixel value in the vertical direction, and the number of predicted pixel values obtained is 8 ⁇ 4.
  • Method 3 Determine the step size according to the size of the current image block, and obtain the predicted pixel value according to the step size. Taking 32 X 32 and 64 X 64 image blocks as an example, let 32 ⁇ 32 image blocks have a horizontal and vertical step size of 2, and 32 x 32 image blocks have a horizontal and vertical step size of 4, for these two sizes. The number of predicted pixel values obtained by the image block is 16 X 16 .
  • the foregoing process of obtaining the predicted pixel value in a preset step size may be preset by the encoding end and the decoding end, or may not be preset.
  • the encoding end and the decoding end are not preset, for example, the encoding end compares the processing results of the values of the respective step sizes, and determines an optimal step size for processing. Therefore, when encoding, the encoding end needs to be The value of the preset step size is encoded, and the decoding end can parse the value of the step size of the identifier from the code stream.
  • S504 Calculate a first mean value of the prediction data according to the predicted pixel value of the prediction data.
  • each implementation manner corresponds to the implementation manner of the encoding end:
  • the first implementation manner
  • the inverse quantization process is performed on the residual by the same quantization method as the coding end, and the result of the inverse quantization process is used as the residual used.
  • the second implementation manner When the encoding end directly encodes the residual, the decoding end decodes the residual, and uses the decoding processing result as the residual used to avoid the compression loss caused by the quantization.
  • the third implementation manner is: when the coding end maps the residual to the residual mapping value, the residual mapping value is encoded, and the bit indicating the residual mapping value is smaller than the bit representing the residual, thereby further improving the coding. effectiveness. Then, the decoding end can also reflect the coding result in a corresponding manner.
  • S506 Add a first mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block.
  • This step is an implementation process of the first method of the foregoing S403. It can be understood that if the encoding end uses the encoding process corresponding to the second mode, the step can also be implemented by the second method of the above S403.
  • the decoding end decodes the encoding result to obtain a residual matrix, and sums the pixel points of the residual matrix and the reference image block point by point to obtain a sum value matrix, and restores the current matrix according to the sum value matrix.
  • the image block or, when the encoding end uses the Wedgelet method, encodes a residual matrix obtained by subtracting each pixel point in the current image block from a constant value, and obtains a coding result, and the decoding end performs the coding result.
  • the decoding process is performed to obtain a residual matrix, and each pixel value of the residual matrix is summed with a constant value to obtain a sum matrix.
  • the current image block is restored according to the sum value matrix, which is not described in detail in this embodiment.
  • the prediction data corresponding to the current image block of the depth image by obtaining the prediction data corresponding to the current image block of the depth image, obtaining the predicted pixel value in the prediction data according to the preset step size, calculating the first mean value of the prediction data according to the predicted pixel value of the prediction data, and obtaining the current image.
  • the residual of the block adding the first mean value of the prediction data of the current image block to the residual of the current image block, obtaining the pixel value of the pixel point of the current image block, and reducing the reference pixel point of the prediction data of the current image block. Number, thus, the current image is obtained in the calculation
  • the first mean value of the block prediction data is calculated, the amount of calculation is significantly reduced, so that the decoding efficiency can be improved.
  • the technical solution of the embodiment of the present invention is also applicable to other intra prediction methods that need to encode and decode the mean.
  • the coding end encodes the residual by performing a difference between the mean value of the current image block and a constant value, and obtains the coding result, and the decoding end performs decoding processing on the coding result to obtain a residual, and the residual and the constant are constant.
  • the sum of the values is used as the pixel value of each pixel of the current image block, and the current image block is restored.
  • the current image block may be predicted according to the preset step size.
  • the pixel value is averaged for the predicted pixel value of the current image block, and the residual value is compared with a constant value to obtain a residual, and the residual is encoded to obtain a coding result.
  • the decoding end may also use a similar method for decoding. Processing, thereby improving the codec efficiency.
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of a depth image encoding apparatus according to the present invention.
  • the apparatus in this embodiment includes a first processing module 61, a second processing module 62, and an encoding module 63, where the first processing
  • the module 61 is configured to obtain prediction data corresponding to the current image block of the depth image, obtain a predicted pixel value in the prediction data according to the preset step size, and calculate a first mean value of the prediction data according to the predicted pixel value, where the preset step size is not 1
  • the second processing module 62 is configured to obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block; the encoding module 63 is configured to encode the residual of the current image block.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the principle and technical effects are similar, and details are not described herein again.
  • the second processing module 62 is specifically configured to compare the pixel of the current image block with the first average of the prediction data of the current image block to obtain a residual of the current image block; or obtain a current image of the depth image.
  • Block data obtaining predicted pixel values in data of the current image block according to a preset step size, calculating a second mean value of data of the current image block according to predicted pixel values of data of the current image block, and data of the current image block
  • the second mean is different from the first mean of the prediction data of the current image block to obtain a residual of the current image block.
  • the first processing module 61 is specifically configured to obtain the predicted pixel values according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or, perform horizontal and vertical directions according to the size of the current image block.
  • the non-equal step size obtains the predicted pixel value.
  • the encoding module 63 is further configured to encode the value of the preset step size.
  • the preset step size is used to identify the interval between the predicted data position coordinates.
  • the encoding module 63 is specifically configured to map the residual into a residual mapping value, and the bit representing the residual mapping value is smaller than the bit representing the residual, and the residual mapping value is encoded.
  • the first processing module 61 is further configured to determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if yes, determine according to the preset step size. The predicted pixel value is obtained in the prediction data.
  • the intra prediction mode set includes at least one of the following intra prediction modes: DC DC mode; Planar Planar mode; explicitly identified Wedgelet mode; Wedgelet mode based on intra prediction mode.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 3, and the principle and the technical effect are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a decoding apparatus for a depth image according to the present invention.
  • the apparatus of this embodiment includes: a processing module 71 and a decoding module 72, where the processing module 71 is configured to obtain a current image of a depth image.
  • the prediction data corresponding to the block obtains a predicted pixel value in the prediction data according to a preset step size, and calculates a first mean value of the prediction data according to the predicted pixel value, where the preset step size is a positive integer that is not 1;
  • the decoding module 72 is configured to: Obtaining a residual of the current image block, and obtaining a pixel value of a pixel point of the current image block according to the first mean value of the prediction data and the residual of the current image block.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 4, and the principle and the technical effect are similar, and details are not described herein again.
  • the decoding module 72 is specifically configured to add the first mean value of the prediction data of the current image block to the residual of the current image block to obtain the pixel value of the pixel point of the current image block; or, the current image block The first mean value of the predicted data is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel of the current image block.
  • the processing module 71 is specifically configured to obtain the predicted pixel value according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or, perform the horizontal and vertical unequal according to the size of the current image block.
  • the step size gets the predicted pixel value.
  • the decoding module 72 is further configured to parse the code stream to obtain a value of the identification step size.
  • the preset step size is used to identify the interval between the predicted data position coordinates.
  • the decoding module 72 is specifically configured to perform decoding processing on the encoding result of the current image block, obtain a residual mapping value of the current image block, map the residual mapping value into a residual, and use the residual as the current image block.
  • the residual of the residual map value is smaller than the bit representing the residual.
  • the processing module 71 is further configured to determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if yes, determine that the prediction is based on the preset step size. The predicted pixel value is obtained in the data.
  • the intra prediction mode set includes at least one of the following intra prediction modes: DC DC mode; Planar Planar mode; explicitly identified Wedgelet mode; Wedgelet mode based on intra prediction mode.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 5.
  • the principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic flowchart of Embodiment 3 of a method for encoding a depth image according to the present invention. As shown in FIG. 7, the method in this embodiment includes:
  • corresponding prediction data may be obtained according to a prediction mode of the current image block.
  • S802 Perform an arithmetic operation on every N pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value.
  • an average operation is performed for every N pixels in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel.
  • the arithmetic value of the corresponding pixel value can also be obtained by performing other pixel operations on every N pixel points in the pixel in the prediction data, which is not limited in the present invention.
  • the decoding terminal obtains the arithmetic value of the corresponding pixel value by the same arithmetic operation as the encoding end.
  • S803 Calculate a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value.
  • S804 Obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel of the image block; optionally, as a feasible implementation manner, the pixel point of the image block is the first of the prediction data of the current image block.
  • the mean is poor and the residual of the current image block is obtained.
  • the data of the current image block of the depth image is obtained, the predicted pixel value is obtained in the data of the current image block according to the preset step size, and the second mean value of the predicted data is calculated according to the predicted pixel value, and the image is obtained.
  • the second mean of the block is compared to the first mean of the reference image block of the current image block to obtain the residual of the current image block.
  • arithmetic value of the corresponding pixel value calculates a first mean value of the prediction data; a residual is obtained according to a first mean value of the prediction data and a pixel value of a pixel point of the image block; and a residual of the current image block is encoded. Since arithmetic operations are performed on every N pixel points in the pixel in the prediction data, the arithmetic value of the corresponding pixel value is obtained, and a better pixel value is obtained, thereby improving the encoding and decoding efficiency.
  • FIG. 9 is a schematic flowchart of Embodiment 3 of a method for decoding a depth image according to the present invention. As shown in FIG. 8, the method in this embodiment includes:
  • S901 Obtain prediction data corresponding to the current image block of the depth image.
  • corresponding prediction data may be obtained according to a prediction mode of the current image block.
  • S902 Perform an arithmetic operation on every N pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value.
  • an average operation is performed for every N pixels in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel.
  • the arithmetic value of the corresponding pixel value can also be obtained by performing other pixel operations on every N pixel points in the pixel in the prediction data, which is not limited in the present invention.
  • the arithmetic operation used by the decoding end obtains the arithmetic value of the corresponding pixel value as the encoding end.
  • S903 Calculate a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value.
  • S905 Obtain a pixel value of a pixel of the current image block according to the mean value of the prediction data and the residual of the current image block.
  • the mean value of the prediction data of the current image block is added to the residual of the current image block to obtain a pixel value of a pixel point of the current image block.
  • the mean value of the prediction data of the current image block is added to the residual, and the pixel mean of the current image block is obtained, and the pixel average of the current image block is taken as the pixel value of the pixel of the current image block.
  • the prediction data corresponding to the current image block of the depth image by obtaining the prediction data corresponding to the current image block of the depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, obtaining an arithmetic value of the corresponding pixel value, and calculating according to the arithmetic value of the corresponding pixel value. Predicting a first mean value of the data; obtaining a residual of the current image block; obtaining a pixel value of a pixel of the current image block according to the mean of the predicted data and the residual of the current image block.
  • the residual of the current image block is encoded.
  • FIG. 10 is a schematic structural diagram of a second embodiment of an apparatus for encoding a depth image according to a second embodiment of the present invention.
  • the apparatus of the present embodiment includes: a first processing module 1001, a second processing module 1002, and an encoding module 1003.
  • the first processing module 1001 is configured to obtain prediction data corresponding to the current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, obtain an arithmetic value of the corresponding pixel value, and perform arithmetic according to the corresponding pixel value.
  • the value calculates a first mean value of the prediction data;
  • the second processing module 1002 is configured to obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
  • the encoding module 1003 is configured to perform the residual of the current image block. coding.
  • the first processing module 1001 is specifically configured to perform an averaging operation on every N pixels in the pixel in the prediction data to obtain an average pixel value, and use the average pixel value as an arithmetic value of the corresponding pixel.
  • the second processing module 1002 is specifically configured to compare the pixel of the image block with the first average of the prediction data of the current image block to obtain a residual of the current image block; or, obtain a current image block of the depth image. Data, obtaining a predicted pixel value in the data of the current image block according to a preset step size, calculating a second mean value of the predicted data according to the predicted pixel value, and comparing the second mean value of the image block with the reference image block of the current image block A mean value is made to get the residual of the current image block.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 8.
  • the principle and technical effects are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of Embodiment 2 of a decoding apparatus for a depth image according to the present invention.
  • the apparatus of this embodiment includes a processing module 1101, and a decoding module 1102, where the processing module 1101 is configured to obtain prediction data corresponding to a current image block of a depth image.
  • An arithmetic operation is performed every N pixels in the pixel in the prediction data, an arithmetic value of the corresponding pixel value is obtained, and a first mean value of the prediction data is calculated according to an arithmetic value of the corresponding pixel value; and the decoding module 1102 is configured to obtain the residual of the current image block.
  • Poor the pixel value of the pixel of the current image block is obtained according to the mean of the prediction data and the residual of the current image block.
  • the processing module 1101 is specifically configured to perform an averaging operation on every N pixel points in the current image block and the prediction data to obtain an average pixel value, and use the average pixel value as an arithmetic value of the corresponding pixel value.
  • the decoding module 1102 is specifically configured to add the average value of the prediction data of the current image block to the residual of the current image block to obtain the pixel value of the pixel of the current image block; or, predict the current image block.
  • the mean value of the data is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel of the current image block.
  • the coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 9. The implementation principle and technical effects are similar, and details are not described herein again.
  • each of the average values may be represented as a divisor of a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data, and the sum of the pixel values of the pixel points in the prediction data is sum.
  • the division value of the pixel value in the prediction data is numOfPixel
  • the mean value is expressed as sum I numOfPixelo
  • the method of obtaining the mean can be obtained by the following steps:
  • the ninth value is divided with the value of the pixel point in the prediction data to obtain the mapping value
  • mapping value by a sum of pixel values of pixel points in the prediction data to obtain a first value; performing a shift operation on the first value to obtain a second value;
  • the ninth value is a fixed value or the fixed value plus an offset R, the fixed value is 2, the offset is half of the value of the pixel point in the prediction data, or the offset is The value of the pixel point in the prediction data is shifted to the right by one.
  • N can take a value of 14 or other positive integer.
  • the dividing the ninth value and the value of the pixel in the prediction data, and obtaining the mapping value includes:
  • Dividing 2 or ⁇ ⁇ by R by the value of the pixel in the prediction data to obtain the mapping value; performing a shift operation on the first value to obtain the second value includes:
  • the first value is shifted to the right by N bits to obtain a second value.
  • the ninth value is divided with the value of the pixel in the prediction data Operation, get the mapping value including:
  • the shifting operation is performed on the first value, and obtaining the second value includes:
  • the first value is shifted right by N plus M bits to obtain a second value.
  • the ninth value is divided with the value of the pixel in the prediction data, and before the mapping value is obtained, the method further includes:
  • the ninth value is divided by the value of the pixel in the prediction data, and the obtained mapping value includes:
  • the shifting operation is performed on the first value, and obtaining the second value includes:
  • the first value is shifted right by N plus M bits to obtain a second value.
  • M can have a value of 3 or other positive integer.
  • the ninth value is divided with the value of the pixel in the prediction data, and the obtained mapping value includes:
  • Dividing 2 or ⁇ ⁇ by R by the value of the pixel in the prediction data to obtain the mapping value; performing a shift operation on the first value to obtain the second value includes:
  • the first value is shifted to the right by N bits to obtain a second value.
  • the method of a specific embodiment includes:
  • SS101 Acquire prediction data of the current image block of the depth image.
  • the prediction data of the current image block of the depth image is related to the coding mode used.
  • the prediction data is the corresponding prediction data obtained by using the intra prediction mode, and the size and current picture of the prediction data.
  • the size of the block is the same.
  • the current image block may be the current intra prediction block.
  • the intra prediction is also usually performed in units of transform blocks; at this time, the image block is a transform. Piece.
  • SS102 Obtain a sum value of pixel values of pixel points in the prediction data and a value of the pixel point in the prediction data.
  • SS103 Determine whether the value of the pixel in the prediction data is 0. If not, execute SS104-SS106, if SS107 is executed.
  • SS104 dividing a ninth value and a value of a pixel in the prediction data to obtain a mapping value
  • the ninth value is a fixed value or a fixed value plus an offset R, R is half of the number of pixels in the prediction data, and the mapping value is twice the reciprocal of the value of the pixel in the prediction data, and the above is greater than the prediction
  • the value of a pixel in the data, N is an integer.
  • SS105 Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain the first value.
  • SS106 performing a shift operation on the first value to obtain a second value
  • the mapping value is 2 ⁇ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data, the obtained first numerical value directly compares the pixel in the prediction data.
  • the result of dividing the sum of the pixel values by the value of the pixel is increased by a factor of 2. Therefore, the second value can be obtained by the removal operation of the SS 106, so that the second value is directly compared with the pixel of the pixel in the predicted data.
  • the sum of the values is equal to the result of dividing the values of the pixels.
  • SS107 A preset constant is used as the second value.
  • a preset constant is used as the second value, and the preset constant is generally 0 or 128 left shift bit-8, where bit represents the bit width of the pixel in the image.
  • the second value is taken as the mean.
  • the encoding method involved is also obtained by averaging the current image block, it can be obtained in a similar manner to the second image value obtained by the prediction image block, and the present invention will not be described in detail.
  • the mapping value is obtained, and the mapping value is multiplied by the sum of the pixel values of the pixel points in the prediction data to obtain the first value. And then shifting the first value to obtain the second value, and the second value.
  • the pixel value of the pixel of the front image block obtains the residual of the current image block, and encodes the residual of the current image block, and the complexity of the implementation in the encoding process is only related to the value range of the pixel value in the prediction data. Therefore, the complexity of the implementation is reduced to some extent.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for encoding a depth image according to the present invention.
  • the execution body of the embodiment is an encoding device.
  • This embodiment is a specific implementation manner in the case where the value of the pixel in the prediction data is not zero.
  • the method of this embodiment includes:
  • SS201 Acquire prediction data of the current image block of the depth image.
  • This step is similar to SS101 and will not be described here.
  • SS202 Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • SS203 Divide 2 ⁇ by the value of the pixel in the prediction data to obtain the mapped value.
  • mapping value is twice the reciprocal of the numerical value of the pixel in the prediction data, and the above 2 is larger than the numerical value of the pixel in the prediction data, and N is an integer.
  • SS204 Multiply the mapped value by the sum of the pixel values of the pixel points in the predicted data to obtain the first value.
  • SS205 Move the first value to the right by N bits to obtain the second value.
  • the mapping value is 2 ⁇ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data
  • the obtained first numerical value directly compares the pixel in the prediction data.
  • the sum of the pixel values is divided by the value of the pixel by 2 ⁇ times. Moving a value to the right by N bits in binary is equivalent to reducing the value by 2 ⁇ times, shifting a value to the left by N bits. , equivalent to increasing the value by a factor of two. Therefore, the second value can be obtained by shifting the first value to the N position by the SS205, so that the second value is directly compared with the pixel value of the pixel point in the prediction data. The result of dividing the values of the points is equal.
  • SS206 The second value is taken as the mean.
  • the residual of the current image block is encoded, and the encoded code stream is sent to the decoding end.
  • the case where the value of the pixel point in the prediction data is 0 is the same as the processing method in which the value of the pixel point in the prediction data in the embodiment shown in FIG. 1 is 0. No longer.
  • the map value is obtained by dividing the value of the pixel point in the prediction data. Multiplying the mapped value by the sum of the pixel values of the pixel points in the predicted data to obtain a first value, and then shifting the first value to the right by N bits to obtain a second value, and the second value is compared with the pixel of the current image block.
  • the pixel value obtains the residual of the current image block, and encodes the residual of the current image block.
  • the dividing operation is involved, and dividing 2 by the value of the pixel in the predicted data,
  • the mapping value, 2 ⁇ is a fixed value. Therefore, the complexity of the implementation is only related to the value range of the pixel values in the prediction data, which reduces the complexity of the implementation to a certain extent, reduces the chip area, and improves the processing. speed.
  • SS301 Acquire prediction data of the current image block of the depth image.
  • This step is similar to SS101 and will not be described here.
  • SS302 Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • SS303 The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
  • the value of the pixel in the prediction data is shifted to the right by M bits, which is equivalent to reducing the value of the pixel in the prediction data to the original 1/2 M , where M is a positive integer.
  • SS305 Multiply the mapped value by the sum of the pixel values of the pixels in the predicted data to obtain the first value.
  • SS306 Move the first value to the right by N plus M bits to obtain the second value.
  • the value of the pixel in the prediction data is first shifted to the right by M bits, and then 2 ⁇ is divided by the value of the pixel in the shifted prediction data to obtain a mapping value, which is compared with the pixel in the prediction data. After multiplying the mapped values of the values, the first value obtained is directly compared to the pixels of the pixels in the predicted data. The result of dividing the sum of the values by the value of the pixel is increased by 2 ⁇ ⁇ . Therefore, the second value can be obtained by shifting the first value to the right by N+M bits of SS306, so that the second value is directly predicted. The sum of the pixel values of the pixels in the data is equal to the result of dividing the values of the pixels.
  • SS308 Use the second value as the mean.
  • the values of the pixel points in the prediction data are obtained, and then 1 N is divided by the pixel points in the shifted prediction data.
  • a value obtain a mapped value
  • shift the first value to the right by N plus M bits to obtain a second value which will be the second
  • the value and the pixel value of the pixel of the current image block obtain the residual of the current image block, and encode the residual of the current image block.
  • the value of the pixel in the prediction data is shifted to the right by M bit, by 2 Dividing by the value of the pixel in the shifted prediction data, the mapping value is obtained, and only 2 is divided by the value of the pixel in the shifted prediction data, and the division operation is involved in the process of obtaining the mapping value, and 2 is A fixed value, therefore, the complexity of the implementation is only related to the range of values of the pixels in the shifted prediction data, further reducing the complexity of the implementation, reducing the chip area, and increasing the processing speed.
  • the method in this embodiment specifically includes:
  • SS401 Acquire prediction data of the current image block of the depth image.
  • SS402 Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • SS403 Determine whether the value of the pixel in the predicted data is greater than the preset value. If yes, execute SS404-SS407, if not, execute SS408 ⁇ SS410.
  • SS404 The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
  • SS405 Divide 2 ⁇ by the value of the pixel in the shifted prediction data to obtain a mapped value.
  • SS406 multiplying the mapped value by a sum of pixel values of pixel points in the prediction data to obtain a first value
  • SS407 Move the first value to the right by N plus M bits to obtain the second value.
  • SS408 Divide 2 ⁇ by the value of the pixel in the prediction data to obtain a mapped value
  • SS410 Move the first value to the right by N bits to obtain the second value.
  • the second value is taken as the mean value.
  • the complexity of the implementation may be reduced to some extent due to the addition of the judgment condition.
  • the preset value is 2 1 ⁇
  • the pixel value of the pixel of the prediction data is 2 8
  • divide by 2 and divide by 2 2 8 obtain a mapping value
  • multiply the mapping value by the sum of the pixel values of the pixel points in the prediction data obtain the first value
  • shift the first value to the right to obtain the second value when the preset value is 2 1 ⁇ , when the pixel value of the pixel of the prediction data is 2 8 , divide by 2 and divide by 2 2 8 , obtain a mapping value, multiply the mapping value by the sum of the pixel values of the pixel points in the prediction data, obtain the first value, and shift the first value to the right to obtain the second value.
  • the 2 12 is shifted to the right by 4 bits, the shift is 2 8 , and the division is 2 8 to obtain a mapping value, and the mapping value and the prediction data are The sum of the pixel values of the pixels is multiplied to obtain a first value, and the first value is shifted right by N+M bits to obtain a second value.
  • the division operation for the values of the pixel points in the two different prediction data in the above process is the same as the division operation of the values of one pixel point. Therefore, the complexity of the implementation can be further reduced by the method of the present embodiment.
  • steps SS408 ⁇ SS410 are processing methods when the value of the pixel in the prediction data is less than the preset value and is not 0. If the value of the pixel in the prediction data is 0, It is the same as the processing method in which the value of the pixel in the prediction data in the foregoing embodiment is 0, and details are not described herein again.
  • the operation corresponding to the numerical shift of the pixel points is used, and the complexity of the implementation is only related to the value range of the pixel values in the shifted prediction data, which can further reduce the complexity of the implementation.
  • the operation of not shifting the value of the pixel point is used, and the precision of the division can be ensured; the complexity of the implementation is further reduced by increasing the judgment condition.
  • the mean range is 0 ⁇ 255.
  • the result obtained by the above embodiment can be subjected to a clip operation to ensure that the data is within a preset range.
  • the mean can be obtained as follows:
  • This sixth value is taken as the mean value.
  • mapping values for obtaining the values of the pixel points in the prediction data include:
  • mapping value corresponding to the value in the lookup table according to the value of the pixel in the prediction data
  • the shifting operation is performed on the fifth value, and obtaining the sixth value includes:
  • the fifth value is shifted right by N bits to obtain a sixth value.
  • N can be 14 or other positive integer.
  • mapping values for obtaining the values of the pixel points in the prediction data include:
  • the value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained; where M can be 3 or other positive integer.
  • mapping value corresponding to the value in the lookup table according to the value of the pixel point in the shifted prediction data
  • the shifting operation is performed on the fifth value, and obtaining the sixth value includes:
  • the fifth value is shifted right by N plus M bits to obtain a sixth value.
  • the method further includes: determining whether the value of the pixel in the prediction data is greater than a preset value;
  • mapping value of obtaining the value of the pixel in the prediction data includes:
  • the shifting operation is performed on the fifth value, and obtaining the sixth value includes:
  • the fifth value is shifted right by N plus M bits to obtain a sixth value
  • mapping value of obtaining the value of the pixel in the prediction data includes:
  • mapping value corresponding to the value in the lookup table according to the value of the pixel in the prediction data
  • the fifth value is shifted right by N bits to obtain a sixth value.
  • the specific method of this embodiment includes:
  • S1002 Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • S1003 Obtain a mapping value corresponding to a value in the lookup table according to the value of the pixel in the prediction data.
  • the lookup table contains two sets of data, which are mapping values corresponding to the values of the pixels in the predicted data and the values of the pixels in the predicted data.
  • mapping value is a prediction.
  • the reciprocal of the value of the pixel in the data is twice, and the above 2 is larger than the value of the pixel in the prediction data, and N is an integer.
  • the mapped value is a preset constant, typically 128 or 0.
  • the mapping value is 2 ⁇ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data, the obtained fifth value is directly compared to the pixel in the prediction data.
  • the sum of the pixel values is divided by the value of the pixel by 2 ⁇ times. Moving a value to the right by N bits in binary is equivalent to reducing the value by 2 ⁇ times, shifting a value to the left by N bits. , which is equivalent to increasing the value by a multiple. Therefore, the sixth value can be obtained by shifting the first value to the N position by S1005, so that the sixth value is directly compared with the pixel value of the pixel point in the prediction data. The result of dividing the values of the points is equal.
  • the sixth value is taken as the mean value.
  • the value of the pixel in the prediction data is correspondingly mapped by the lookup table, which avoids the complicated operation of the division operation.
  • the size of the lookup table is only the same as the pixel point in the prediction data.
  • the value range of the value is related, so the implementation complexity is reduced to some extent, the chip area is reduced, and the processing speed is increased.
  • the values of the pixel points in the prediction data are shifted to the right by M bits, so as to narrow the value range of the pixel values in the prediction data, and then pass the A numerical value shifting operation is performed such that the second value is equal to the result of directly dividing the sum of the pixel values of the pixel points in the predicted data by the value of the pixel point, thereby further reducing the complexity of the implementation.
  • the method of this embodiment specifically includes :
  • S1101 Obtain prediction data of a current image block of the depth image.
  • S1102 Obtain a sum value of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • S1103 The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
  • the value of the pixel in the prediction data is shifted to the right by M bits, which is equivalent to reducing the value of the pixel in the prediction data to the original 1/2 M .
  • SI 104 Obtain a mapping value corresponding to a value in the lookup table according to the value of the pixel point in the shifted prediction data.
  • the lookup table contains two sets of data, which are mapping values corresponding to the values of the pixel points in the shifted prediction data and the values of the pixel points in the shifted prediction data, and the values of the pixel points in the predicted data are not
  • the mapping value is 2 ⁇ times the reciprocal of the numerical value of the pixel in the prediction data, and the above 2 is larger than the numerical value of the pixel in the prediction data, and N is an integer.
  • the mapped value is a preset constant, typically 128 or 0.
  • S1105 Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value.
  • S1106 Move the fifth value to the right by N plus M bits to obtain the sixth value.
  • the value of the pixel in the prediction data is first shifted to the right by M bits, and then 2 ⁇ is divided by the value of the pixel in the shifted prediction data to obtain a mapping value, which is compared with the pixel in the prediction data.
  • the obtained fifth value is increased by +M times than the result of directly dividing the sum of the pixel values of the pixel points in the predicted data with the values of the pixel points, and therefore, the S606 can be
  • the fifth value is shifted right by N+M bits to obtain a sixth value such that the sixth value is equal to the result of directly dividing the sum of the pixel values of the pixel points in the prediction data by the values of the pixel points.
  • the value of the pixel in the prediction data is shifted to the right by M bits, and then the value of the pixel in the shifted prediction data is correspondingly mapped by the lookup table, thereby avoiding the division operation.
  • a complicated problem is implemented, and the size of the lookup table in the embodiment is only related to the value range of the values of the pixel points in the shifted prediction data, thereby further reducing the complexity of the implementation and reducing the chip area. Improve processing speed.
  • the method in this embodiment specifically includes:
  • S1201 Obtain prediction data of a current image block of the depth image.
  • S1202 Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
  • S1203 Determine whether the value of the pixel in the predicted data is greater than a preset value. If yes, execute S1204-S1207, if no, execute S1208 ⁇ S1210.
  • S1205 Obtain a mapping value corresponding to the value in the lookup table according to the value of the pixel in the shifted prediction data.
  • S1206 Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value.
  • S1210 Move the fifth value to the right by N bits to obtain the sixth value.
  • the complexity of the implementation may be reduced to some extent due to the addition of the judgment condition.
  • the preset value is 2 1 ⁇
  • the search is performed according to 2 8
  • the mapping value corresponding to 28 is obtained in the table; the mapping value is multiplied by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value, and the fifth value is right-shifted to obtain a sixth value.
  • the 12 12 is shifted to the right by 4 bits, and after shifting to 2 8 , the mapping value corresponding to 28 is obtained according to 2 8 in the lookup table;
  • the sum value of the pixel values of the pixel points in the prediction data is multiplied to obtain a fifth value, and the fifth value is shifted right by ⁇ + ⁇ to obtain a sixth value.
  • the operation corresponding to the shift of the pixel points is used, the division operation is avoided, and the size of the lookup table is only related to the value range of the pixel values in the shifted prediction data, which can be further reduced.
  • the complexity of the implementation when the value of the pixel in the prediction data is less than the preset value, the accuracy of the mapping value that can be obtained by the operation corresponding to the pixel point value is not shifted; The complexity of the implementation is reduced.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

Embodiments of the present invention provide depth-image encoding and decoding methods and an encoding/decoding device. The encoding method comprises: obtaining predicted data corresponding to a current image block of a depth-image; in accordance with the preset step size, obtaining a predicted pixel value from within the predicted data; calculating, in accordance with the predicted pixel value, a first average value for the predicted data; the preset step size is a positive integer other than 1; obtaining, in accordance with the first average value for the predicted data and with a pixel value for the pixels of the current image block, residuals of the current image block; encoding the residuals of the current image block; encoding and decoding efficiency can thus be improved.

Description

深度图像的编解码方法和编解码装置  Decoding method and codec device for depth image
技术领域 本发明实施例涉及图像处理技术, 尤其涉及一种深度图像的编解码方法 和编解码装置。 背景技术 在三维视频图像系统中包括视图像和深度图像两种类型的图像, 视图像 包含图像本身的信息, 如彩色信息, 深度图像包含视图像的深度信息, 如轮 廓信息。 在对三维视频图像进行传输中, 为了减少视频传输所占用的带宽, 需要对视频图像进行编码处理, 包括对视图像和深度图像的编码处理, 以减 小三维视频图像数据的大小。 TECHNICAL FIELD Embodiments of the present invention relate to image processing technologies, and in particular, to a codec method and a codec device for a depth image. Background Art In a three-dimensional video image system, two types of images, a visual image and a depth image, are included, and the visual image contains information of the image itself, such as color information, and the depth image contains depth information of the visual image, such as contour information. In the transmission of the three-dimensional video image, in order to reduce the bandwidth occupied by the video transmission, the video image needs to be encoded, including encoding the visual image and the depth image to reduce the size of the three-dimensional video image data.
现有技术中, 对三维视频图像系统中深度图像的编码处理, 釆用帧内预 测方法。 首先, 编码端将待编码图像块分割成一个或多个子图像块, 获得当 前图像块的帧内预测模式, 根据帧内预测模式获得当前图像块的预测数据, 其中所述图像块和经图像块划分得到的子图像块通常被统称为图像块, 所述 的图像块的预测数据作为当前图像块编解码的预测数据使用, 其来自于已经 编码或者解码的相邻块的像素数据, 或编解码系统预设的固定值, 或其他来 自于相邻块的供当前块编解码的预测数据。 编码端对图像块中每个像素点的 像素值与预测数据 (或由预测数据生成的参考块的数据) 中对应的每个像素 点的像素值进行逐点求差得到残差矩阵, 对残差矩阵进行量化、 变换和熵编 码, 将熵编码得到的码流发送到解码端。 解码端从得到的码流中读取比特流, 经过反量化、 反编码, 得到相应的残差, 根据帧内预测模式获得当前图像块 的预测数据, 将当前图像块的残差与预测数据的像素值(或由预测数据生成 的参考块的像素值)相加, 得到当前图像块的像素值。  In the prior art, an intra-frame prediction method is used for encoding a depth image in a three-dimensional video image system. First, the encoding end divides the image block to be encoded into one or more sub-image blocks, obtains an intra prediction mode of the current image block, and obtains prediction data of the current image block according to the intra prediction mode, where the image block and the image block The divided sub-image blocks are generally referred to collectively as image blocks, and the prediction data of the image blocks is used as prediction data of the current image block codec, which is derived from pixel data of adjacent blocks that have been encoded or decoded, or codec. A fixed value preset by the system, or other predictive data from the neighboring block for the current block codec. The encoding end performs a point-by-point difference between the pixel value of each pixel in the image block and the pixel value of each pixel corresponding to the prediction data (or the data of the reference block generated by the prediction data) to obtain a residual matrix, and the residual matrix The difference matrix performs quantization, transform and entropy coding, and sends the code stream obtained by entropy coding to the decoding end. The decoding end reads the bit stream from the obtained code stream, performs inverse quantization and inverse coding, and obtains a corresponding residual, obtains prediction data of the current image block according to the intra prediction mode, and uses the residual of the current image block and the prediction data. The pixel values (or the pixel values of the reference blocks generated from the prediction data) are added to obtain the pixel values of the current image block.
然而, 当图像块的尺寸较大时, 釆用现有技术的方法, 计算图像块的像 素均值和参考图像块的像素均值计算量较大, 编解码效率不高。  However, when the size of the image block is large, the pixel average of the image block and the pixel mean of the reference image block are calculated by the prior art method, and the encoding and decoding efficiency is not high.
发明内容 本发明实施例提供一种深度图像的编解码方法和编解码装置, 以提高编 解码效率。 本发明实施例第一方面, 提供一种深度图像的编码方法, 包括: 获得深度图像当前图像块的预测数据, 根据预设的步长在所述预测数据 中获得预测像素值, 根据所述预测像素值计算所述预测数据的第一均值, 所 述预设的步长为不是 1的正整数; Summary of the invention Embodiments of the present invention provide a codec method and a codec device for a depth image to improve codec efficiency. A first aspect of the embodiments of the present invention provides a method for encoding a depth image, including: obtaining prediction data of a current image block of a depth image, and obtaining a predicted pixel value in the prediction data according to a preset step size, according to the prediction The pixel value calculates a first mean value of the prediction data, and the preset step size is a positive integer that is not 1;
根据所述预测数据的第一均值和所述当前图像块的像素点的像素值得到 当前图像块的残差;  Obtaining a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
对所述当前图像块的残差进行编码。  The residual of the current image block is encoded.
结合第一方面, 在第一种可能的实现方式中, 所述根据所述预测数据的 第一均值和所述图像块的像素点的像素值得到残差, 包括:  With reference to the first aspect, in a first possible implementation, the obtaining a residual according to a first average of the prediction data and a pixel value of a pixel of the image block includes:
将所述当前图像块的像素点与所述当前图像块的预测数据的第一均值做 差, 得到所述当前图像块的残差; 或者,  Performing a difference between a pixel point of the current image block and a first mean value of the prediction data of the current image block to obtain a residual of the current image block; or
获得深度图像当前图像块的数据, 根据预设的步长在所述当前图像块的 数据中获得预测像素值, 根据所述当前图像块的数据的预测像素值计算所述 当前图像块的数据的第二均值, 将所述当前图像块的数据的第二均值与所述 当前图像块的预测数据的第一均值做差, 得到所述当前图像块的残差。  Obtaining data of the current image block of the depth image, obtaining a predicted pixel value in the data of the current image block according to a preset step size, and calculating data of the current image block according to the predicted pixel value of the data of the current image block. a second mean, a difference between the second mean value of the data of the current image block and the first mean value of the prediction data of the current image block, to obtain a residual of the current image block.
结合第一方面, 在第二种可能的实现方式中, 所述根据预设的步长在所 述预测数据中获得预测像素值, 包括:  With reference to the first aspect, in a second possible implementation, the obtaining the predicted pixel value in the prediction data according to the preset step size includes:
根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测 像素值; 或者,  Obtaining a predicted pixel value by performing equal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长获得预 测像素值; 或者,  Obtaining a predicted pixel value by performing unequal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步 长获得预测像素值。  Determining the preset step size according to the size of the current image block, and obtaining a predicted pixel value according to the preset step size.
结合第一方面或第一方面的第一种至第二种可能的实现方式中任一种可 能的实现方式, 在第三种可能的实现方式中, 所述方法还包括:  With reference to the first aspect, or any one of the first to the second possible implementations of the first aspect, in a third possible implementation, the method further includes:
对所述预设的步长的值进行编码。  The value of the preset step size is encoded.
结合第一方面或第一方面的第一种至第三种可能的实现方式中任一种可 能的实现方式, 在第四种可能的实现方式中, 所述预设的步长用于标识预测 数据位置坐标之间的间隔。 With reference to the first aspect, or any one of the first to the third possible implementation manners of the first aspect, in a fourth possible implementation, the preset step size is used to identify the prediction The interval between data position coordinates.
结合第一方面或第一方面的第一种至第四种可能的实现方式中任一种可 能的实现方式, 在第五种可能的实现方式中, 所述对所述当前图像块的残差 进行编码, 包括:  With reference to the first aspect, or any one of the first to the fourth possible implementation manners of the first aspect, in a fifth possible implementation, the residual of the current image block Coding, including:
将所述残差映射成残差映射值, 表示所述残差映射值的比特位小于表示 所述残差的比特位;  Mapping the residual to a residual mapping value, indicating that the bit of the residual mapping value is smaller than a bit representing the residual;
对所述残差映射值进行编码。  The residual map value is encoded.
结合第一方面或第一方面的第一种至第五种可能的实现方式中任一种可 能的实现方式, 在第六种可能的实现方式中, 所述根据预设的步长在所述预 测数据中获得预测像素值之前, 还包括:  With reference to the first aspect, or any one of the possible implementation manners of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner, Before obtaining predicted pixel values in the forecast data, it also includes:
根据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预设的 若属于, 则确定根据所述预设的步长在所述预测数据中获得所述预测像 素值。  Determining, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset if, if it is, determining to obtain the predicted pixel value in the prediction data according to the preset step size.
结合第六种可能的实现方式, 在第七种可能的实现方式中, 所述帧内预 测模式集合包括下述至少一种帧内预测模式:  With reference to the sixth possible implementation manner, in a seventh possible implementation manner, the intra prediction mode set includes at least one intra prediction mode:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
本发明实施例第二方面, 提供一种深度图像的解码方法, 包括: 获得深度图像当前图像块的预测数据, 根据预设的步长在所述预测数据 中获得预测像素值, 根据所述预测像素值计算所述预测数据的第一均值, 所 述预设的步长为不是 1的正整数;  A second aspect of the embodiments of the present invention provides a method for decoding a depth image, including: obtaining prediction data of a current image block of a depth image, and obtaining a predicted pixel value in the prediction data according to a preset step size, according to the prediction The pixel value calculates a first mean value of the prediction data, and the preset step size is a positive integer that is not 1;
获得所述当前图像块的残差;  Obtaining a residual of the current image block;
根据所述预测数据的第一均值和所述当前图像块的残差获得所述当前图 像块的像素点的像素值。  A pixel value of a pixel of the current image block is obtained according to a first mean of the prediction data and a residual of the current image block.
结合第二方面, 在第一种可能的实现方式中, 所述根据所述预测数据的 第一均值和所述当前图像块的残差获得所述当前图像块的像素点的像素值, 包括: 将所述当前图像块的预测数据的第一均值与所述当前图像块的残差相 加, 获得所述当前图像块的像素点的像素值; 或者, With reference to the second aspect, in a first possible implementation, the obtaining the pixel value of the pixel of the current image block according to the first average of the prediction data and the residual of the current image block includes: Adding a first mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block; or
将所述当前图像块的预测数据的第一均值与所述残差相加, 获得所述当 前图像块的像素均值, 将所述当前图像块的像素均值作为所述当前图像块的 像素点的像素值。  Adding a first mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and using a pixel mean of the current image block as a pixel point of the current image block. Pixel values.
结合第二方面, 在第二种可能的实现方式中, 所述根据预设的步长在所 述预测数据中获得预测像素值, 包括:  With reference to the second aspect, in a second possible implementation, the obtaining the predicted pixel value in the prediction data according to the preset step size includes:
根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测 像素值; 或者,  Obtaining a predicted pixel value by performing equal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长获得预 测像素值; 或者,  Obtaining a predicted pixel value by performing unequal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步 长获得所述预测像素值。  Determining the preset step size according to the size of the current image block, and obtaining the predicted pixel value according to the preset step size.
结合第二方面, 或第二方面的第一种至第二种可能的实现方式中任一种 可能的实现方式, 在第三种可能的实现方式中, 所述方法还包括:  With reference to the second aspect, or any one of the first to the second possible implementation manners of the second aspect, in a third possible implementation manner, the method further includes:
解析码流获得标识所述步长的值。  The parsing code stream obtains a value identifying the step size.
结合第二方面, 或第二方面的第一种至第三种可能的实现方式中任一种 可能的实现方式, 在第四种可能的实现方式中, 所述预设的步长用于标识预 测数据位置坐标之间的间隔。  With reference to the second aspect, or any one of the first to the third possible implementation manners of the second aspect, in a fourth possible implementation, the preset step size is used to identify Predict the interval between data position coordinates.
结合第二方面, 或第二方面的第一种至第四种可能的实现方式中任一种 可能的实现方式, 在第五种可能的实现方式中, 所述获得所述当前图像块的 残差, 包括:  With reference to the second aspect, or any one of the first to the fourth possible implementation manners of the second aspect, in a fifth possible implementation manner, the obtaining the residual of the current image block Poor, including:
对所述当前图像块的编码结果进行解码处理, 得到所述当前图像块的残 差映射值;  Performing a decoding process on the encoding result of the current image block to obtain a residual mapping value of the current image block;
将所述残差映射值映射成残差, 将所述残差作为所述当前图像块的残差, 表示所述残差映射值的比特位小于表示所述残差的比特位。  Mapping the residual mapping value to a residual, using the residual as a residual of the current image block, indicating that the bit of the residual mapping value is smaller than a bit representing the residual.
结合第二方面, 或第二方面的第一种至第五种可能的实现方式中任一种 可能的实现方式, 在第六种可能的实现方式中, 所述根据预设的步长在所述 预测数据中获得预测像素值之前, 还包括:  With reference to the second aspect, or any one of the possible implementation manners of the first to fifth possible implementation manners of the second aspect, in the sixth possible implementation manner, Before obtaining the predicted pixel value in the predicted data, the method further includes:
根据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预设的 若属于, 则确定根据所述预设的步长在所述预测数据中获得所述预测像 素值。 Determining whether the intra prediction mode belongs to a preset according to an intra prediction mode of a current image block If so, it is determined that the predicted pixel value is obtained in the prediction data according to the preset step size.
结合第六种可能的实现方式, 在第七种可能的实现方式中, 所述帧内预 测模式集合包括下述至少一种帧内预测模式:  With reference to the sixth possible implementation manner, in a seventh possible implementation manner, the intra prediction mode set includes at least one intra prediction mode:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
本发明实施例第三方面, 提供一种深度图像的编码装置, 包括: 第一处理模块, 用于获得深度图像当前图像块的预测数据, 根据预设的 步长在所述预测数据中获得预测像素值, 根据所述预测像素值计算所述预测 数据的第一均值, 所述预设的步长为不是 1的正整数;  A third aspect of the embodiments of the present invention provides a coding apparatus for a depth image, including: a first processing module, configured to obtain prediction data of a current image block of a depth image, and obtain a prediction in the prediction data according to a preset step size. a pixel value, a first average value of the prediction data is calculated according to the predicted pixel value, where the preset step size is a positive integer that is not 1;
第二处理模块, 用于根据所述预测数据的第一均值和所述当前图像块的 像素点的像素值得到当前图像块的残差;  a second processing module, configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
编码模块, 用于对所述当前图像块的残差进行编码。  And an encoding module, configured to encode a residual of the current image block.
结合第三方面, 在第一种可能的实现方式中, 所述第二处理模块具体用 于将所述当前图像块的像素点与所述当前图像块的预测数据的第一均值做 差, 得到所述当前图像块的残差; 或者, 获得深度图像当前图像块的数据, 根据预设的步长在所述当前图像块的数据中获得像素值, 根据所述当前图像 块的数据的像素值计算所述当前图像块的数据的第二均值, 将所述当前图像 块的数据的第二均值与所述当前图像块的预测数据的第一均值做差, 得到所 述当前图像块的残差。  With reference to the third aspect, in a first possible implementation, the second processing module is configured to perform a difference between a pixel point of the current image block and a first average value of prediction data of the current image block, a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining a pixel value in the data of the current image block according to a preset step size, according to a pixel value of the data of the current image block Calculating a second mean value of the data of the current image block, and comparing a second mean value of the data of the current image block with a first mean value of the predicted data of the current image block to obtain a residual of the current image block .
结合第三方面, 在第二种可能的实现方式中, 所述第一处理模块, 具体 用于根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测 像素值; 或者, 根据所述当前图像块的尺寸进行水平方向和垂直方向的非等 步长获得预测像素值; 或者, 根据所述当前图像块的尺寸确定所述预设的步 长, 根据所述的预设的步长获得预测像素值。  With reference to the third aspect, in a second possible implementation manner, the first processing module is configured to obtain a predicted pixel value according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or Obtaining a predicted pixel value according to the unequal step size of the horizontal direction and the vertical direction according to the size of the current image block; or determining the preset step size according to the size of the current image block, according to the preset The step size gets the predicted pixel value.
结合第三方面或第三方面的第一种至第二种可能的实现方式中任一种可 能的实现方式, 在第三种可能的实现方式中, 所述编码模块, 还用于对所述 预设的步长的值进行编码。 With reference to the third aspect, or any one of the possible implementations of the first to the second possible implementations of the third aspect, in a third possible implementation, the coding module is further configured to The value of the preset step size is encoded.
结合第三方面或第三方面的第一种至第三种可能的实现方式中任一种可 能的实现方式, 在第四种可能的实现方式中, 所述预设的步长用于标识预测 数据位置坐标之间的间隔。  With reference to the third aspect, or any one of the first to the third possible implementation manners of the third aspect, in a fourth possible implementation, the preset step size is used to identify the prediction The interval between data position coordinates.
结合第三方面或第三方面的第一种至第四种可能的实现方式中任一种可 能的实现方式, 在第五种可能的实现方式中, 所述编码模块, 具体用于将所 述残差映射成残差映射值, 表示所述残差映射值的比特位小于表示所述残差 的比特位, 对所述残差映射值进行编码。  With reference to the third aspect, or any one of the first to the fourth possible implementation manners of the third aspect, in a fifth possible implementation, the coding module is specifically used to The residual is mapped to a residual map value, and the bit of the residual map value is smaller than a bit representing the residual, and the residual map value is encoded.
结合第三方面或第三方面的第一种至第五种可能的实现方式中任一种可 能的实现方式, 在第六种可能的实现方式中, 所述第一处理模块, 还用于根 据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预设的帧内预 测模式集合, 若属于, 则确定根据所述预设的步长在所述预测数据中获得所 述预测像素值。  With reference to the third aspect, or any one of the first to the fifth possible implementation manners of the third aspect, in a sixth possible implementation, the first processing module is further configured to Determining, by the intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if so, determining to obtain the predicted pixel in the prediction data according to the preset step size value.
结合第六种可能的实现方式, 在第七种可能的实现方式中, 所述帧内预 测模式集合包括下述至少一种帧内预测模式:  With reference to the sixth possible implementation manner, in a seventh possible implementation manner, the intra prediction mode set includes at least one intra prediction mode:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
本发明实施例第四方面, 提供一种深度图像的解码装置, 包括: 处理模块, 用于获得深度图像当前图像块的预测数据, 根据预设的步长 在所述预测数据中获得预测像素值, 根据所述预测像素值计算所述预测数据 的第一均值, 所述预设的步长为不是 1的正整数;  A fourth aspect of the embodiments of the present invention provides a decoding apparatus for a depth image, including: a processing module, configured to obtain prediction data of a current image block of a depth image, and obtain a predicted pixel value in the prediction data according to a preset step size. Calculating a first mean value of the prediction data according to the predicted pixel value, where the preset step size is a positive integer that is not 1;
解码模块, 用于获得所述当前图像块的残差, 根据所述预测数据的第一 均值和所述当前图像块的残差获得所述当前图像块的像素点的像素值。  And a decoding module, configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to a first average of the prediction data and a residual of the current image block.
结合第四方面, 在第一种可能的实现方式中, 所述解码模块具体用于将 所述当前图像块的预测数据的第一均值与所述当前图像块的残差相加, 获得 所述当前图像块的像素点的像素值; 或者, 将所述当前图像块的预测数据的 第一均值与所述残差相加, 获得所述当前图像块的像素均值, 将所述当前图 像块的像素均值作为所述当前图像块的像素点的像素值。 结合第四方面, 在第二种可能的实现方式中, 所述处理模块, 具体用于 根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测像素 值; 或者, 根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长 获得预测像素值; 或者, 根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步长获得所述预测像素值。 With reference to the fourth aspect, in a first possible implementation, the decoding module is specifically configured to add a first average value of the prediction data of the current image block to a residual of the current image block, to obtain the a pixel value of a pixel of the current image block; or, adding a first mean value of the prediction data of the current image block to the residual to obtain a pixel mean of the current image block, where the current image block is The pixel mean is the pixel value of the pixel of the current image block. With reference to the fourth aspect, in a second possible implementation, the processing module is specifically configured to obtain a predicted pixel value according to an equal step size of a horizontal direction and a vertical direction according to a size of the current image block; or Determining the size of the current image block to obtain a predicted pixel value in an unequal step in the horizontal direction and the vertical direction; or determining the preset step size according to the size of the current image block, according to the preset step size The predicted pixel value is obtained.
结合第四方面或第四方面的第一种至第二种可能的实现方式中任一种可 能的实现方式, 在第三种可能的实现方式中, 所述解码模块还用于解析码流 获得标识所述步长的值。  With reference to the fourth aspect, or any one of the possible implementations of the first to the second possible implementations of the fourth aspect, in a third possible implementation, the decoding module is further configured to obtain a code stream. Identifies the value of the step size.
结合第四方面或第四方面的第一种至第三种可能的实现方式中任一种可 能的实现方式, 在第四种可能的实现方式中, 所述预设的步长用于标识预测 数据位置坐标之间的间隔。  With reference to the fourth aspect, or any one of the first to the third possible implementation manners of the fourth aspect, in a fourth possible implementation, the preset step size is used to identify the prediction The interval between data position coordinates.
结合第四方面或第四方面的第一种至第四种可能的实现方式中任一种可 能的实现方式, 在第五种可能的实现方式中, 所述解码模块具体用于对所述 当前图像块的编码结果进行解码处理, 得到所述当前图像块的残差映射值, 将所述残差映射值映射成残差, 将所述残差作为所述当前图像块的残差, 表 示所述残差映射值的比特位小于表示所述残差的比特位。  With reference to the fourth aspect, or any one of the first to the fourth possible implementation manners of the fourth aspect, in a fifth possible implementation, the decoding module is specifically configured to use the current Performing a decoding process on the coding result of the image block to obtain a residual mapping value of the current image block, mapping the residual mapping value into a residual, and using the residual as a residual of the current image block, indicating The bit of the residual map value is less than the bit representing the residual.
结合第四方面或第四方面的第一种至第五种可能的实现方式中任一种可 能的实现方式, 在第六种可能的实现方式中, 所述处理模块还用于根据当前 图像块的帧内预测模式确定所述帧内预测模式是否属于预设的帧内预测模式 集合, 若属于, 则确定根据所述预设的步长在所述预测数据中获得所述预测 像素值。  With reference to the fourth aspect, or any one of the first to the fifth possible implementation manners of the fourth aspect, in a sixth possible implementation, the processing module is further configured to use the current image block The intra prediction mode determines whether the intra prediction mode belongs to a preset intra prediction mode set, and if so, determines to obtain the predicted pixel value in the prediction data according to the preset step size.
结合第六种可能的实现方式, 在第七种可能的实现方式中, 所述帧内预 测模式集合包括下述至少一种帧内预测模式:  With reference to the sixth possible implementation manner, in a seventh possible implementation manner, the intra prediction mode set includes at least one intra prediction mode:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
本发明实施例第五方面, 提供一种深度图像的编码方法, 包括: 获得深度图像当前图像块的预测数据,对预测数据中的像素点中每 N个像 素点进行算术操作, 获得相应像素值的算术值, 根据所述相应像素值的算术 值计算所述预测数据的第一均值; A fifth aspect of the embodiments of the present invention provides a method for encoding a depth image, including: obtaining prediction data of a current image block of a depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, and obtaining a corresponding pixel value. Arithmetic value, arithmetic according to the corresponding pixel value Calculating a first mean value of the predicted data;
根据所述预测数据的第一均值和所述当前图像块的像素点的像素值得到 当前图像块的残差;  Obtaining a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
对所述当前图像块的残差进行编码。  The residual of the current image block is encoded.
结合第五方面, 在第一种可能的实现方式中, 所述对预测数据中的像素 点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 包括:  With reference to the fifth aspect, in a first possible implementation manner, performing an arithmetic operation on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value, including:
对所述预测数据中的像素点中每 N个像素点进行平均操作,获得平均像素 值, 将所述平均像素值作为相应像素的算术值。  An averaging operation is performed on every N pixel points in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is taken as an arithmetic value of the corresponding pixel.
结合第五方面或第五方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 根据所述预测数据的第一均值和所述图像块的像素点的像素值得 到残差, 包括:  With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation, the residual is obtained according to the first average of the prediction data and the pixel value of the pixel of the image block , including:
将所述图像块的像素点与所述当前图像块的预测数据的第一均值做差, 得到所述当前图像块的残差;  Performing a difference between a pixel point of the image block and a first mean value of prediction data of the current image block to obtain a residual of the current image block;
或, 获得深度图像当前图像块的数据, 根据预设的步长在所述当前图像 块的数据中获得所述像素值, 根据所述像素值计算所述图像块的数据的第二 均值, 将所述图像块的第二均值与所述当前图像块的参考图像块的第一均值 做差, 得到所述当前图像块的残差。  Or obtaining data of the current image block of the depth image, obtaining the pixel value in the data of the current image block according to a preset step size, and calculating a second mean value of the data of the image block according to the pixel value, The second mean of the image block is different from the first mean of the reference image block of the current image block to obtain a residual of the current image block.
本发明实施例第六方面, 提供一种深度图像的解码方法, 包括: 获得深度图像当前图像块对应的预测数据,对预测数据中的像素点中每 N 个像素点进行算术操作, 获得相应像素值的算术值, 根据所述相应像素值的 算术值计算所述预测数据的第一均值;  A sixth aspect of the embodiments of the present invention provides a method for decoding a depth image, including: obtaining prediction data corresponding to a current image block of a depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, and obtaining corresponding pixels. An arithmetic value of the value, calculating a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value;
获得所述当前图像块的残差;  Obtaining a residual of the current image block;
根据所述预测数据的均值和所述当前图像块的残差获得所述当前图像块 的像素点的像素值。  A pixel value of a pixel point of the current image block is obtained according to an average of the prediction data and a residual of the current image block.
结合第六方面, 在第一种可能的实现方式中, 所述对预测数据中的像素 点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 包括:  With reference to the sixth aspect, in a first possible implementation manner, performing an arithmetic operation on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value, including:
对所述当前图像块和所述预测数据中的像素点中每 N个像素点进行平均 操作, 获得平均像素值, 将所述平均像素值作为相应像素值的算术值。  And averaging every N pixels in the current image block and the pixel in the prediction data to obtain an average pixel value, and using the average pixel value as an arithmetic value of the corresponding pixel value.
结合第六方面或第六方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 根据所述预测数据的均值和所述当前图像块的残差获得所述当前 图像块的像素点的像素值, 包括: With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation, the current is obtained according to the mean value of the prediction data and a residual of the current image block The pixel value of the pixel of the image block, including:
将所述当前图像块的预测数据的均值与所述当前图像块的残差相加, 获 得所述当前图像块的像素点的像素值;  Adding a mean value of the prediction data of the current image block to a residual of the current image block, and obtaining a pixel value of a pixel point of the current image block;
或, 将所述当前图像块的预测数据的均值与所述残差相加, 获得所述当 前图像块的像素均值, 将所述当前图像块的像素均值作为所述当前图像块的 像素点的像素值。  Or, adding the mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and using a pixel average of the current image block as a pixel point of the current image block. Pixel values.
本发明实施例第七方面, 提供一种深度图像的编码装置, 包括: 第一处理模块, 用于获得深度图像当前图像块对应的预测数据, 对预测 数据中的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根 据所述相应像素值的算术值计算所述预测数据的第一均值;  A seventh aspect of the embodiments of the present invention provides a coding apparatus for a depth image, including: a first processing module, configured to obtain prediction data corresponding to a current image block of a depth image, and for each N pixel points in a pixel in the prediction data Performing an arithmetic operation, obtaining an arithmetic value of a corresponding pixel value, and calculating a first mean value of the predicted data according to an arithmetic value of the corresponding pixel value;
第二处理模块, 用于根据所述预测数据的第一均值和所述当前图像块的 像素点的像素值得到当前图像块的残差;  a second processing module, configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
编码模块, 用于对所述当前图像块的残差进行编码。  And an encoding module, configured to encode a residual of the current image block.
结合第七方面, 在第一种可能的实现方式中, 所述第一处理模块具体用 于对所述预测数据中的像素点中每 N个像素点进行平均操作, 获得平均像素 值, 将所述平均像素值作为相应像素的算术值。  With reference to the seventh aspect, in a first possible implementation manner, the first processing module is specifically configured to perform an averaging operation on each of the N pixel points in the predicted data to obtain an average pixel value, The average pixel value is taken as the arithmetic value of the corresponding pixel.
结合第七方面或第七方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述第二处理模块具体用于将所述图像块的像素点与所述当前图 像块的预测数据的第一均值做差, 得到所述当前图像块的残差; 或, 获得深 度图像当前图像块的数据, 根据预设的步长在所述当前图像块的数据中获得 所述像素值, 根据所述像素值计算所述图像块的数据的第二均值, 将所述图 像块的第二均值与所述当前图像块的参考图像块的第一均值做差, 得到所述 当前图像块的残差。  With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, in a second possible implementation, the second processing module is specifically configured to: the pixel of the image block and the current image block Obtaining a difference between the first mean value of the prediction data to obtain a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining the pixel in data of the current image block according to a preset step size a value, a second mean value of the data of the image block is calculated according to the pixel value, and a second mean value of the image block is compared with a first mean value of a reference image block of the current image block to obtain the current image. The residual of the block.
本实施例第八方面, 提供一种深度图像的解码装置, 包括:  An eighth aspect of the present invention provides a decoding apparatus for a depth image, including:
处理模块, 用于获得深度图像当前图像块对应的预测数据, 对预测数据 中的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根据所 述相应像素值的算术值计算所述预测数据的第一均值;  a processing module, configured to obtain prediction data corresponding to a current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, and obtain an arithmetic value of the corresponding pixel value, according to an arithmetic value of the corresponding pixel value Calculating a first mean value of the predicted data;
解码模块, 用于获得所述当前图像块的残差, 根据所述预测数据的均值 和所述当前图像块的残差获得所述当前图像块的像素点的像素值。  And a decoding module, configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to an average of the prediction data and a residual of the current image block.
结合第八方面, 在第一种可能的实现方式中, 处理模块具体用于对所述 当前图像块和所述预测数据中的像素点中每 N个像素点进行平均操作,获得平 均像素值, 将所述平均像素值作为相应像素值的算术值。 With reference to the eighth aspect, in a first possible implementation, the processing module is specifically configured to An average operation is performed for every N pixels in the current image block and the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel value.
结合第八方面或第八方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述解码模块具体用于将所述当前图像块的预测数据的均值与所 述当前图像块的残差相加, 获得所述当前图像块的像素点的像素值; 或, 将 所述当前图像块的预测数据的均值与所述残差相加, 获得所述当前图像块的 像素均值, 将所述当前图像块的像素均值作为所述当前图像块的像素点的像 素值。  With reference to the eighth aspect, or the first possible implementation manner of the eighth aspect, in a second possible implementation, the decoding module is specifically configured to use an average of prediction data of the current image block and the current image Adding a residual of the block to obtain a pixel value of a pixel of the current image block; or, adding a mean value of the prediction data of the current image block to the residual to obtain a pixel mean of the current image block And using a pixel average of the current image block as a pixel value of a pixel point of the current image block.
本发明实施例提供的深度图像的编解码方法和编解码装置, 通过获得深 度图像当前图像块对应的预测数据, 根据预设的步长在所述预测数据中获得 预测像素值, 根据所述预测像素值计算所述预测数据的第一均值, 所述预设 的步长为不是 1 的正整数; 根据所述预测数据的第一均值和所述当前图像块 的像素点的像素值得到当前图像块的残差; 对所述当前图像块的残差进行编 码, 可以减少当前图像块的预测数据的参考像素点的个数, 从而, 在计算获 取当前图像块的预测数据的第一均值时, 计算量明显降低, 从而可以提高编 码效率。 相应地, 解码端对当前图像块进行解码处理时, 釆用与编码端的编 码方法对应的解码方法进行解码处理的计算量也明显降低, 因此, 釆用本发 明实施例的技术方案, 可以有效提高编解码效率。  The codec method and the codec device of the depth image provided by the embodiment of the present invention obtain the predicted pixel value in the prediction data according to the preset step size by obtaining the prediction data corresponding to the current image block of the depth image, according to the prediction. a pixel value calculates a first mean value of the prediction data, the preset step size is a positive integer that is not 1; obtaining a current image according to a first mean value of the prediction data and a pixel value of a pixel point of the current image block Residual of the block; encoding the residual of the current image block, may reduce the number of reference pixels of the prediction data of the current image block, and thus, when calculating the first mean value of the prediction data of the current image block, The amount of calculation is significantly reduced, so that the coding efficiency can be improved. Correspondingly, when the decoding end performs the decoding process on the current image block, the calculation amount of the decoding process using the decoding method corresponding to the encoding method of the encoding end is also significantly reduced. Therefore, the technical solution of the embodiment of the present invention can be effectively improved. Codec efficiency.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图 1为本发明深度图像的编码方法实施例一的流程示意图;  1 is a schematic flow chart of Embodiment 1 of a method for encoding a depth image according to the present invention;
图 2为本发明深度图像的编码方法实施例一的图像块示意图;  2 is a schematic diagram of an image block according to Embodiment 1 of a method for encoding a depth image according to the present invention;
图 3为本发明深度图像的编码方法实施例二的流程示意图;  3 is a schematic flowchart of Embodiment 2 of a method for encoding a depth image according to the present invention;
图 4为本发明深度图像的解码方法实施例一的流程示意图; 图 5为本发明深度图像的解码方法实施例二的流程示意图; 图 6为本发明深度图像的编码装置实施例一的结构示意图; 4 is a schematic flowchart of Embodiment 1 of a method for decoding a depth image according to the present invention; 5 is a schematic flowchart of Embodiment 2 of a method for decoding a depth image according to the present invention; FIG. 6 is a schematic structural diagram of Embodiment 1 of a device for encoding a depth image according to the present invention;
图 7为本发明深度图像的解码装置实施例一的结构示意图;  7 is a schematic structural diagram of Embodiment 1 of a decoding apparatus for a depth image according to the present invention;
图 8为本发明深度图像的编码方法实施例三的流程示意图;  8 is a schematic flowchart of Embodiment 3 of a method for encoding a depth image according to the present invention;
图 9为本发明深度图像的解码方法实施例三的流程示意图;  9 is a schematic flowchart of Embodiment 3 of a method for decoding a depth image according to the present invention;
图 10为本发明深度图像的编码装置实施例二的结构示意图;  10 is a schematic structural diagram of Embodiment 2 of a depth image encoding apparatus according to the present invention;
图 11为本发明深度图像的解码装置实施例二的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  FIG. 11 is a schematic structural diagram of Embodiment 2 of a decoding apparatus for a depth image according to the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在三维视频系统中, 深度图像包含了视图像的深度信息, 例如, 轮廓信 息, 深度图像的特点是大部分区域纹理较为平滑, 通常只在物体边界含有瑞 利的边界信息, 深度图像内的像素值比较单一且分布均勾, 因此, 在釆用帧 内预测方法对深度图像的每个预测进行编码时, 釆用待编码图像块的像素均 值与图像块对应的参考图像块的像素均值之间的残差进行编码, 当对大尺寸 图像块进行编码时, 需要进行计算图像块的均值或参考图像块的均值的计算 量较大, 在对深度图像块划分为图像块时, 通常尺寸较大的图像块含有较少 的纹理信息, 本发明实施例结合大尺寸图像块含有较少纹理信息的特点, 在 釆用待编码图像块的像素均值与图像块对应的参考图像块的像素均值之间的 残差进行编码之前, 先对图像块与图像块对应的参考图像块进行相同的下釆 样, 根据下釆样后的像素点, 获取参考图像块的像素均值与图像块对应的参 考图像块的像素均值, 以减小编码时的计算量, 提高编码效率。 下面以几个 具体的实施例对本发明的技术方案进行详细描述。  In a 3D video system, the depth image contains depth information of the view image, for example, contour information. The depth image is characterized by a smoother texture in most areas. Usually, only the edge information of Rayleigh is included at the boundary of the object, and the pixels in the depth image are The values are relatively simple and the distribution is uniform. Therefore, when each prediction of the depth image is encoded by the intra prediction method, the pixel mean of the image block to be encoded is used between the pixel mean of the reference image block corresponding to the image block. The residual is coded. When encoding a large-size image block, it is necessary to calculate the mean of the image block or the average of the reference image block. When the depth image block is divided into image blocks, the size is usually larger. The image block contains less texture information, and the embodiment of the present invention combines the feature that the large size image block contains less texture information, between the pixel mean value of the image block to be encoded and the pixel mean value of the reference image block corresponding to the image block. Before the residual is encoded, the image block is identical to the reference image block corresponding to the image block. According to the punctured pixel, the pixel mean of the reference image block and the pixel mean of the reference image block corresponding to the image block are obtained, so as to reduce the calculation amount at the time of encoding and improve the coding efficiency. The technical solutions of the present invention are described in detail below in several specific embodiments.
图 1为本发明深度图像的编码方法实施例一的流程示意图, 本实施例的执 行主体是编码装置, 本实施例的方法包括:  1 is a schematic flowchart of a first embodiment of a method for encoding a depth image according to the present invention. The execution body of the embodiment is an encoding device, and the method of this embodiment includes:
S101 : 获得深度图像当前图像块对应的预测数据, 根据预设的步长在预 测数据中获得预测像素值, 根据预测像素值计算预测数据的第一均值, 预设 的步长为不是 1的正整数。 S101: Obtain a prediction data corresponding to a current image block of the depth image, according to a preset step size The predicted pixel value is obtained in the measured data, and the first mean value of the predicted data is calculated according to the predicted pixel value, and the preset step size is a positive integer not being 1.
本实施例中, 该预设的步长可以用于标识预测数据位置坐标之间的间隔。 In this embodiment, the preset step size may be used to identify an interval between predicted data position coordinates.
S 102、 根据预测数据的第一均值和当前图像块的像素点的像素值得到残 差。 S102. Obtain a residual according to the first mean of the prediction data and the pixel value of the pixel of the current image block.
S103、 对当前图像块的残差进行编码。  S103. Encode a residual of the current image block.
具体地, 编码端根据预设的步长在预测数据中获得预测像素值的过程, 即为对预测数据进行下釆样的过程。  Specifically, the process of obtaining the predicted pixel value in the prediction data according to the preset step size by the encoding end is a process of performing the sampling on the prediction data.
图 2为本发明深度图像的编码方法实施例一的图像块示意图, 如图 2所示, 每一个方格代表一个像素点, 当前图像块的预测数据的尺寸为 8 x 8, 即具有 64 个像素点。 以预设的步长为 2, 即可对当前图像块的预测数据进行 2:1下釆样处 理, 即在水平方向和垂直方向都是间隔一个像素点釆样一次, 获取一个像素 点, 从而可以获得预测像素值。 图 2所示黑色的像素点即为预测像素值, 预测 像素值的个数为 16个。  2 is a schematic diagram of an image block of a first embodiment of a method for encoding a depth image according to the present invention. As shown in FIG. 2, each square represents a pixel, and the size of the prediction data of the current image block is 8 x 8, that is, 64 pixels. pixel. With a preset step size of 2, the predicted data of the current image block can be processed 2:1, that is, one pixel is spaced once in the horizontal direction and the vertical direction, and one pixel is obtained. The predicted pixel value can be obtained. The black pixel shown in Fig. 2 is the predicted pixel value, and the number of predicted pixel values is 16.
接着, 编码端可以根据预测像素值计算预测数据的第一均值, 并根据预 测数据的第一均值和图像块的像素点的像素值得到残差。  Then, the encoding end may calculate a first mean value of the prediction data according to the predicted pixel value, and obtain a residual according to the first mean value of the predicted data and the pixel value of the pixel point of the image block.
相应地, 在解码端对当前图像块进行解码处理时, 釆用与编码端对应的 处理过程对当前图像块对应的参考图像块进行处理即可, 从而还可以提高解 码效率。  Correspondingly, when the decoding process is performed on the current image block by the decoding end, the reference image block corresponding to the current image block may be processed by the processing procedure corresponding to the encoding end, thereby further improving the decoding efficiency.
本实施例中, 通过获得深度图像当前图像块对应的预测数据, 根据预设 的步长在预测数据中获得预测像素值, 根据预测像素值计算预测数据的第一 均值, 预设的步长为不是 1的正整数; 根据预测数据的第一均值和当前图像块 的像素点的像素值得到残差; 对当前图像块的残差进行编码, 可以减少当前 图像块的预测数据的参考像素点的个数, 从而, 在计算获取当前图像块的预 测数据的第一均值时, 计算量明显降低, 从而可以提高编码效率。 相应地, 解码端对当前图像块进行解码处理时, 釆用与编码端的编码方法对应的解码 方法进行解码处理的计算量也明显降低, 因此, 釆用本实施例的技术方案, 可以有效提高编解码效率。  In this embodiment, by obtaining the prediction data corresponding to the current image block of the depth image, obtaining the predicted pixel value in the prediction data according to the preset step size, and calculating the first mean value of the prediction data according to the predicted pixel value, the preset step size is a positive integer not being 1; a residual is obtained according to the first mean of the prediction data and the pixel value of the pixel of the current image block; encoding the residual of the current image block, the reference pixel of the prediction data of the current image block may be reduced Therefore, when calculating the first mean value of the prediction data of the current image block, the calculation amount is significantly reduced, so that the coding efficiency can be improved. Correspondingly, when the decoding end performs decoding processing on the current image block, the calculation amount of the decoding process using the decoding method corresponding to the encoding method of the encoding end is also significantly reduced. Therefore, the technical solution of the embodiment can effectively improve the editing. Decoding efficiency.
上述实施例中, S102在具体实现时, 例如可以釆用下述两种方式实现: 方式一、 将当前图像块的像素点与当前图像块的预测数据的第一均值做 差, 得到当前图像块的残差; 或者, In the foregoing embodiment, when S102 is specifically implemented, for example, the following two manners can be implemented: Method 1: The pixel of the current image block is compared with the first average of the prediction data of the current image block. Poor, get the residual of the current image block; or,
方式二、 获得深度图像当前图像块的数据, 根据预设的步长在当前图像 块的数据中获得预测像素值, 根据当前图像块的数据的像素值计算当前图像 块的数据的第二均值, 将当前图像块的数据的第二均值与当前图像块的预测 数据的第一均值做差, 得到当前图像块的残差, 此时该图像块只有一个残差 值。  The second method is: obtaining data of the current image block of the depth image, obtaining a predicted pixel value in the data of the current image block according to the preset step size, and calculating a second mean value of the data of the current image block according to the pixel value of the data of the current image block, The second mean value of the data of the current image block is compared with the first mean value of the prediction data of the current image block to obtain a residual of the current image block, and at this time, the image block has only one residual value.
上述方式二与方式一相比, 可以减少当前图像块的数据的参考像素点的 个数, 从而在计算获取当前图像块的数据的第二均值时, 计算量明显降低, 从而可以进一步提高编码效率。  Compared with the first method, the foregoing method 2 can reduce the number of reference pixel points of the data of the current image block, so that when calculating the second mean value of the data of the current image block, the calculation amount is significantly reduced, thereby further improving the coding efficiency. .
需要说明的是, 在方式二中, 根据预设的步长在当前图像块的数据中获 得像素值的过程与根据预设的步长在当前图像块的预测数据中获得预测像素 值的过程类似, 此处不再赘述。  It should be noted that, in the second method, the process of obtaining the pixel value in the data of the current image block according to the preset step size is similar to the process of obtaining the predicted pixel value in the prediction data of the current image block according to the preset step size. , will not repeat them here.
下面釆用一个具体的实施例, 对本发明的技术方案进行详细说明 图 3为本发明深度图像的编码方法实施例二的流程示意图, 本实施例的执 行主体是编码装置, 本实施例的方法包括:  The following is a detailed description of the technical solution of the present invention. FIG. 3 is a schematic flowchart of the second embodiment of the method for encoding a depth image according to the present invention. The execution subject of the embodiment is an encoding device, and the method of the embodiment includes :
S301: 根据当前图像块的帧内预测模式确定帧内预测模式是否属于预设 的帧内预测模式集合; 若属于, 执行 S302~306, 若不属于, 执行 S307。  S301: Determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set; if yes, execute S302~306, if not, execute S307.
S302: 确定对当前图像块和当前图像块对应的参考图像块进行下釆样处 理。  S302: Determine to perform a sample processing on the current image block and the reference image block corresponding to the current image block.
本实施例中的帧内预测模式集合至少包括 DC模式、 Planar模式、 显示的 标识模式和基于帧内预测模式的模式, 在根据预设的下釆样规则对当前图像 块和参考图像块进行下釆样处理之前, 需要先确定帧内预测模式是否属于帧 内预测模式集合, 相应地, 在解码端具有与编码端相同的帧内预测模式集合, 在对参考图像块进行下釆样处理之前, 也需要先确定帧内预测模式是否属于 帧内预测模式的集合。 预设的帧内预测模式集合是经过测试表明釆用 S302 S306的编码方法可获得较好编码处理性能的帧内预测模式的集合。  The intra prediction mode set in this embodiment includes at least a DC mode, a Planar mode, a displayed identification mode, and an intra prediction mode based mode, and the current image block and the reference image block are performed according to a preset lowering rule. Before the sample processing, it is determined whether the intra prediction mode belongs to the intra prediction mode set, and correspondingly, the decoding end has the same intra prediction mode set as the encoding end, before the reference image block is sampled, It is also necessary to first determine whether the intra prediction mode belongs to a set of intra prediction modes. The preset set of intra prediction modes is a set of intra prediction modes that have been tested to show that the encoding method of S302 S306 can obtain better encoding processing performance.
若属于, 则确定对当前图像块和当前图像块对应的参考图像块进行下釆 样处理。  If it belongs, it is determined that the current image block and the reference image block corresponding to the current image block are subjected to the sample processing.
值得说明的是, 步骤 S301与 S302为可选的步骤, 也可不执行此步骤, 直 接执行 S303~S306。 S303 : 获得深度图像当前图像块的数据, 根据预设的步长在当前图像块 的数据中获得预测像素值, 获得深度图像当前图像块对应的预测数据, 根据 预设的步长在预测数据中获得预测像素值。 It should be noted that steps S301 and S302 are optional steps, and may not be performed, and S303~S306 are directly executed. S303: Obtain data of a current image block of the depth image, obtain a predicted pixel value in the data of the current image block according to the preset step size, obtain prediction data corresponding to the current image block of the depth image, and obtain the predicted data according to the preset step size. Get the predicted pixel value.
可选地, 根据预设的步长在当前图像块的数据中获得预测像素值, 或者 根据预设的步长在预测数据中获得预测像素值的均可以釆用下述三种方式实 现:  Optionally, obtaining the predicted pixel value in the data of the current image block according to the preset step size, or obtaining the predicted pixel value in the prediction data according to the preset step size may be implemented in the following three manners:
方式一: 根据当前图像块的尺寸进行水平方向和垂直方向的等步长获得 预测像素值;  Method 1: obtaining equal prediction steps in the horizontal direction and the vertical direction according to the size of the current image block;
以等步长为 4获得预测像素值举例来说,对于当前图像块尺寸为 64 X 64的, 进行水平方向和垂直方向都为 4: 1来获得预测像素值, 则所获得预测像素值的 个数为 16 x 16个。  For example, if the current image block size is 64×64, the horizontal and vertical directions are 4:1 to obtain the predicted pixel value, then the predicted pixel values are obtained. The number is 16 x 16.
方式二: 根据当前图像块的尺寸进行水平方向和垂直方向的非等步长获 得预测像素值。  Manner 2: The non-equal step size in the horizontal direction and the vertical direction is obtained according to the size of the current image block to obtain a predicted pixel value.
以水平方向的步长为 2, 垂直方向的步长为 4获得预测像素值举例来说, 对于当前图像块尺寸为 16 x 16的, 进行水平方向为 2: 1的下釆样来获得水平方 向上的预测像素值,垂直方向为 4: 1的下釆样来获得垂直方向上的预测像素值, 则所获得预测像素值的个数为 8 X 4个。  The step size in the horizontal direction is 2, and the step size in the vertical direction is 4 to obtain the predicted pixel value. For example, for the current image block size of 16 x 16 , the horizontal direction is 2:1 to obtain the horizontal direction. The predicted pixel value on the upper side is 4:1 in the vertical direction to obtain the predicted pixel value in the vertical direction, and the number of predicted pixel values obtained is 8×4.
方式三: 根据当前图像块的尺寸确定步长, 根据步长获得预测像素值。 以 32 X 32和 64 X 64图像块为例, 设 32 χ 32图像块水平和垂直方向的步长为 2 , 32 x 32图像块水平和垂直方向的步长为 4, 则对于这两个尺寸的图像块所获 得的预测像素值的个数均为 16 X 16个。  Method 3: Determine the step size according to the size of the current image block, and obtain the predicted pixel value according to the step size. Taking 32 X 32 and 64 X 64 image blocks as an example, let 32 χ 32 image blocks have a horizontal and vertical step size of 2, and 32 x 32 image blocks have a horizontal and vertical step size of 4, for these two sizes. The number of predicted pixel values obtained by the image block is 16 X 16 .
相应地, 解码端可以釆用与编码端相对应的处理过程进行解码处理。 可选地, 上述以预设的步长获得预测像素值的过程可以是编码端和解码 端预设的, 也可以不是预设的。  Correspondingly, the decoding end can perform decoding processing by using a processing procedure corresponding to the encoding end. Optionally, the foregoing process of obtaining the predicted pixel value in a preset step size may be preset by the encoding end and the decoding end, or may not be preset.
当不是编码端和解码端预设时, 例如是编码端对釆用各个步长的值的处 理结果进行比较, 确定出一种最优的步长进行处理, 则在编码时, 还可以对 所述预设的步长的值进行编码, 以使解码端根据该标识的步长的值进行对应 的处理。  When it is not preset by the encoding end and the decoding end, for example, the encoding end compares the processing results of the values of the respective step sizes to determine an optimal step size for processing, and at the time of encoding, The value of the preset step size is encoded, so that the decoding end performs corresponding processing according to the value of the step size of the identifier.
S304 : 根据预测像素值计算预测数据的第一均值, 根据当前图像块的数 据的像素值计算当前图像块的数据的第二均值。 S305: 将当前图像块的数据的第二均值与当前图像块的预测数据的第一 均值做差, 得到当前图像块的残差。 S304: Calculate a first mean value of the prediction data according to the predicted pixel value, and calculate a second mean value of the data of the current image block according to the pixel value of the data of the current image block. S305: Perform a difference between the second mean value of the data of the current image block and the first mean value of the prediction data of the current image block to obtain a residual of the current image block.
S306: 对残差进行编码处理, 获取当前图像块的编码结果。  S306: Encode the residual to obtain a coding result of the current image block.
本步骤中, 可选地, 对残差进行编码处理至少包括以下几种实现方式: 第一种实现方式: 对残差进行量化, 将残差量化为一个更小的数值, 釆 用更少的比特位对其进行编码, 相应地, 在解码端, 釆用相同的量化比例进 行反量化处理, 将反量化处理后的结果作为所需釆用的残差。  In this step, optionally, the encoding process of the residual includes at least the following implementation manners: The first implementation manner: quantizing the residual, quantizing the residual to a smaller value, and using less The bit is encoded, and accordingly, at the decoding end, the inverse quantization process is performed using the same quantization scale, and the result of the inverse quantization process is used as the residual used.
第二种实现方式: 直接对残差进行编码, 相应地, 解码端对残差进行解 码处理, 将解码处理结果作为所需使用的残差, 以避免量化带来的压缩损失。  The second implementation manner is: directly encoding the residual, and correspondingly, the decoding end decodes the residual, and uses the decoding processing result as the residual used to avoid the compression loss caused by the quantization.
第三种实现方式, 将残差映射成另一残差, 对另一残差进行编码处理, 表示另一残差的比特位小于表示该残差的比特位, 从而可以进一步提高编码 在具体实现时可根据映射表进行映射。 例如, 深度图像中的像素值为 8、 64、 164、 240、 245 , 则对应映射表中的像素值为 1、 2、 3、 4、 5, 釆用这种 方式可以减少编码比特, 以进一步地提高编码效率。  In a third implementation manner, the residual is mapped to another residual, and another residual is encoded, indicating that the bit of another residual is smaller than the bit representing the residual, thereby further improving coding in a specific implementation. It can be mapped according to the mapping table. For example, if the pixel values in the depth image are 8, 64, 164, 240, 245, then the pixel values in the corresponding mapping table are 1, 2, 3, 4, 5, and in this way, the coding bits can be reduced to further Improve coding efficiency.
S307: 其他处理。  S307: Other processing.
其他处理例如可以是对当前图像块的数据与当前图像块对应参考数据的 每个像素值进行逐点求差得到的残差矩阵进行编码处理, 获得编码结果, 或 者,釆用 Wedgelet的方法,对当前图像块中的每个像素点与一个恒定值求差得 到的残差矩阵进行编码处理, 获得编码结果, 本实施例对此不再详细赘述。  For example, the residual matrix obtained by performing the point-by-point difference between the data of the current image block and the pixel value of the reference data of the current image block may be encoded to obtain a coding result, or the method of Wedgelet may be used. A residual matrix obtained by subtracting a constant value from each pixel in the current image block is subjected to an encoding process to obtain a coding result, which is not described in detail in this embodiment.
本实施例中, 通过获得深度图像当前图像块的数据, 根据预设的步长在 当前图像块的数据中获得预测像素值, 获得深度图像当前图像块对应的预测 数据, 根据预设的步长在预测数据中获得预测像素值, 根据预测像素值计算 预测数据的第一均值, 根据当前图像块的数据的像素值计算当前图像块的数 据的第二均值, 将当前图像块的数据的第二均值与当前图像块的预测数据的 第一均值做差, 得到当前图像块的残差, 并对残差进行编码处理, 获取当前 图像块的编码结果, 可以减少当前图像块的预测数据的参考像素点的个数以 及当前图像块的数据的参考像素点的个数, 从而, 在计算获取当前图像块的 预测数据的第一均值以及当前图像块的数据的第二均值时, 计算量明显降低, 从而可以提高编码效率。 相应地, 解码端对当前图像块进行解码处理时, 釆 用与编码端的编码方法对应的解码方法进行解码处理的计算量也明显降低, 因此, 釆用本实施例的技术方案, 可以有效提高编解码效率。 In this embodiment, by obtaining the data of the current image block of the depth image, obtaining the predicted pixel value in the data of the current image block according to the preset step size, obtaining the prediction data corresponding to the current image block of the depth image, according to the preset step size. Obtaining a predicted pixel value in the prediction data, calculating a first mean value of the prediction data according to the predicted pixel value, calculating a second mean value of the data of the current image block according to the pixel value of the data of the current image block, and secondizing the data of the current image block The mean value is different from the first mean value of the prediction data of the current image block, and the residual of the current image block is obtained, and the residual is encoded to obtain the coding result of the current image block, which can reduce the reference pixel of the prediction data of the current image block. The number of points and the number of reference pixels of the data of the current image block, so that when calculating the first mean value of the prediction data of the current image block and the second mean value of the data of the current image block, the calculation amount is significantly reduced. Thereby, the coding efficiency can be improved. Correspondingly, when the decoding end decodes the current image block, The calculation amount of the decoding process by the decoding method corresponding to the encoding method of the encoding side is also significantly reduced. Therefore, the coding and decoding efficiency can be effectively improved by using the technical solution of the embodiment.
图 4为本发明深度图像的解码方法实施例一的流程示意图, 如图 4所示, 本实施例的执行主体是解码装置, 本实施例的方法包括;  4 is a schematic flowchart of a first embodiment of a method for decoding a depth image according to the present invention. As shown in FIG. 4, the execution body of the embodiment is a decoding device, and the method of this embodiment includes:
S401 : 获得深度图像当前图像块对应的预测数据, 根据预设的步长在预 测数据中获得预测像素值, 根据预测像素值计算预测数据的第一均值, 预设 的步长为不是 1的正整数;  S401: Obtain prediction data corresponding to the current image block of the depth image, obtain a predicted pixel value in the prediction data according to the preset step size, and calculate a first mean value of the prediction data according to the predicted pixel value, where the preset step size is not positive Integer
本实施例中, 该预设的步长可以用于标识预测数据位置坐标之间的间隔。 具体来说, 解码端依然可以釆用与上述编码端对应的过程来实现根据预 设的步长在预测数据中获得预测像素值的步骤。  In this embodiment, the preset step size may be used to identify an interval between predicted data position coordinates. Specifically, the decoding end can still use the process corresponding to the above encoding end to implement the step of obtaining the predicted pixel value in the prediction data according to the preset step size.
例如, 若当前图像块的预测数据的尺寸为 8 x 8, 即具有 64个像素点。 以预 设的步长为 2, 即可对当前图像块的预测数据进行 2: 1下釆样处理, 即在水平方 向和垂直方向都是间隔一个像素点釆样一次, 获取一个像素点, 从而可以获 得预测像素值。  For example, if the size of the prediction data of the current image block is 8 x 8, that is, there are 64 pixel points. With a preset step size of 2, the predicted data of the current image block can be processed 2:1, that is, one pixel is spaced once in the horizontal direction and the vertical direction, and one pixel point is obtained. The predicted pixel value can be obtained.
S402、 获得当前图像块的残差。  S402. Obtain a residual of the current image block.
具体来说, 编码端可以获得深度图像当前图像块对应的预测数据, 根据 预设的步长在预测数据中获得预测像素值, 根据预测像素值计算预测数据的 第一均值, 并根据预测数据的第一均值和当前图像块的像素点的像素值得到 残差, 将该残差进行编码发送到解码端, 则解码端可以从码流中获取当前图 像块的残差。  Specifically, the encoding end may obtain prediction data corresponding to the current image block of the depth image, obtain a predicted pixel value in the prediction data according to the preset step size, calculate a first mean value of the prediction data according to the predicted pixel value, and according to the predicted data. The first mean value and the pixel value of the pixel of the current image block are obtained as residuals, and the residual is encoded and sent to the decoding end, and the decoding end can acquire the residual of the current image block from the code stream.
S403、 根据预测数据的第一均值和当前图像块的残差获得当前图像块的 像素点的像素值。  S403. Obtain a pixel value of a pixel of the current image block according to the first mean value of the prediction data and the residual of the current image block.
本实施例中, 通过获得深度图像当前图像块对应的预测数据, 根据预设 的步长在预测数据中获得预测像素值, 根据预测像素值计算预测数据的第一 均值, 预设的步长为不是 1的正整数, 获得当前图像块的残差, 根据预测数据 的第一均值和当前图像块的残差获得当前图像块的像素点的像素值, 可以减 少当前图像块的预测数据的参考像素点的个数, 从而, 在计算获取当前图像 块的预测数据的第一均值时, 计算量明显降低, 从而可以提高解码效率。  In this embodiment, by obtaining the prediction data corresponding to the current image block of the depth image, obtaining the predicted pixel value in the prediction data according to the preset step size, and calculating the first mean value of the prediction data according to the predicted pixel value, the preset step size is A positive integer not being 1, obtaining a residual of the current image block, obtaining a pixel value of a pixel of the current image block according to the first mean value of the prediction data and the residual of the current image block, and reducing the reference pixel of the prediction data of the current image block The number of points, thus, when calculating the first mean value of the prediction data of the current image block, the calculation amount is significantly reduced, so that the decoding efficiency can be improved.
上述实施例中, S403在具体实现时, 例如可以釆用下述两种方式实现: 方式一: 将当前图像块的预测数据的第一均值与当前图像块的残差相加, 获得当前图像块的像素点的像素值; In the foregoing embodiment, when S403 is specifically implemented, for example, the following two methods may be implemented: Method 1: Adding a first mean value of prediction data of a current image block to a residual of a current image block, Obtaining a pixel value of a pixel of the current image block;
与该方式对应的, 编码端的处理过程为将当前图像块的像素点与当前图 像块的预测数据的第一均值做差, 得到当前图像块的残差, 则解码端即可将 当前图像块的预测数据的第一均值与当前图像块的残差相加, 获得当前图像 块的像素点的像素值。  Corresponding to the method, the processing of the encoding end is to make the difference between the pixel point of the current image block and the first average value of the prediction data of the current image block to obtain the residual of the current image block, and then the decoding end can perform the current image block. The first mean of the prediction data is added to the residual of the current image block to obtain the pixel value of the pixel of the current image block.
方式二: 将当前图像块的预测数据的第一均值与残差相加, 获得当前图 像块的像素均值, 将当前图像块的像素均值作为当前图像块的像素点的像素 值。  Manner 2: adding the first mean value of the prediction data of the current image block to the residual, obtaining a pixel mean value of the current image block, and using the pixel mean value of the current image block as the pixel value of the pixel point of the current image block.
与该方式对应的, 编码端的处理过程为获得深度图像当前图像块的数据, 根据预设的步长在当前图像块的数据中获得预测像素值, 根据当前图像块的 数据的像素值计算当前图像块的数据的第二均值, 将当前图像块的数据的第 二均值与当前图像块的预测数据的第一均值做差, 得到当前图像块的残差, 则解码端对应的处理过程为将当前图像块的预测数据的第一均值与残差相 加, 获得当前图像块的像素均值, 将当前图像块的像素均值作为当前图像块 的像素点的像素值。  Corresponding to the method, the processing of the encoding end is to obtain the data of the current image block of the depth image, obtain the predicted pixel value in the data of the current image block according to the preset step size, and calculate the current image according to the pixel value of the data of the current image block. The second mean value of the data of the block is obtained by comparing the second mean value of the data of the current image block with the first mean value of the predicted data of the current image block to obtain a residual of the current image block, and the processing process corresponding to the decoding end is The first mean value of the prediction data of the image block is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel point of the current image block.
下面釆用一个具体的实施例, 对本发明的解码方法进行详细说明。 The decoding method of the present invention will be described in detail below using a specific embodiment.
图 5为本发明深度图像的解码方法实施例二的流程示意图, 本实施例的执 行主体是解码装置, 本实施例的方法包括:  FIG. 5 is a schematic flowchart of a second embodiment of a method for decoding a depth image according to the present invention. The execution body of the embodiment is a decoding device, and the method in this embodiment includes:
S501: 根据当前图像块的帧内预测模式确定帧内预测模式是否属于预设 的帧内预测模式集合; 若属于, 执行 S502~S506, 若不属于, 执行 S507。  S501: Determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set; if yes, execute S502~S506, if not, execute S507.
S502: 则确定对当前图像块对应的参考图像块进行下釆样处理。  S502: Determine to perform a sample processing on the reference image block corresponding to the current image block.
本实施例中的帧内预测模式集合至少包括 DC模式、 Planar模式、 显示的 标识模式和基于帧内预测模式的模式, 在根据预设的下釆样规则对当前图像 块对应的参考图像块进行下釆样处理之前, 需要先确定帧内预测模式是否属 于帧内预测模式集合, 相应地, 在编码端具有与解码端相同的帧内预测模式 集合, 在对当前图像块和当前图像块对应的参考图像块进行下釆样处理之前, 也需要先确定帧内预测模式是否属于帧内预测模式的结合。  The intra prediction mode set in this embodiment includes at least a DC mode, a Planar mode, a displayed identification mode, and an intra prediction mode based mode, and the reference image block corresponding to the current image block is performed according to a preset lowering rule. Before the processing is performed, it is determined whether the intra prediction mode belongs to the intra prediction mode set, and accordingly, the encoding end has the same intra prediction mode set as the decoding end, and corresponds to the current image block and the current image block. Before the reference image block is subjected to the sample processing, it is also necessary to first determine whether the intra prediction mode belongs to the combination of the intra prediction modes.
预设的帧内预测模式集合是编码端经过测试表明釆用均值进行编码方法 可获得较好编码处理性能的帧内预测模式的集合。  The preset intra prediction mode set is a set of intra prediction modes that the encoding end has been tested to show that the encoding method is averaged to obtain better encoding processing performance.
若属于, 则确定对当前图像块对应的参考图像块进行下釆样处理。 值得说明的是, 步骤 S501与 S502为可选的步骤, 也可不执行此步骤, 直 接执行 S503~S506。 If it belongs, it is determined that the reference image block corresponding to the current image block is subjected to the sample processing. It should be noted that steps S501 and S502 are optional steps, and may not be performed, and S503~S506 are directly executed.
S503 : 获得深度图像当前图像块对应的预测数据, 根据预设的步长在预 测数据中获得预测像素值。  S503: Obtain prediction data corresponding to the current image block of the depth image, and obtain a predicted pixel value in the prediction data according to the preset step size.
根据预设的步长在预测数据中获得预测像素值可以釆用下述三种方式实 现:  Obtaining predicted pixel values in the prediction data according to the preset step size can be achieved in the following three ways:
方式一: 根据当前图像块的尺寸进行水平方向和垂直方向的等步长获得 预测像素值;  Method 1: obtaining equal prediction steps in the horizontal direction and the vertical direction according to the size of the current image block;
以等步长为 4获得预测像素值举例来说,对于当前图像块尺寸为 64 X 64的, 进行水平方向和垂直方向都为 4: 1来获得预测像素值, 则所获得预测像素值的 个数为 16 x 16个。  For example, if the current image block size is 64×64, the horizontal and vertical directions are 4:1 to obtain the predicted pixel value, then the predicted pixel values are obtained. The number is 16 x 16.
方式二: 根据当前图像块的尺寸进行水平方向和垂直方向的非等步长获 得预测像素值。  Manner 2: The non-equal step size in the horizontal direction and the vertical direction is obtained according to the size of the current image block to obtain a predicted pixel value.
以水平方向的步长为 2, 垂直方向的步长为 4获得预测像素值举例来说, 对于当前图像块尺寸为 16 x 16的, 进行水平方向为 2: 1的下釆样来获得水平方 向上的预测像素值,垂直方向为 4: 1的下釆样来获得垂直方向上的预测像素值, 则所获得预测像素值的个数为 8 X 4个。  The step size in the horizontal direction is 2, and the step size in the vertical direction is 4 to obtain the predicted pixel value. For example, for the current image block size of 16 x 16 , the horizontal direction is 2:1 to obtain the horizontal direction. The predicted pixel value on the upper side is 4:1 in the vertical direction to obtain the predicted pixel value in the vertical direction, and the number of predicted pixel values obtained is 8×4.
方式三: 根据当前图像块的尺寸确定步长, 根据步长获得预测像素值。 以 32 X 32和 64 X 64图像块为例, 设 32 χ 32图像块水平和垂直方向的步长为 2 , 32 x 32图像块水平和垂直方向的步长为 4, 则对于这两个尺寸的图像块所获 得的预测像素值的个数均为 16 X 16个。  Method 3: Determine the step size according to the size of the current image block, and obtain the predicted pixel value according to the step size. Taking 32 X 32 and 64 X 64 image blocks as an example, let 32 χ 32 image blocks have a horizontal and vertical step size of 2, and 32 x 32 image blocks have a horizontal and vertical step size of 4, for these two sizes. The number of predicted pixel values obtained by the image block is 16 X 16 .
可选地, 上述以预设的步长获得预测像素值的过程可以是编码端和解码 端预设的, 也可以不是预设的。  Optionally, the foregoing process of obtaining the predicted pixel value in a preset step size may be preset by the encoding end and the decoding end, or may not be preset.
当不是编码端和解码端预设时, 例如是编码端对釆用各个步长的值的处 理结果进行比较, 确定出一种最优的步长进行处理, 因此在编码时, 编码端 需要对所述预设的步长的值进行编码, 而解码端即可从码流中解析出该标识 的步长的值。  When the encoding end and the decoding end are not preset, for example, the encoding end compares the processing results of the values of the respective step sizes, and determines an optimal step size for processing. Therefore, when encoding, the encoding end needs to be The value of the preset step size is encoded, and the decoding end can parse the value of the step size of the identifier from the code stream.
S504: 根据预测数据的预测像素值计算预测数据的第一均值。  S504: Calculate a first mean value of the prediction data according to the predicted pixel value of the prediction data.
由于预测数据的预测像素值的个数小于预测数据的像素点的个数, 因此, 步骤 504的计算量减小, 可以提高解码效率。 S505: 获得当前图像块的残差。 Since the number of predicted pixel values of the prediction data is smaller than the number of pixels of the prediction data, the amount of calculation of step 504 is reduced, and the decoding efficiency can be improved. S505: Obtain a residual of the current image block.
具体地, 本步骤可以釆用以下几种实现方式, 每种实现方式与编码端的 实现方式相对应:  Specifically, the following implementation manners may be used in this step, and each implementation manner corresponds to the implementation manner of the encoding end:
第一种实现方式: 釆用与编码端相同的量化方式对残差进行反量化处理, 将反量化处理后的结果作为所需釆用的残差。  The first implementation manner: 反 The inverse quantization process is performed on the residual by the same quantization method as the coding end, and the result of the inverse quantization process is used as the residual used.
第二种实现方式: 当编码端釆用直接对残差进行编码, 则解码端对残差 进行解码处理, 将解码处理结果作为所需使用的残差, 以避免量化带来的压 缩损失。  The second implementation manner: When the encoding end directly encodes the residual, the decoding end decodes the residual, and uses the decoding processing result as the residual used to avoid the compression loss caused by the quantization.
第三种实现方式: 当编码端将残差映射成残差映射值, 对残差映射值进 行编码处理, 表示残差映射值的比特位小于表示该残差的比特位, 从而可以 进一步提高编码效率。 则解码端对编码结果也可以釆用对应的方式进行反映 射。  The third implementation manner is: when the coding end maps the residual to the residual mapping value, the residual mapping value is encoded, and the bit indicating the residual mapping value is smaller than the bit representing the residual, thereby further improving the coding. effectiveness. Then, the decoding end can also reflect the coding result in a corresponding manner.
S506: 将当前图像块的预测数据的第一均值与当前图像块的残差相加, 获得当前图像块的像素点的像素值。  S506: Add a first mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block.
本步骤即为釆用上述 S403的方式一的实现过程, 可以理解的是, 若编码 端釆用的是方式二对应的编码过程, 则本步骤也可釆用上述 S403的方式二实 现。  This step is an implementation process of the first method of the foregoing S403. It can be understood that if the encoding end uses the encoding process corresponding to the second mode, the step can also be implemented by the second method of the above S403.
S507: 其他处理。  S507: Other processing.
其它处理例如, 与编码端对应的, 解码端对编码结果进行解码处理, 获 得残差矩阵, 对残差矩阵与参考图像块的像素点逐点求和得到和值矩阵, 根 据和值矩阵恢复当前图像块, 或者, 当编码端釆用 Wedgelet的方法, 对当前图 像块中的每个像素点与一个恒定值求差得到的残差矩阵进行编码处理, 获得 编码结果时, 解码端对编码结果进行解码处理, 得到残差矩阵, 对残差矩阵 的每个像素值与一个恒定值求和, 得到和值矩阵, 根据和值矩阵恢复当前图 像块, 本实施例对此不再详细赘述。  For other processing, for example, corresponding to the encoding end, the decoding end decodes the encoding result to obtain a residual matrix, and sums the pixel points of the residual matrix and the reference image block point by point to obtain a sum value matrix, and restores the current matrix according to the sum value matrix. The image block, or, when the encoding end uses the Wedgelet method, encodes a residual matrix obtained by subtracting each pixel point in the current image block from a constant value, and obtains a coding result, and the decoding end performs the coding result. The decoding process is performed to obtain a residual matrix, and each pixel value of the residual matrix is summed with a constant value to obtain a sum matrix. The current image block is restored according to the sum value matrix, which is not described in detail in this embodiment.
本实施例中, 通过获得深度图像当前图像块对应的预测数据, 根据预设 的步长在预测数据中获得预测像素值, 根据预测数据的预测像素值计算预测 数据的第一均值, 获得当前图像块的残差, 将当前图像块的预测数据的第一 均值与当前图像块的残差相加, 获得当前图像块的像素点的像素值, 可以减 少当前图像块的预测数据的参考像素点的个数, 从而, 在计算获取当前图像 块的预测数据的第一均值时, 计算量明显降低, 从而可以提高解码效率。 值得说明的是, 本发明实施例的技术方案还可应用于其他需要通过对均 值进行编解码的帧内预测方法中。 例如, 编码端通过对当前图像块的均值与 一恒定的值进行作差, 对残差进行编码, 获取编码结果, 解码端通过对编码 结果进行解码处理, 获得残差, 对残差与一恒定的值求和, 将和值作为当前 图像块的每个像素点的像素值, 恢复当前图像块, 在编码端对当前图像块求 均值时也可为对当前图像块按照预设步长获取预测像素值, 对当前图像块的 预测像素值求均值, 对均值与一恒定值作差获得残差, 对残差进行编码, 获 得编码结果, 对应地, 解码端亦可釆用类似的方法进行解码处理, 从而能够 提高编解码效率。 In this embodiment, by obtaining the prediction data corresponding to the current image block of the depth image, obtaining the predicted pixel value in the prediction data according to the preset step size, calculating the first mean value of the prediction data according to the predicted pixel value of the prediction data, and obtaining the current image. The residual of the block, adding the first mean value of the prediction data of the current image block to the residual of the current image block, obtaining the pixel value of the pixel point of the current image block, and reducing the reference pixel point of the prediction data of the current image block. Number, thus, the current image is obtained in the calculation When the first mean value of the block prediction data is calculated, the amount of calculation is significantly reduced, so that the decoding efficiency can be improved. It should be noted that the technical solution of the embodiment of the present invention is also applicable to other intra prediction methods that need to encode and decode the mean. For example, the coding end encodes the residual by performing a difference between the mean value of the current image block and a constant value, and obtains the coding result, and the decoding end performs decoding processing on the coding result to obtain a residual, and the residual and the constant are constant. The sum of the values is used as the pixel value of each pixel of the current image block, and the current image block is restored. When the current image block is averaged at the encoding end, the current image block may be predicted according to the preset step size. The pixel value is averaged for the predicted pixel value of the current image block, and the residual value is compared with a constant value to obtain a residual, and the residual is encoded to obtain a coding result. Correspondingly, the decoding end may also use a similar method for decoding. Processing, thereby improving the codec efficiency.
图 6为本发明深度图像的编码装置实施例一的结构示意图, 如图 6所示, 本实施例的装置包括第一处理模块 61、 第二处理模块 62和编码模块 63, 其中, 第一处理模块 61用于获得深度图像当前图像块对应的预测数据, 根据预设的 步长在预测数据中获得预测像素值, 根据预测像素值计算预测数据的第一均 值, 预设的步长为不是 1的正整数; 第二处理模块 62用于根据预测数据的第一 均值和当前图像块的像素点的像素值得到残差; 编码模块 63用于对当前图像 块的残差进行编码。  FIG. 6 is a schematic structural diagram of Embodiment 1 of a depth image encoding apparatus according to the present invention. As shown in FIG. 6, the apparatus in this embodiment includes a first processing module 61, a second processing module 62, and an encoding module 63, where the first processing The module 61 is configured to obtain prediction data corresponding to the current image block of the depth image, obtain a predicted pixel value in the prediction data according to the preset step size, and calculate a first mean value of the prediction data according to the predicted pixel value, where the preset step size is not 1 The second processing module 62 is configured to obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block; the encoding module 63 is configured to encode the residual of the current image block.
本实施例的编码装置, 可用于执行图 1所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。  The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1. The principle and technical effects are similar, and details are not described herein again.
在上述实施例中, 第二处理模块 62具体用于将当前图像块的像素点与当 前图像块的预测数据的第一均值做差, 得到当前图像块的残差; 或者, 获得 深度图像当前图像块的数据, 根据预设的步长在当前图像块的数据中获得预 测像素值, 根据当前图像块的数据的预测像素值计算当前图像块的数据的第 二均值, 将当前图像块的数据的第二均值与当前图像块的预测数据的第一均 值做差, 得到当前图像块的残差。  In the above embodiment, the second processing module 62 is specifically configured to compare the pixel of the current image block with the first average of the prediction data of the current image block to obtain a residual of the current image block; or obtain a current image of the depth image. Block data, obtaining predicted pixel values in data of the current image block according to a preset step size, calculating a second mean value of data of the current image block according to predicted pixel values of data of the current image block, and data of the current image block The second mean is different from the first mean of the prediction data of the current image block to obtain a residual of the current image block.
在上述实施例中, 第一处理模块 61具体用于根据当前图像块的尺寸进行 水平方向和垂直方向的等步长获得预测像素值; 或者, 根据当前图像块的尺 寸进行水平方向和垂直方向的非等步长获得预测像素值。  In the above embodiment, the first processing module 61 is specifically configured to obtain the predicted pixel values according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or, perform horizontal and vertical directions according to the size of the current image block. The non-equal step size obtains the predicted pixel value.
在上述实施例中, 编码模块 63还用于对所述预设的步长的值进行编码。 在上述实施例中, 预设的步长用于标识预测数据位置坐标之间的间隔。 在上述实施例中, 编码模块 63具体用于将残差映射成残差映射值, 表示 残差映射值的比特位小于表示残差的比特位, 对残差映射值进行编码。 In the above embodiment, the encoding module 63 is further configured to encode the value of the preset step size. In the above embodiment, the preset step size is used to identify the interval between the predicted data position coordinates. In the foregoing embodiment, the encoding module 63 is specifically configured to map the residual into a residual mapping value, and the bit representing the residual mapping value is smaller than the bit representing the residual, and the residual mapping value is encoded.
在上述实施例中, 第一处理模块 61还用于根据当前图像块的帧内预测模 式确定帧内预测模式是否属于预设的帧内预测模式集合, 若属于, 则确定根 据预设的步长在预测数据中获得预测像素值。  In the foregoing embodiment, the first processing module 61 is further configured to determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if yes, determine according to the preset step size. The predicted pixel value is obtained in the prediction data.
在上述实施例中, 帧内预测模式集合包括下述至少一种帧内预测模式: 直流 DC模式; 平面 Planar模式; 显式标识的楔波 Wedgelet模式; 基于帧内预测 模式的楔波 Wedgelet模式。  In the above embodiment, the intra prediction mode set includes at least one of the following intra prediction modes: DC DC mode; Planar Planar mode; explicitly identified Wedgelet mode; Wedgelet mode based on intra prediction mode.
本实施例的编码装置, 可用于执行图 3所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。  The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 3, and the principle and the technical effect are similar, and details are not described herein again.
图 7为本发明深度图像的解码装置实施例一的结构示意图, 如图 7所示, 本实施例的装置包括: 处理模块 71和解码模块 72, 其中, 处理模块 71用于获 得深度图像当前图像块对应的预测数据, 根据预设的步长在预测数据中获得 预测像素值, 根据预测像素值计算预测数据的第一均值, 预设的步长为不是 1 的正整数; 解码模块 72用于获得当前图像块的残差, 根据预测数据的第一均 值和当前图像块的残差获得当前图像块的像素点的像素值。  FIG. 7 is a schematic structural diagram of Embodiment 1 of a decoding apparatus for a depth image according to the present invention. As shown in FIG. 7, the apparatus of this embodiment includes: a processing module 71 and a decoding module 72, where the processing module 71 is configured to obtain a current image of a depth image. The prediction data corresponding to the block obtains a predicted pixel value in the prediction data according to a preset step size, and calculates a first mean value of the prediction data according to the predicted pixel value, where the preset step size is a positive integer that is not 1; the decoding module 72 is configured to: Obtaining a residual of the current image block, and obtaining a pixel value of a pixel point of the current image block according to the first mean value of the prediction data and the residual of the current image block.
本实施例的编码装置, 可用于执行图 4所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。  The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 4, and the principle and the technical effect are similar, and details are not described herein again.
在上述实施例中, 解码模块 72具体用于将当前图像块的预测数据的第一 均值与当前图像块的残差相加, 获得当前图像块的像素点的像素值; 或者, 将当前图像块的预测数据的第一均值与残差相加, 获得当前图像块的像素均 值, 将当前图像块的像素均值作为当前图像块的像素点的像素值。  In the above embodiment, the decoding module 72 is specifically configured to add the first mean value of the prediction data of the current image block to the residual of the current image block to obtain the pixel value of the pixel point of the current image block; or, the current image block The first mean value of the predicted data is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel of the current image block.
在上述实施例中, 处理模块 71具体用于根据当前图像块的尺寸进行水平 方向和垂直方向的等步长获得预测像素值; 或者, 根据当前图像块的尺寸进 行水平方向和垂直方向的非等步长获得预测像素值。  In the above embodiment, the processing module 71 is specifically configured to obtain the predicted pixel value according to the equal size of the horizontal direction and the vertical direction according to the size of the current image block; or, perform the horizontal and vertical unequal according to the size of the current image block. The step size gets the predicted pixel value.
在上述实施例中, 解码模块 72还用于解析码流获得标识步长的值。  In the above embodiment, the decoding module 72 is further configured to parse the code stream to obtain a value of the identification step size.
在上述实施例中, 预设的步长用于标识预测数据位置坐标之间的间隔。 在上述实施例中, 解码模块 72具体用于对当前图像块的编码结果进行解 码处理, 得到当前图像块的残差映射值, 将残差映射值映射成残差, 将残差 作为当前图像块的残差, 表示残差映射值的比特位小于表示残差的比特位。 在上述实施例中, 处理模块 71还用于根据当前图像块的帧内预测模式确 定帧内预测模式是否属于预设的帧内预测模式集合, 若属于, 则确定根据预 设的步长在预测数据中获得预测像素值。 In the above embodiment, the preset step size is used to identify the interval between the predicted data position coordinates. In the foregoing embodiment, the decoding module 72 is specifically configured to perform decoding processing on the encoding result of the current image block, obtain a residual mapping value of the current image block, map the residual mapping value into a residual, and use the residual as the current image block. The residual of the residual map value is smaller than the bit representing the residual. In the above embodiment, the processing module 71 is further configured to determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if yes, determine that the prediction is based on the preset step size. The predicted pixel value is obtained in the data.
在上述实施例中, 帧内预测模式集合包括下述至少一种帧内预测模式: 直流 DC模式; 平面 Planar模式; 显式标识的楔波 Wedgelet模式; 基于帧内预测 模式的楔波 Wedgelet模式。  In the above embodiment, the intra prediction mode set includes at least one of the following intra prediction modes: DC DC mode; Planar Planar mode; explicitly identified Wedgelet mode; Wedgelet mode based on intra prediction mode.
本实施例的编码装置, 可用于执行图 5所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。  The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 5. The principle and technical effects are similar, and details are not described herein again.
图 8为本发明深度图像的编码方法实施例三的流程示意图, 如图 7所示, 本实施例的方法包括:  FIG. 8 is a schematic flowchart of Embodiment 3 of a method for encoding a depth image according to the present invention. As shown in FIG. 7, the method in this embodiment includes:
S801 : 获得深度图像当前图像块对应的预测数据。  S801: Obtain prediction data corresponding to the current image block of the depth image.
具体地, 可根据当前图像块的预测模式获得对应的预测数据。  Specifically, corresponding prediction data may be obtained according to a prediction mode of the current image block.
S802: 对预测数据中的像素点中每 N个像素点进行算术操作, 获得相应像 素值的算术值。  S802: Perform an arithmetic operation on every N pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value.
作为一种可行的实现方式,对预测数据中的像素点中每 N个像素点进行平 均操作, 获得平均像素值, 将平均像素值作为相应像素的算术值。  As a feasible implementation, an average operation is performed for every N pixels in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel.
也可以通过对预测数据中的像素点中每 N个像素点进行其他的像素操作, 获得相应像素值的算术值, 本发明对此不作限制。  The arithmetic value of the corresponding pixel value can also be obtained by performing other pixel operations on every N pixel points in the pixel in the prediction data, which is not limited in the present invention.
相应地, 解码端釆用与编码端相同的算术操作获得相应像素值的算术值。 S803: 根据相应像素值的算术值计算预测数据的第一均值。  Accordingly, the decoding terminal obtains the arithmetic value of the corresponding pixel value by the same arithmetic operation as the encoding end. S803: Calculate a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value.
S804: 根据预测数据的第一均值和图像块的像素点的像素值得到残差; 可选地, 作为一种可行的实现方式, 将图像块的像素点与当前图像块的 预测数据的第一均值做差, 得到当前图像块的残差。  S804: Obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel of the image block; optionally, as a feasible implementation manner, the pixel point of the image block is the first of the prediction data of the current image block. The mean is poor and the residual of the current image block is obtained.
作为另一种可行的实现方式, 获得深度图像当前图像块的数据, 根据预 设的步长在当前图像块的数据中获得预测像素值, 根据预测像素值计算预测 数据的第二均值, 将图像块的第二均值与当前图像块的参考图像块的第一均 值做差, 得到当前图像块的残差。  As another feasible implementation manner, the data of the current image block of the depth image is obtained, the predicted pixel value is obtained in the data of the current image block according to the preset step size, and the second mean value of the predicted data is calculated according to the predicted pixel value, and the image is obtained. The second mean of the block is compared to the first mean of the reference image block of the current image block to obtain the residual of the current image block.
S805: 对当前图像块的残差进行编码。  S805: Encode the residual of the current image block.
本实施例中, 通过获得深度图像当前图像块对应的预测数据, 对预测数 据中的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根据 相应像素值的算术值计算预测数据的第一均值; 根据预测数据的第一均值和 图像块的像素点的像素值得到残差; 对当前图像块的残差进行编码。 由于对 预测数据中的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术 值, 获得较好的像素值, 提高了编解码效率。 In this embodiment, by obtaining the prediction data corresponding to the current image block of the depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, and obtaining an arithmetic value of the corresponding pixel value, according to An arithmetic value of the corresponding pixel value calculates a first mean value of the prediction data; a residual is obtained according to a first mean value of the prediction data and a pixel value of a pixel point of the image block; and a residual of the current image block is encoded. Since arithmetic operations are performed on every N pixel points in the pixel in the prediction data, the arithmetic value of the corresponding pixel value is obtained, and a better pixel value is obtained, thereby improving the encoding and decoding efficiency.
图 9为本发明深度图像的解码方法实施例三的流程示意图, 如图 8所示, 本实施例的方法包括:  FIG. 9 is a schematic flowchart of Embodiment 3 of a method for decoding a depth image according to the present invention. As shown in FIG. 8, the method in this embodiment includes:
S901 : 获得深度图像当前图像块对应的预测数据。  S901: Obtain prediction data corresponding to the current image block of the depth image.
具体地, 可根据当前图像块的预测模式获得对应的预测数据。  Specifically, corresponding prediction data may be obtained according to a prediction mode of the current image block.
S902: 对预测数据中的像素点中每 N个像素点进行算术操作, 获得相应像 素值的算术值。  S902: Perform an arithmetic operation on every N pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value.
作为一种可行的实现方式,对预测数据中的像素点中每 N个像素点进行平 均操作, 获得平均像素值, 将平均像素值作为相应像素的算术值。  As a feasible implementation, an average operation is performed for every N pixels in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel.
也可以通过对预测数据中的像素点中每 N个像素点进行其他的像素操作, 获得相应像素值的算术值, 本发明对此不作限制。  The arithmetic value of the corresponding pixel value can also be obtained by performing other pixel operations on every N pixel points in the pixel in the prediction data, which is not limited in the present invention.
解码端釆用的算术操作获得相应像素值的算术值与编码端相同。  The arithmetic operation used by the decoding end obtains the arithmetic value of the corresponding pixel value as the encoding end.
S903: 根据相应像素值的算术值计算预测数据的第一均值。  S903: Calculate a first mean value of the prediction data according to an arithmetic value of the corresponding pixel value.
S904: 获得当前图像块的残差;  S904: Obtain a residual of the current image block;
S905: 根据预测数据的均值和当前图像块的残差获得当前图像块的像素 点的像素值。  S905: Obtain a pixel value of a pixel of the current image block according to the mean value of the prediction data and the residual of the current image block.
可选地, 作为一种可行的实现方式, 将当前图像块的预测数据的均值与 当前图像块的残差相加, 获得当前图像块的像素点的像素值。  Optionally, as a feasible implementation manner, the mean value of the prediction data of the current image block is added to the residual of the current image block to obtain a pixel value of a pixel point of the current image block.
作为另一种可行的实现方式, 将当前图像块的预测数据的均值与残差相 加, 获得当前图像块的像素均值, 将当前图像块的像素均值作为当前图像块 的像素点的像素值。  As another feasible implementation manner, the mean value of the prediction data of the current image block is added to the residual, and the pixel mean of the current image block is obtained, and the pixel average of the current image block is taken as the pixel value of the pixel of the current image block.
本实施例中, 通过获得深度图像当前图像块对应的预测数据, 对预测数 据中的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根据 相应像素值的算术值计算预测数据的第一均值; 获得当前图像块的残差; 根 据预测数据的均值和当前图像块的残差获得当前图像块的像素点的像素值。 对当前图像块的残差进行编码。由于对预测数据中的像素点中每 N个像素点进 行算术操作, 获得相应像素值的算术值, 提高了编解码效率。 图 10为本发明深度图像的编码装置实施例二的结构示意图, 其特征在如 图 10所示, 本实施例的装置包括: 第一处理模块 1001、 第二处理模块 1002和 编码模块 1003, 其中, 第一处理模块 1001用于获得深度图像当前图像块对应 的预测数据, 对预测数据中的像素点中每 N个像素点进行算术操作, 获得相应 像素值的算术值, 根据相应像素值的算术值计算预测数据的第一均值; 第二 处理模块 1002用于根据预测数据的第一均值和当前图像块的像素点的像素值 得到残差; 编码模块 1003用于对当前图像块的残差进行编码。 In this embodiment, by obtaining the prediction data corresponding to the current image block of the depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, obtaining an arithmetic value of the corresponding pixel value, and calculating according to the arithmetic value of the corresponding pixel value. Predicting a first mean value of the data; obtaining a residual of the current image block; obtaining a pixel value of a pixel of the current image block according to the mean of the predicted data and the residual of the current image block. The residual of the current image block is encoded. Since arithmetic operations are performed on every N pixel points in the pixels in the prediction data, the arithmetic value of the corresponding pixel value is obtained, and the codec efficiency is improved. FIG. 10 is a schematic structural diagram of a second embodiment of an apparatus for encoding a depth image according to a second embodiment of the present invention. The apparatus of the present embodiment includes: a first processing module 1001, a second processing module 1002, and an encoding module 1003. The first processing module 1001 is configured to obtain prediction data corresponding to the current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, obtain an arithmetic value of the corresponding pixel value, and perform arithmetic according to the corresponding pixel value. The value calculates a first mean value of the prediction data; the second processing module 1002 is configured to obtain a residual according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block; the encoding module 1003 is configured to perform the residual of the current image block. coding.
在上述实施例中, 第一处理模块 1001具体用于对预测数据中的像素点中 每 N个像素点进行平均操作, 获得平均像素值, 将平均像素值作为相应像素的 算术值。  In the above embodiment, the first processing module 1001 is specifically configured to perform an averaging operation on every N pixels in the pixel in the prediction data to obtain an average pixel value, and use the average pixel value as an arithmetic value of the corresponding pixel.
在上述实施例中, 第二处理模块 1002具体用于将图像块的像素点与当前 图像块的预测数据的第一均值做差, 得到当前图像块的残差; 或, 获得深度 图像当前图像块的数据, 根据预设的步长在当前图像块的数据中获得预测像 素值, 根据预测像素值计算预测数据的第二均值, 将图像块的第二均值与当 前图像块的参考图像块的第一均值做差, 得到当前图像块的残差。  In the above embodiment, the second processing module 1002 is specifically configured to compare the pixel of the image block with the first average of the prediction data of the current image block to obtain a residual of the current image block; or, obtain a current image block of the depth image. Data, obtaining a predicted pixel value in the data of the current image block according to a preset step size, calculating a second mean value of the predicted data according to the predicted pixel value, and comparing the second mean value of the image block with the reference image block of the current image block A mean value is made to get the residual of the current image block.
本实施例的编码装置, 可用于执行图 8所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。  The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 8. The principle and technical effects are similar, and details are not described herein again.
图 11为本发明深度图像的解码装置实施例二的结构示意图, 本实施例的 装置包括处理模块 1101, 解码模块 1102, 其中, 处理模块 1101用于获得深度 图像当前图像块对应的预测数据,对预测数据中的像素点中每 N个像素点进行 算术操作, 获得相应像素值的算术值, 根据相应像素值的算术值计算预测数 据的第一均值; 解码模块 1102用于获得当前图像块的残差, 根据预测数据的 均值和当前图像块的残差获得当前图像块的像素点的像素值。  11 is a schematic structural diagram of Embodiment 2 of a decoding apparatus for a depth image according to the present invention. The apparatus of this embodiment includes a processing module 1101, and a decoding module 1102, where the processing module 1101 is configured to obtain prediction data corresponding to a current image block of a depth image. An arithmetic operation is performed every N pixels in the pixel in the prediction data, an arithmetic value of the corresponding pixel value is obtained, and a first mean value of the prediction data is calculated according to an arithmetic value of the corresponding pixel value; and the decoding module 1102 is configured to obtain the residual of the current image block. Poor, the pixel value of the pixel of the current image block is obtained according to the mean of the prediction data and the residual of the current image block.
在上述实施例中, 处理模块 1101具体用于对当前图像块和预测数据中的 像素点中每 N个像素点进行平均操作, 获得平均像素值, 将平均像素值作为相 应像素值的算术值。  In the above embodiment, the processing module 1101 is specifically configured to perform an averaging operation on every N pixel points in the current image block and the prediction data to obtain an average pixel value, and use the average pixel value as an arithmetic value of the corresponding pixel value.
在上述实施例中, 解码模块 1102具体用于将当前图像块的预测数据的均 值与当前图像块的残差相加, 获得当前图像块的像素点的像素值; 或, 将当 前图像块的预测数据的均值与残差相加, 获得当前图像块的像素均值, 将当 前图像块的像素均值作为当前图像块的像素点的像素值。 本实施例的编码装置, 可用于执行图 9所示方法实施例的技术方案, 其实 现原理和技术效果类似, 此处不再赘述。 在上述各实施例中, 各均值可表示成预测数据中像素点的像素值的和值 与该预测数据中像素点的个数值的除值, 设预测数据中像素点的像素值的和 为 sum, 该预测数据中像素点的个数值的除值为 numOfPixel, 则该均值表示为 sum I numOfPixelo In the above embodiment, the decoding module 1102 is specifically configured to add the average value of the prediction data of the current image block to the residual of the current image block to obtain the pixel value of the pixel of the current image block; or, predict the current image block. The mean value of the data is added to the residual, and the pixel mean of the current image block is obtained, and the pixel mean of the current image block is taken as the pixel value of the pixel of the current image block. The coding device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 9. The implementation principle and technical effects are similar, and details are not described herein again. In each of the above embodiments, each of the average values may be represented as a divisor of a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data, and the sum of the pixel values of the pixel points in the prediction data is sum. , the division value of the pixel value in the prediction data is numOfPixel, then the mean value is expressed as sum I numOfPixelo
此外, 求取均值的方法还可按以下步骤求取:  In addition, the method of obtaining the mean can be obtained by the following steps:
获取该预测数据中像素点的像素值的和值与该预测数据中像素点的个数 值;  Obtaining a sum value of pixel values of pixel points in the prediction data and a number of pixel points in the prediction data;
判断该预测数据中像素点的个数值是否为 0;  Determining whether the value of the pixel in the predicted data is 0;
若该预测数据中像素点的个数值不为 0, 则将第九数值与该预测数据中像 素点的个数值进行除法操作, 获取映射值;  If the value of the pixel in the prediction data is not 0, the ninth value is divided with the value of the pixel point in the prediction data to obtain the mapping value;
将该映射值与该预测数据中像素点的像素值的和值相乘, 获得第一数值; 将该第一数值进行移位操作, 获得第二数值;  And multiplying the mapping value by a sum of pixel values of pixel points in the prediction data to obtain a first value; performing a shift operation on the first value to obtain a second value;
若该预测数据中像素点的个数值为 0, 则将一预设常数作为第二数值; 将该第二数值作为均值。 才艮据上述方法, 该第九数值为一固定值或者该固定值加偏移量 R, 该固定 值为 2 该偏移量为预测数据中像素点个数值的一半, 或者该偏移量为预测 数据中像素点个数值右移一位。 其中, N可取值 14或其他正整数。 根据上述方法,  If the value of the pixel in the prediction data is 0, a preset constant is taken as the second value; the second value is taken as the mean value. According to the above method, the ninth value is a fixed value or the fixed value plus an offset R, the fixed value is 2, the offset is half of the value of the pixel point in the prediction data, or the offset is The value of the pixel point in the prediction data is shifted to the right by one. Where N can take a value of 14 or other positive integer. According to the above method,
该将第九数值与该预测数据中像素点的个数值进行除法操作, 获取映射 值包括:  The dividing the ninth value and the value of the pixel in the prediction data, and obtaining the mapping value includes:
将 2 或者 ιΝ加 R除以该预测数据中像素点的个数值, 得到该映射值; 该对该第一数值进行移位操作, 获得第二数值包括: Dividing 2 or ι Ν by R by the value of the pixel in the prediction data to obtain the mapping value; performing a shift operation on the first value to obtain the second value includes:
将该第一数值右移 N位, 获得第二数值。 根据上述方法, 该将第九数值与该预测数据中像素点的个数值进行除法 操作, 获取映射值包括: The first value is shifted to the right by N bits to obtain a second value. According to the above method, the ninth value is divided with the value of the pixel in the prediction data Operation, get the mapping value including:
将该预测数据中像素点的个数值右移 M位,得到移位后的预测数据中像素 点的个数值;  And shifting the value of the pixel in the prediction data to the right by M bits, and obtaining the value of the pixel in the shifted prediction data;
将 或者 1N加 R除以该移位后的预测数据中像素点的个数值, 得到该映 射值; Dividing 1 N plus R by the value of the pixel in the shifted prediction data to obtain the mapping value;
该对该第一数值进行移位操作, 获得第二数值包括:  The shifting operation is performed on the first value, and obtaining the second value includes:
将该第一数值右移 N加 M位, 获得第二数值。 根据上述方法, 该将第九数值与该预测数据中像素点的个数值进行除法 操作, 获取映射值之前, 还包括:  The first value is shifted right by N plus M bits to obtain a second value. According to the above method, the ninth value is divided with the value of the pixel in the prediction data, and before the mapping value is obtained, the method further includes:
判断该预测数据中像素点的个数值是否大于预设值;  Determining whether the value of the pixel in the predicted data is greater than a preset value;
若大于, 该将第九数值与该预测数据中像素点的个数值进行除法操作, 获取映射值包括:  If it is greater than, the ninth value is divided by the value of the pixel in the prediction data, and the obtained mapping value includes:
将该预测数据中像素点的个数值右移 M位,得到移位后的预测数据中像素 点的个数值;  And shifting the value of the pixel in the prediction data to the right by M bits, and obtaining the value of the pixel in the shifted prediction data;
将 或者 N加 R除以该移位后的预测数据中像素点的个数值, 得到该映 射值; Dividing N or R by the value of the pixel in the shifted prediction data to obtain the mapping value;
该对该第一数值进行移位操作, 获得第二数值包括:  The shifting operation is performed on the first value, and obtaining the second value includes:
将该第一数值右移 N加 M位, 获得第二数值。 其中 M的值可为 3或其他正 整数。  The first value is shifted right by N plus M bits to obtain a second value. Where M can have a value of 3 or other positive integer.
若小于, 该将第九数值与该预测数据中像素点的个数值进行除法操作, 获取映射值包括:  If it is smaller, the ninth value is divided with the value of the pixel in the prediction data, and the obtained mapping value includes:
将 2 或者 ιΝ加 R除以该预测数据中像素点的个数值, 得到该映射值; 该对该第一数值进行移位操作, 获得第二数值包括: Dividing 2 or ι Ν by R by the value of the pixel in the prediction data to obtain the mapping value; performing a shift operation on the first value to obtain the second value includes:
将该第一数值右移 N位, 获得第二数值。 具体的实施例的方法包括:  The first value is shifted to the right by N bits to obtain a second value. The method of a specific embodiment includes:
SS101 : 获取深度图像当前图像块的预测数据。  SS101: Acquire prediction data of the current image block of the depth image.
深度图像当前图像块的预测数据与所釆用的编码模式有关, 例如, 预测 数据为釆用帧内预测模式获得的对应的预测数据, 预测数据的尺寸与当前图 像块的尺寸相同。 The prediction data of the current image block of the depth image is related to the coding mode used. For example, the prediction data is the corresponding prediction data obtained by using the intra prediction mode, and the size and current picture of the prediction data. The size of the block is the same.
当前图像块可以为当前帧内预测块, 此外, 由于帧内预测中预测块与变 换块是绑定的, 帧内预测也通常以变换块为单位进行帧内预测; 此时, 图像 块为变换块。  The current image block may be the current intra prediction block. In addition, since the prediction block and the transform block are bound in the intra prediction, the intra prediction is also usually performed in units of transform blocks; at this time, the image block is a transform. Piece.
SS102: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  SS102: Obtain a sum value of pixel values of pixel points in the prediction data and a value of the pixel point in the prediction data.
SS103 : 判断该预测数据中像素点的个数值是否为 0, 若否, 执行 SS104-SS106 , 若是执行 SS107。  SS103: Determine whether the value of the pixel in the prediction data is 0. If not, execute SS104-SS106, if SS107 is executed.
SS104: 将第九数值与该预测数据中像素点的个数值进行除法操作, 获取 映射值;  SS104: dividing a ninth value and a value of a pixel in the prediction data to obtain a mapping value;
其中, 第九数值为固定值或者固定值加偏移量 R, R为预测数据中像素点 个数的一半,映射值为预测数据中像素点的个数值的倒数的 2 倍,并且上述 大于预测数据中像素点的个数值, N取整数。  Wherein, the ninth value is a fixed value or a fixed value plus an offset R, R is half of the number of pixels in the prediction data, and the mapping value is twice the reciprocal of the value of the pixel in the prediction data, and the above is greater than the prediction The value of a pixel in the data, N is an integer.
SS105: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值。  SS105: Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain the first value.
SS106: 对第一数值进行移位操作, 获得第二数值;  SS106: performing a shift operation on the first value to obtain a second value;
由于映射值为预测数据中像素点的个数值的倒数的 2^倍, 将其与预测数 据中像素点的个数值的映射值相乘后, 获得的第一数值比直接将预测数据中 像素点的像素值的和与像素点的个数值相除的结果增大了 2 倍, 因此, 可通 过 SS106的移除操作, 获得第二数值, 使得第二数值与直接将预测数据中像素 点的像素值的和与像素点的个数值相除的结果相等。  Since the mapping value is 2^ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data, the obtained first numerical value directly compares the pixel in the prediction data. The result of dividing the sum of the pixel values by the value of the pixel is increased by a factor of 2. Therefore, the second value can be obtained by the removal operation of the SS 106, so that the second value is directly compared with the pixel of the pixel in the predicted data. The sum of the values is equal to the result of dividing the values of the pixels.
SS107: 将一预设常数作为第二数值。  SS107: A preset constant is used as the second value.
即当预测数据中没有像素点时, 将一预设常数作为第二数值, 该预设常 数一般为 0或 128左移 bit-8位, 其中, bit表示图像中像素的位宽。  That is, when there is no pixel in the prediction data, a preset constant is used as the second value, and the preset constant is generally 0 or 128 left shift bit-8, where bit represents the bit width of the pixel in the image.
SS108: 将第二数值作为均值。 在上述 SS108中, 若涉及到的编码方式中也与对当前图像块求均值也可釆 用与预测图像块获取第二数值类似的方式获得, 本发明对此过程不再赘述。  SS108: The second value is taken as the mean. In the above SS108, if the encoding method involved is also obtained by averaging the current image block, it can be obtained in a similar manner to the second image value obtained by the prediction image block, and the present invention will not be described in detail.
本实施例中, 通过将第九数值与该预测数据中像素点的个数值进行除法 操作, 获取映射值, 将映射值与预测数据中像素点的像素值的和值相乘, 得 到第一数值, 再对第一数值进行移位操作, 获得第二数值, 将第二数值与当 前图像块的像素点的像素值得到当前图像块的残差, 对当前图像块的残差进 行编码, 编码过程中的实现的复杂度仅与预测数据中像素点的个数值的取值 范围有关, 因此, 在一定程度上降低了实现的复杂度。 In this embodiment, by dividing the ninth value and the value of the pixel in the prediction data, the mapping value is obtained, and the mapping value is multiplied by the sum of the pixel values of the pixel points in the prediction data to obtain the first value. And then shifting the first value to obtain the second value, and the second value The pixel value of the pixel of the front image block obtains the residual of the current image block, and encodes the residual of the current image block, and the complexity of the implementation in the encoding process is only related to the value range of the pixel value in the prediction data. Therefore, the complexity of the implementation is reduced to some extent.
图 2为本发明深度图像的编码方法实施例二的流程示意图, 本实施例的执 行主体是编码装置, 本实施例是在预测数据中像素点的个数值不为 0的情况下 的具体实现方式, 本实施例的方法包括:  2 is a schematic flowchart of a second embodiment of a method for encoding a depth image according to the present invention. The execution body of the embodiment is an encoding device. This embodiment is a specific implementation manner in the case where the value of the pixel in the prediction data is not zero. The method of this embodiment includes:
SS201 : 获取深度图像当前图像块的预测数据。  SS201: Acquire prediction data of the current image block of the depth image.
此步骤与 SS101类似, 在此不再赘述。  This step is similar to SS101 and will not be described here.
SS202: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  SS202: Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
SS203 : 将 2^除以预测数据中像素点的个数值, 得到映射值。  SS203: Divide 2^ by the value of the pixel in the prediction data to obtain the mapped value.
其中,映射值为预测数据中像素点的个数值的倒数的 2 倍,并且上述 2 大 于预测数据中像素点的个数值, N取整数。  Wherein, the mapping value is twice the reciprocal of the numerical value of the pixel in the prediction data, and the above 2 is larger than the numerical value of the pixel in the prediction data, and N is an integer.
本步骤中之所以要釆用 2 除以预测数据中像素点的个数值是为了避免产 生浮点数。  The reason why this step is to divide 2 by the number of pixels in the predicted data is to avoid floating point numbers.
SS204: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值。  SS204: Multiply the mapped value by the sum of the pixel values of the pixel points in the predicted data to obtain the first value.
SS205: 将第一数值右移 N位, 获得第二数值。  SS205: Move the first value to the right by N bits to obtain the second value.
由于映射值为预测数据中像素点的个数值的倒数的 2^倍, 将其与预测数 据中像素点的个数值的映射值相乘后, 获得的第一数值比直接将预测数据中 像素点的像素值的和与像素点的个数值相除的结果增大了 2^倍, 在二进制中 将一个数值右移 N位相当于将该数值缩小了 2^倍, 将一个数值左移 N位, 相当 于将该数值增大了 倍, 因此, 可通过 SS205的将第一数值右移 N位, 获得第 二数值, 使得第二数值与直接将预测数据中像素点的像素值的和与像素点的 个数值相除的结果相等。  Since the mapping value is 2^ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data, the obtained first numerical value directly compares the pixel in the prediction data. The sum of the pixel values is divided by the value of the pixel by 2^ times. Moving a value to the right by N bits in binary is equivalent to reducing the value by 2^ times, shifting a value to the left by N bits. , equivalent to increasing the value by a factor of two. Therefore, the second value can be obtained by shifting the first value to the N position by the SS205, so that the second value is directly compared with the pixel value of the pixel point in the prediction data. The result of dividing the values of the points is equal.
SS206: 将第二数值作为均值。  SS206: The second value is taken as the mean.
对当前图像块的残差进行编码, 并将编码后的码流发送到解码端。  The residual of the current image block is encoded, and the encoded code stream is sent to the decoding end.
值得说明的是, 在上述实施例中, 针对预测数据中像素点的个数值为 0的 情况, 与图 1所示实施例中预测数据中像素点的个数值为 0的处理方式相同, 在此不再赘述。 本实施例中, 通过将 除以预测数据中像素点的个数值, 得到映射值。 将映射值与预测数据中像素点的像素值的和值相乘, 得到第一数值, 再将第 一数值右移 N位, 获得第二数值, 将第二数值与当前图像块的像素点的像素值 得到当前图像块的残差, 对当前图像块的残差进行编码, 编码过程中仅获取 映射值的过程中涉及到除法操作, 而将 2 除以预测数据中像素点的个数值, 得到映射值, 2^为一固定值, 因此, 实现的复杂度仅与预测数据中像素点的 个数值的取值范围有关, 在一定程度上降低了实现的复杂度, 减小芯片面积, 提高处理速度。 It should be noted that, in the above embodiment, the case where the value of the pixel point in the prediction data is 0 is the same as the processing method in which the value of the pixel point in the prediction data in the embodiment shown in FIG. 1 is 0. No longer. In this embodiment, the map value is obtained by dividing the value of the pixel point in the prediction data. Multiplying the mapped value by the sum of the pixel values of the pixel points in the predicted data to obtain a first value, and then shifting the first value to the right by N bits to obtain a second value, and the second value is compared with the pixel of the current image block. The pixel value obtains the residual of the current image block, and encodes the residual of the current image block. In the process of acquiring only the mapped value in the encoding process, the dividing operation is involved, and dividing 2 by the value of the pixel in the predicted data, The mapping value, 2^ is a fixed value. Therefore, the complexity of the implementation is only related to the value range of the pixel values in the prediction data, which reduces the complexity of the implementation to a certain extent, reduces the chip area, and improves the processing. speed.
在前述所示实施例的基础上, 进一步地, 在获取预测数据中的像素点的个 数值之后, 将预测数据中的像素点的个数值右移 M位, 以缩小预测数据中像素 点的个数值的取值范围, 再通过对第一数值的移位操作, 使得第二数值与直接 将预测数据中像素点的像素值的和与像素点的个数值相除的结果相等, 进一 步降低实现的复杂度, 本实施例的方法具体包括:  On the basis of the foregoing embodiments, after acquiring the values of the pixel points in the prediction data, shifting the values of the pixel points in the prediction data to the right by M bits to reduce the number of pixels in the prediction data. The value range of the value is further shifted by the first numerical value so that the second value is equal to the result of directly dividing the sum of the pixel values of the pixel points in the prediction data by the value of the pixel point, thereby further reducing the implementation. The method of the embodiment specifically includes:
SS301 : 获取深度图像当前图像块的预测数据。  SS301: Acquire prediction data of the current image block of the depth image.
此步骤与 SS101类似, 在此不再赘述。  This step is similar to SS101 and will not be described here.
SS302: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  SS302: Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
SS303 : 将预测数据中像素点的个数值右移 M位, 得到移位后的预测数据 中像素点的个数值。  SS303: The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
将预测数据中像素点的个数值右移 M位,相当于将预测数据中像素点的个 数值缩小为原来的 1/2M, 其中 M为正整数。 The value of the pixel in the prediction data is shifted to the right by M bits, which is equivalent to reducing the value of the pixel in the prediction data to the original 1/2 M , where M is a positive integer.
SS304: 将 2^除以移位后的预测数据中像素点的个数值, 得到映射值; 本步骤中之所以要釆用 2 除以预测数据中像素点的个数值是为了避免产 生浮点数。  SS304: Divide 2^ by the value of the pixel in the shifted prediction data to obtain the mapped value. The reason why this step is to divide 2 by the value of the pixel in the prediction data is to avoid floating point number.
SS305: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值。  SS305: Multiply the mapped value by the sum of the pixel values of the pixels in the predicted data to obtain the first value.
SS306: 将第一数值右移 N加 M位, 获得第二数值。  SS306: Move the first value to the right by N plus M bits to obtain the second value.
由于将预测数据中像素点的个数值先进行了右移 M位, 再用 2^除以移位 后的预测数据中像素点的个数值, 得到映射值, 将其与预测数据中像素点的 个数值的映射值相乘后, 获得的第一数值比直接将预测数据中像素点的像素 值的和与像素点的个数值相除的结果增大了 2^ 咅, 因此, 可通过 SS306的将 第一数值右移 N+M位, 获得第二数值, 使得第二数值与直接将预测数据中像 素点的像素值的和与像素点的个数值相除的结果相等。 Since the value of the pixel in the prediction data is first shifted to the right by M bits, and then 2^ is divided by the value of the pixel in the shifted prediction data to obtain a mapping value, which is compared with the pixel in the prediction data. After multiplying the mapped values of the values, the first value obtained is directly compared to the pixels of the pixels in the predicted data. The result of dividing the sum of the values by the value of the pixel is increased by 2^ 咅. Therefore, the second value can be obtained by shifting the first value to the right by N+M bits of SS306, so that the second value is directly predicted. The sum of the pixel values of the pixels in the data is equal to the result of dividing the values of the pixels.
SS308: 将第二数值作为均值。 本实施例中, 通过先将预测数据中像素点的个数值右移 M位, 得到移位 后的预测数据中像素点的个数值, 再将 1N除以移位后的预测数据中像素点的 个数值, 得到映射值, 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数值, 将第一数值右移 N加 M位, 获得第二数值, 将第二数值与当前 图像块的像素点的像素值得到当前图像块的残差, 对当前图像块的残差进行 编码, 编码过程中由于先将预测数据中像素点的个数值右移 M位, 通过 2 除 以移位后的预测数据中像素点的个数值, 得到映射值, 仅在 2 除以移位后的 预测数据中像素点的个数值, 得到映射值的过程中涉及除法操作, 而 2 为一 固定值, 因此, 实现的复杂度仅与移位后的预测数据中像素点的个数值的取 值范围有关, 进一步地降低了实现的复杂度, 减小芯片面积, 提高处理速度。 SS308: Use the second value as the mean. In this embodiment, by first shifting the values of the pixel points in the prediction data to the right by M bits, the values of the pixel points in the shifted prediction data are obtained, and then 1 N is divided by the pixel points in the shifted prediction data. a value, obtain a mapped value, multiply the mapped value by the sum of the pixel values of the pixel points in the predicted data to obtain a first value, and shift the first value to the right by N plus M bits to obtain a second value, which will be the second The value and the pixel value of the pixel of the current image block obtain the residual of the current image block, and encode the residual of the current image block. In the encoding process, the value of the pixel in the prediction data is shifted to the right by M bit, by 2 Dividing by the value of the pixel in the shifted prediction data, the mapping value is obtained, and only 2 is divided by the value of the pixel in the shifted prediction data, and the division operation is involved in the process of obtaining the mapping value, and 2 is A fixed value, therefore, the complexity of the implementation is only related to the range of values of the pixels in the shifted prediction data, further reducing the complexity of the implementation, reducing the chip area, and increasing the processing speed.
为了更进一步地降低了实现的复杂度, 本实施例的方法具体包括:  In order to further reduce the complexity of the implementation, the method in this embodiment specifically includes:
SS401 : 获取深度图像当前图像块的预测数据。  SS401: Acquire prediction data of the current image block of the depth image.
SS402: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  SS402: Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
SS403 : 判断预测数据中像素点的个数值是否大于预设值, 若是, 执行 SS404-SS407, 若否, 执行 SS408~SS410。  SS403: Determine whether the value of the pixel in the predicted data is greater than the preset value. If yes, execute SS404-SS407, if not, execute SS408~SS410.
SS404: 将预测数据中像素点的个数值右移 M位, 得到移位后的预测数据 中像素点的个数值。  SS404: The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
SS405: 将 2^除以移位后的预测数据中像素点的个数值, 得到映射值。 SS405: Divide 2^ by the value of the pixel in the shifted prediction data to obtain a mapped value.
SS406: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值; SS406: multiplying the mapped value by a sum of pixel values of pixel points in the prediction data to obtain a first value;
SS407: 将第一数值右移 N加 M位, 获得第二数值。  SS407: Move the first value to the right by N plus M bits to obtain the second value.
上述 SS404~SS407与图 3中对应的步骤类似, 在此不再赘述。  The above SS404~SS407 are similar to the corresponding steps in FIG. 3, and details are not described herein again.
SS408: 将 2^除以预测数据中像素点的个数值, 得到映射值;  SS408: Divide 2^ by the value of the pixel in the prediction data to obtain a mapped value;
SS409: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值; SS409: Multiply the mapped value by the sum of the pixel values of the pixels in the predicted data to obtain the first number Value
SS410: 将第一数值右移 N位, 获得第二数值。  SS410: Move the first value to the right by N bits to obtain the second value.
上述 SS408~SS410与图 2中对应的步骤类似, 在此不再赘述。  The foregoing SS408~SS410 are similar to the corresponding steps in FIG. 2, and are not described herein again.
SS411 : 将第二数值作为均值。  SS411 : The second value is taken as the mean value.
上述步骤中, 由于增加了判断条件, 可以在一定程度上降低实现的复杂 度, 例如, 当预设值为 2, 当预测数据的像素点的像素值为 28时, 釆用 2 除 以 28, 得到一个映射值, 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数值, 将第一数值右移 Ν位, 获得第二数值。 当预测数据的像素点的 像素值为 212时, 先将 212向右移动四位, 移位后为 28, 釆用 除以 28, 得到一 个映射值, 将映射值与预测数据中像素点的像素值的和值相乘, 获得第一数 值, 将第一数值右移 N+M位, 获得第二数值。 可见在上述过程中针对两个不 同的预测数据中像素点的个数值的除法操作与一个像素点的个数值的除法操 作的复杂度相同。 因此, 釆用本实施例的方法可更进一步地降低实现的复杂 度。 In the above steps, the complexity of the implementation may be reduced to some extent due to the addition of the judgment condition. For example, when the preset value is 2 1 ΰ , when the pixel value of the pixel of the prediction data is 2 8 , divide by 2 and divide by 2 2 8 , obtain a mapping value, multiply the mapping value by the sum of the pixel values of the pixel points in the prediction data, obtain the first value, and shift the first value to the right to obtain the second value. When the pixel value of the pixel of the prediction data is 2 12 , the 2 12 is shifted to the right by 4 bits, the shift is 2 8 , and the division is 2 8 to obtain a mapping value, and the mapping value and the prediction data are The sum of the pixel values of the pixels is multiplied to obtain a first value, and the first value is shifted right by N+M bits to obtain a second value. It can be seen that the division operation for the values of the pixel points in the two different prediction data in the above process is the same as the division operation of the values of one pixel point. Therefore, the complexity of the implementation can be further reduced by the method of the present embodiment.
值得说明的是,上述步骤 SS408~SS410是针对预测数据中像素点的个数值 小于预设值且不为 0的情况下的处理方式, 若该预测数据中像素点的个数值为 0的情况, 与前述所示实施例中预测数据中像素点的个数值为 0的处理方式相 同, 在此不再赘述。  It should be noted that the above steps SS408~SS410 are processing methods when the value of the pixel in the prediction data is less than the preset value and is not 0. If the value of the pixel in the prediction data is 0, It is the same as the processing method in which the value of the pixel in the prediction data in the foregoing embodiment is 0, and details are not described herein again.
本实施例中, 通过在获取预测数据中的像素点的个数值之后, 增加一个判 断条件, 判断预测数据中像素点的个数值是否大于预设值, 当预测数据中像素 点的个数值大于预设值时, 釆用对像素点个数值移位对应的操作, 实现的复杂 度仅与移位后的预测数据中像素点的个数值的取值范围有关,能进一步降低实 现的复杂度, 当预测数据中像素点的个数值小于预设值时, 釆用对像素点个数 值不移位对应的操作, 能够保证除法的精度; 由于增加了判断条件, 更进一步 地降低了实现的复杂度。  In this embodiment, after obtaining the value of the pixel point in the prediction data, adding a judgment condition, determining whether the value of the pixel point in the prediction data is greater than a preset value, when the value of the pixel point in the prediction data is greater than the pre-predetermined value When the value is set, the operation corresponding to the numerical shift of the pixel points is used, and the complexity of the implementation is only related to the value range of the pixel values in the shifted prediction data, which can further reduce the complexity of the implementation. When the value of the pixel in the prediction data is smaller than the preset value, the operation of not shifting the value of the pixel point is used, and the precision of the division can be ensured; the complexity of the implementation is further reduced by increasing the judgment condition.
此外, 上述各实施例中, 由于将 或 与预测数据中像素点的个数值 进行除法操作会存在一定的误差, 考虑到上述实施例中的数据均有一定的数 值范围, 例如均值范围为 0 ~ 255, 为保证上述实施例的结果仍在预设范围内, 经上述实施例获得的结果可进行截止(clip )操作, 保证数据在预设范围内。 此外, 也可按下述方法求取均值: In addition, in the above embodiments, there is a certain error due to the division operation of the values of the pixels in the prediction data. Considering that the data in the above embodiment has a certain range of values, for example, the mean range is 0 ~ 255. In order to ensure that the result of the above embodiment is still within the preset range, the result obtained by the above embodiment can be subjected to a clip operation to ensure that the data is within a preset range. In addition, the mean can be obtained as follows:
获取该预测数据中像素点的像素值的和值与该预测数据中像素点的个数 值;  Obtaining a sum value of pixel values of pixel points in the prediction data and a number of pixel points in the prediction data;
获取该预测数据中像素点的个数值的映射值;  Obtaining a mapping value of a value of a pixel in the predicted data;
将该映射值与该预测数据中像素点的像素值的和值相乘; 获得第五数值; 将该第五数值进行移位操作, 获得第八数值;  Multiplying the map value by a sum of pixel values of pixel points in the prediction data; obtaining a fifth value; performing a shift operation on the fifth value to obtain an eighth value;
将该第六数值作为均值。 根据上述方法,  This sixth value is taken as the mean value. According to the above method,
该获取该预测数据中像素点的个数值的映射值包括:  The mapping values for obtaining the values of the pixel points in the prediction data include:
根据该预测数据中像素点的个数值在查找表中获得该个数值对应的映射 值;  Obtaining a mapping value corresponding to the value in the lookup table according to the value of the pixel in the prediction data;
该对该第五数值进行移位操作, 获得第六数值包括:  The shifting operation is performed on the fifth value, and obtaining the sixth value includes:
将该第五数值右移 N位, 获得第六数值。 其中 N可为 14或其他正整数。 根据上述方法,  The fifth value is shifted right by N bits to obtain a sixth value. Where N can be 14 or other positive integer. According to the above method,
该获取该预测数据中像素点的个数值的映射值包括:  The mapping values for obtaining the values of the pixel points in the prediction data include:
将该预测数据中像素点的个数值右移 M位,得到移位后的预测数据中像素 点的个数值; 其中 M可为 3或其他正整数。  The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained; where M can be 3 or other positive integer.
根据该移位后的预测数据中像素点的个数值在查找表中获得该个数值对 应的映射值;  Obtaining a mapping value corresponding to the value in the lookup table according to the value of the pixel point in the shifted prediction data;
该对该第五数值进行移位操作, 获得第六数值包括:  The shifting operation is performed on the fifth value, and obtaining the sixth value includes:
将该第五数值右移 N加 M位, 获得第六数值。 根据上述方法, 该获取该预测数据中像素点的个数值之后, 还包括: 判断该预测数据中像素点的个数值是否大于预设值;  The fifth value is shifted right by N plus M bits to obtain a sixth value. According to the above method, after obtaining the value of the pixel in the prediction data, the method further includes: determining whether the value of the pixel in the prediction data is greater than a preset value;
若大于, 该获取该预测数据中像素点的个数值的映射值包括:  If it is greater than, the mapping value of obtaining the value of the pixel in the prediction data includes:
将该预测数据中像素点的个数值右移 M位,得到移位后的预测数据中像素 点的个数值;  And shifting the value of the pixel in the prediction data to the right by M bits, and obtaining the value of the pixel in the shifted prediction data;
根据该移位后的预测数据中像素点的个数值在查找表中获得该个数值对 应的映射值; Obtaining the pair of values in the lookup table according to the values of the pixel points in the shifted prediction data. The mapped value
该对该第五数值进行移位操作, 获得第六数值包括:  The shifting operation is performed on the fifth value, and obtaining the sixth value includes:
将该第五数值右移 N加 M位, 获得第六数值;  The fifth value is shifted right by N plus M bits to obtain a sixth value;
若小于, 该获取该预测数据中像素点的个数值的映射值包括:  If it is smaller, the mapping value of obtaining the value of the pixel in the prediction data includes:
根据该预测数据中像素点的个数值在查找表中获得该个数值对应的映射 值;  Obtaining a mapping value corresponding to the value in the lookup table according to the value of the pixel in the prediction data;
该对该第五数值进行移位操作, 获得第六数值;  Performing a shift operation on the fifth value to obtain a sixth value;
将该第五数值右移 N位, 获得第六数值。 具体的本实施例的方法包括:  The fifth value is shifted right by N bits to obtain a sixth value. The specific method of this embodiment includes:
S1001 : 获取深度图像当前图像块的预测数据。  S1001: Obtain prediction data of the current image block of the depth image.
S1002: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  S1002: Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
S1003: 根据预测数据中像素点的个数值在查找表中获得个数值对应的映 射值。  S1003: Obtain a mapping value corresponding to a value in the lookup table according to the value of the pixel in the prediction data.
查找表中包含两组数据, 分别为预测数据中像素点的个数值与预测数据 中像素点的个数值对应的映射值, 当预测数据中像素点的个数值不为 0时, 映 射值为预测数据中像素点的个数值的倒数的 2 倍, 并且上述 2 大于预测数据 中像素点的个数值, N取整数。 当预测数据中像素点的个数值为 0时, 映射值 为一预设常数, 一般为 128或 0。  The lookup table contains two sets of data, which are mapping values corresponding to the values of the pixels in the predicted data and the values of the pixels in the predicted data. When the value of the pixel in the predicted data is not 0, the mapping value is a prediction. The reciprocal of the value of the pixel in the data is twice, and the above 2 is larger than the value of the pixel in the prediction data, and N is an integer. When the value of a pixel in the prediction data is 0, the mapped value is a preset constant, typically 128 or 0.
S1004: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第五数 值。  S1004: Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value.
S1005: 将第五数值右移 N位, 获得第六数值。  S1005: Move the fifth value to the right by N bits to obtain the sixth value.
由于映射值为预测数据中像素点的个数值的倒数的 2^倍, 将其与预测数 据中像素点的个数值的映射值相乘后, 获得的第五数值比直接将预测数据中 像素点的像素值的和与像素点的个数值相除的结果增大了 2^倍, 在二进制中 将一个数值右移 N位相当于将该数值缩小了 2^倍, 将一个数值左移 N位, 相当 于将该数值增大了 倍, 因此, 可通过 S1005的将第一数值右移 N位, 获得第 六数值, 使得第六数值与直接将预测数据中像素点的像素值的和与像素点的 个数值相除的结果相等。 S1006: 将第六数值作为均值。 本实施例中, 通过查找表的方式获得预测数据中像素点的个数值对应地 映射值, 避免了除法操作实现复杂的问题, 本实施例中查找表的大小仅与预 测数据中像素点的个数值的取值范围有关, 因此, 在一定程度上降低了实现 的复杂度, 减小芯片面积, 提高处理速度。 Since the mapping value is 2^ times the reciprocal of the value of the pixel in the prediction data, and multiplied by the mapping value of the value of the pixel in the prediction data, the obtained fifth value is directly compared to the pixel in the prediction data. The sum of the pixel values is divided by the value of the pixel by 2^ times. Moving a value to the right by N bits in binary is equivalent to reducing the value by 2^ times, shifting a value to the left by N bits. , which is equivalent to increasing the value by a multiple. Therefore, the sixth value can be obtained by shifting the first value to the N position by S1005, so that the sixth value is directly compared with the pixel value of the pixel point in the prediction data. The result of dividing the values of the points is equal. S1006: The sixth value is taken as the mean value. In this embodiment, the value of the pixel in the prediction data is correspondingly mapped by the lookup table, which avoids the complicated operation of the division operation. In this embodiment, the size of the lookup table is only the same as the pixel point in the prediction data. The value range of the value is related, so the implementation complexity is reduced to some extent, the chip area is reduced, and the processing speed is increased.
进一步地, 在获取预测数据中的像素点的个数值之后, 将预测数据中的像 素点的个数值右移 M位, 以缩小预测数据中像素点的个数值的取值范围, 再通 过对第一数值的移位操作,使得第二数值与直接将预测数据中像素点的像素值 的和与像素点的个数值相除的结果相等, 进一步降低实现的复杂度, 本实施 例的方法具体包括:  Further, after acquiring the values of the pixel points in the prediction data, the values of the pixel points in the prediction data are shifted to the right by M bits, so as to narrow the value range of the pixel values in the prediction data, and then pass the A numerical value shifting operation is performed such that the second value is equal to the result of directly dividing the sum of the pixel values of the pixel points in the predicted data by the value of the pixel point, thereby further reducing the complexity of the implementation. The method of this embodiment specifically includes :
S1101 : 获取深度图像当前图像块的预测数据。  S1101: Obtain prediction data of a current image block of the depth image.
S1102: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  S1102: Obtain a sum value of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
S1103: 将预测数据中像素点的个数值右移 M位, 得到移位后的预测数据 中像素点的个数值。  S1103: The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
将预测数据中像素点的个数值右移 M位,相当于将预测数据中像素点的个 数值缩小为原来的 1/2MThe value of the pixel in the prediction data is shifted to the right by M bits, which is equivalent to reducing the value of the pixel in the prediction data to the original 1/2 M .
SI 104: 根据移位后的预测数据中像素点的个数值在查找表中获得个数值 对应的映射值。  SI 104: Obtain a mapping value corresponding to a value in the lookup table according to the value of the pixel point in the shifted prediction data.
查找表中包含两组数据, 分别为移位后的预测数据中像素点的个数值与 移位后的预测数据中像素点的个数值对应的映射值, 当预测数据中像素点的 个数值不为 0时, 映射值为预测数据中像素点的个数值的倒数的 2^倍, 并且上 述 2 大于预测数据中像素点的个数值, N取整数。 当预测数据中像素点的个数 值为 0时, 映射值为一预设常数, 一般为 128或 0。  The lookup table contains two sets of data, which are mapping values corresponding to the values of the pixel points in the shifted prediction data and the values of the pixel points in the shifted prediction data, and the values of the pixel points in the predicted data are not When 0, the mapping value is 2^ times the reciprocal of the numerical value of the pixel in the prediction data, and the above 2 is larger than the numerical value of the pixel in the prediction data, and N is an integer. When the number of pixels in the predicted data is 0, the mapped value is a preset constant, typically 128 or 0.
S1105: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第五数 值。  S1105: Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value.
S1106: 将第五数值右移 N加 M位, 获得第六数值。  S1106: Move the fifth value to the right by N plus M bits to obtain the sixth value.
由于将预测数据中像素点的个数值先进行了右移 M位, 再用 2^除以移位 后的预测数据中像素点的个数值, 得到映射值, 将其与预测数据中像素点的 个数值的映射值相乘后, 获得的第五数值比直接将预测数据中像素点的像素 值的和与像素点的个数值相除的结果增大了 +M倍, 因此, 可通过 S606的将 第五数值右移 N+M位, 获得第六数值, 使得第六数值与直接将预测数据中像 素点的像素值的和与像素点的个数值相除的结果相等。 Since the value of the pixel in the prediction data is first shifted to the right by M bits, and then 2^ is divided by the value of the pixel in the shifted prediction data to obtain a mapping value, which is compared with the pixel in the prediction data. After multiplying the mapped values of the values, the obtained fifth value is increased by +M times than the result of directly dividing the sum of the pixel values of the pixel points in the predicted data with the values of the pixel points, and therefore, the S606 can be The fifth value is shifted right by N+M bits to obtain a sixth value such that the sixth value is equal to the result of directly dividing the sum of the pixel values of the pixel points in the prediction data by the values of the pixel points.
S1107: 将第六数值作为均值。  S1107: The sixth value is taken as the mean value.
本实施例中, 通过先将预测数据中的像素点的个数值右移 M位, 再通过查 找表的方式获得移位后的预测数据中像素点的个数值对应地映射值, 避免了 除法操作实现复杂的问题, 并且本实施例中查找表的大小仅与移位后的预测 数据中像素点的个数值的取值范围有关, 因此, 进一步地降低了实现的复杂 度, 减小芯片面积, 提高处理速度。  In this embodiment, the value of the pixel in the prediction data is shifted to the right by M bits, and then the value of the pixel in the shifted prediction data is correspondingly mapped by the lookup table, thereby avoiding the division operation. A complicated problem is implemented, and the size of the lookup table in the embodiment is only related to the value range of the values of the pixel points in the shifted prediction data, thereby further reducing the complexity of the implementation and reducing the chip area. Improve processing speed.
为更进一步地降低了实现的复杂度, 本实施例的方法具体包括:  To further reduce the complexity of the implementation, the method in this embodiment specifically includes:
S1201 : 获取深度图像当前图像块的预测数据。  S1201: Obtain prediction data of a current image block of the depth image.
S1202: 获取预测数据中像素点的像素值的和值与预测数据中像素点的个 数值。  S1202: Obtain a sum of pixel values of pixel points in the prediction data and a value of the pixel points in the prediction data.
S1203 : 判断预测数据中像素点的个数值是否大于预设值, 若是, 执行 S1204-S1207 , 若否, 执行 S1208~S1210。  S1203: Determine whether the value of the pixel in the predicted data is greater than a preset value. If yes, execute S1204-S1207, if no, execute S1208~S1210.
S1204: 将预测数据中像素点的个数值右移 M位, 得到移位后的预测数据 中像素点的个数值。  S1204: The value of the pixel in the prediction data is shifted to the right by M bits, and the value of the pixel in the shifted prediction data is obtained.
S1205: 根据移位后的预测数据中像素点的个数值在查找表中获得个数值 对应的映射值。  S1205: Obtain a mapping value corresponding to the value in the lookup table according to the value of the pixel in the shifted prediction data.
S1206: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第五数 值。  S1206: Multiply the map value by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value.
S1207: 将第五数值右移 N加 M位, 获得第六数值。  S1207: Move the fifth value to the right by N plus M bits to obtain the sixth value.
上述 S1204~S1207与图 11中对应的步骤类似, 在此不再赘述。  The above steps S1204~S1207 are similar to the corresponding steps in FIG. 11, and details are not described herein again.
S1208: 根据预测数据中像素点的个数值在查找表中获得个数值对应的映 射值;  S1208: Obtain a mapping value corresponding to the value in the lookup table according to the value of the pixel in the prediction data;
S1209: 将映射值与预测数据中像素点的像素值的和值相乘, 获得第五数 值;  S1209: Multiply the mapping value by a sum of pixel values of pixel points in the prediction data to obtain a fifth value;
S1210: 将第五数值右移 N位, 获得第六数值。  S1210: Move the fifth value to the right by N bits to obtain the sixth value.
上述 S1208~S1210与图 10中对应的步骤类似, 在此不再赘述。 S1211 : 将第六数值作为均值。 The above steps S1208~S1210 are similar to the corresponding steps in FIG. 10, and details are not described herein again. S1211 : The sixth value is taken as the mean value.
上述步骤中, 由于增加了判断条件, 可以在一定程度上降低实现的复杂 度, 例如, 当预设值为 2, 当预测数据的像素点的像素值为 28时, 根据 28在 查找表中获得 28对应的映射值; 将映射值与预测数据中像素点的像素值的和 值相乘, 获得第五数值, 将第五数值右移 Ν位, 获得第六数值。 当预测数据的 像素点的像素值为 212时, 先将 212向右移动四位, 移位后为 28, 根据 28在查找 表中获得 28对应的映射值; 将映射值与预测数据中像素点的像素值的和值相 乘, 获得第五数值, 将第五数值右移 Ν+Μ位, 获得第六数值。 可见在上述过 程中针对两个不同的预测数据中像素点的个数值的可通过查找查找表中的同 一条记录获得。 因此, 釆用本实施例的方法可更进一步地降低实现的复杂度, 并且减小查找表的大小。 In the above steps, the complexity of the implementation may be reduced to some extent due to the addition of the judgment condition. For example, when the preset value is 2 1 ΰ , when the pixel value of the pixel of the prediction data is 2 8 , the search is performed according to 2 8 The mapping value corresponding to 28 is obtained in the table; the mapping value is multiplied by the sum of the pixel values of the pixel points in the prediction data to obtain a fifth value, and the fifth value is right-shifted to obtain a sixth value. When the pixel value of the pixel of the prediction data is 2 12 , the 12 12 is shifted to the right by 4 bits, and after shifting to 2 8 , the mapping value corresponding to 28 is obtained according to 2 8 in the lookup table; The sum value of the pixel values of the pixel points in the prediction data is multiplied to obtain a fifth value, and the fifth value is shifted right by Ν+Μ to obtain a sixth value. It can be seen that the values of the pixel points in the two different prediction data in the above process can be obtained by searching the same record in the lookup table. Therefore, the complexity of the implementation can be further reduced and the size of the lookup table can be reduced by the method of the present embodiment.
本实施例中, 通过在获取预测数据中的像素点的个数值之后, 增加一个判 断条件, 判断预测数据中像素点的个数值是否大于预设值, 当预测数据中像素 点的个数值大于预设值时, 釆用对像素点个数值移位对应的操作, 避免了除法 操作,并且查找表的大小仅与移位后的预测数据中像素点的个数值的取值范围 有关, 能进一步降低实现的复杂度, 当预测数据中像素点的个数值小于预设值 时, 釆用对像素点个数值不移位对应的操作, 能够获取的映射值的精度; 由于 增加了判断条件, 更进一步地降低了实现的复杂度。 本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可 读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码 的介质。  In this embodiment, after obtaining the value of the pixel point in the prediction data, adding a judgment condition, determining whether the value of the pixel point in the prediction data is greater than a preset value, when the value of the pixel point in the prediction data is greater than the pre-predetermined value When the value is set, the operation corresponding to the shift of the pixel points is used, the division operation is avoided, and the size of the lookup table is only related to the value range of the pixel values in the shifted prediction data, which can be further reduced. The complexity of the implementation, when the value of the pixel in the prediction data is less than the preset value, the accuracy of the mapping value that can be obtained by the operation corresponding to the pixel point value is not shifted; The complexity of the implementation is reduced. One of ordinary skill in the art will appreciate that all or a portion of the steps to implement the various method embodiments described above can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权利要求 书 Claim
1、 一种深度图像的编码方法, 其特征在于, 包括: A method for encoding a depth image, comprising:
获得深度图像当前图像块的预测数据, 根据预设的步长在所述预测数据中 获得预测像素值, 根据所述预测像素值计算所述预测数据的第一均值, 所述预 设的步长为不是 1的正整数;  Obtaining prediction data of the current image block of the depth image, obtaining a predicted pixel value in the prediction data according to a preset step size, calculating a first mean value of the prediction data according to the predicted pixel value, the preset step size a positive integer that is not 1;
根据所述预测数据的第一均值和所述当前图像块的像素点的像素值得到当 前图像块的残差;  Obtaining a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
对所述当前图像块的残差进行编码。  The residual of the current image block is encoded.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述预测数据的第 一均值和所述图像块的像素点的像素值得到当前图像块的残差, 包括:  The method according to claim 1, wherein the obtaining the residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the image block comprises:
将所述当前图像块的像素点与所述当前图像块的预测数据的第一均值做 差, 得到所述当前图像块的残差; 或者,  Performing a difference between a pixel point of the current image block and a first mean value of the prediction data of the current image block to obtain a residual of the current image block; or
获得深度图像当前图像块的数据, 根据预设的步长在所述当前图像块的数 据中获得预测像素值, 根据所述当前图像块的数据的像素值计算所述当前图像 块的数据的第二均值, 将所述当前图像块的数据的第二均值与所述当前图像块 的参考数据的第一均值做差, 得到所述当前图像块的残差。  Obtaining data of the current image block of the depth image, obtaining a predicted pixel value in the data of the current image block according to a preset step size, and calculating a data of the current image block according to the pixel value of the data of the current image block. And a difference between the second mean value of the data of the current image block and the first mean value of the reference data of the current image block to obtain a residual of the current image block.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据预设的步长在所述 预测数据中获得预测像素值, 包括:  The method according to claim 1, wherein the obtaining the predicted pixel value in the prediction data according to the preset step size comprises:
根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测像 素值; 或者,  Obtaining a predicted pixel value by performing equal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长获得预测 像素值; 或者,  Obtaining a predicted pixel value by performing unequal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步长 获得预测像素值。  Determining the preset step size according to the size of the current image block, and obtaining a predicted pixel value according to the preset step size.
4、 根据权利要求 1~3中任一项所述的方法, 其特征在于, 还包括: 对所述预设的步长的值进行编码。  The method according to any one of claims 1 to 3, further comprising: encoding the value of the preset step size.
5、 根据权利要求 1~4中任一项所述的方法, 其特征在于, 所述预设的步长 用于标识预测数据位置坐标之间的间隔。  The method according to any one of claims 1 to 4, wherein the preset step size is used to identify an interval between predicted data position coordinates.
6、 根据权利要求 1~5中任一项所述的方法, 其特征在于, 所述对所述当前 图像块的残差进行编码, 包括: 将所述残差映射成残差映射值, 表示所述残差映射值的比特位小于表示所 述残差的比特位; The method according to any one of claims 1 to 5, wherein the encoding the residual of the current image block comprises: Mapping the residual to a residual mapping value, indicating that the bit of the residual mapping value is smaller than a bit representing the residual;
对所述残差映射值进行编码。  The residual map value is encoded.
7、 根据权利要求 1~6中任一项所述的方法, 其特征在于, 所述根据预设的 步长在所述预测数据中获得预测像素值之前, 还包括:  The method according to any one of claims 1 to 6, wherein before the obtaining the predicted pixel value in the prediction data according to the preset step size, the method further includes:
根据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预设的帧 内预测模式集合;  Determining, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set;
若属于, 则确定根据所述预设的步长在所述预测数据中获得所述预测像素 值。  If so, it is determined that the predicted pixel value is obtained in the prediction data according to the preset step size.
8、 根据权利要求 7所述的方法, 其特征在于, 所述帧内预测模式集合包括 下述至少一种帧内预测模式:  8. The method according to claim 7, wherein the set of intra prediction modes comprises at least one of intra prediction modes described below:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
9、 一种深度图像的解码方法, 其特征在于, 包括:  9. A method for decoding a depth image, comprising:
获得深度图像当前图像块的预测数据, 根据预设的步长在所述预测数据中 获得预测像素值, 根据所述预测像素值计算所述预测数据的第一均值, 所述预 设的步长为不是 1的正整数;  Obtaining prediction data of the current image block of the depth image, obtaining a predicted pixel value in the prediction data according to a preset step size, calculating a first mean value of the prediction data according to the predicted pixel value, the preset step size a positive integer that is not 1;
获得所述当前图像块的残差;  Obtaining a residual of the current image block;
根据所述预测数据的第一均值和所述当前图像块的残差获得所述当前图像 块的像素点的像素值。  A pixel value of a pixel point of the current image block is obtained according to a first mean value of the prediction data and a residual of the current image block.
10、 根据权利要求 9所述的方法, 其特征在于, 所述根据所述预测数据的第 一均值和所述当前图像块的残差获得所述当前图像块的像素点的像素值, 包括: 将所述当前图像块的预测数据的第一均值与所述当前图像块的残差相加, 获得所述当前图像块的像素点的像素值; 或者,  The method according to claim 9, wherein the obtaining the pixel value of the pixel of the current image block according to the first mean value of the prediction data and the residual of the current image block comprises: Adding a first mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block; or
将所述当前图像块的预测数据的第一均值与所述残差相加, 获得所述当前 图像块的像素均值, 将所述当前图像块的像素均值作为所述当前图像块的像素 点的像素值。  Adding a first mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and using a pixel mean of the current image block as a pixel point of the current image block. Pixel values.
11、 根据权利要求 9所述的方法, 其特征在于, 所述根据预设的步长在所述 预测数据中获得预测像素值, 包括: The method according to claim 9, wherein the step is according to a preset step size Obtaining predicted pixel values in the forecast data, including:
根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测像 素值; 或者,  Obtaining a predicted pixel value by performing equal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长获得预测 像素值; 或者,  Obtaining a predicted pixel value by performing unequal steps in the horizontal direction and the vertical direction according to the size of the current image block; or
根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步长 获得所述预测像素值。  Determining the preset step size according to the size of the current image block, and obtaining the predicted pixel value according to the preset step size.
12、 根据权利要求 9~11中任一项所述的方法, 其特征在于, 还包括: 解析码流获得标识所述步长的值。  The method according to any one of claims 9 to 11, further comprising: parsing the code stream to obtain a value identifying the step size.
13、 根据权利要求 9~12中任一项所述的方法, 其特征在于, 所述预设的步 长用于标识预测数据位置坐标之间的间隔。  The method according to any one of claims 9 to 12, wherein the preset step is used to identify an interval between predicted data position coordinates.
14、 根据权利要求 9~13中任一项所述的方法, 其特征在于, 所述获得所述 当前图像块的残差, 包括:  The method according to any one of claims 9 to 13, wherein the obtaining the residual of the current image block comprises:
对所述当前图像块的编码结果进行解码处理, 得到所述当前图像块的残差 映射值;  Performing a decoding process on the encoding result of the current image block to obtain a residual mapping value of the current image block;
将所述残差映射值映射成残差, 将所述残差作为所述当前图像块的残差, 表示所述残差映射值的比特位小于表示所述残差的比特位。  Mapping the residual mapping value to a residual, using the residual as a residual of the current image block, indicating that the bit of the residual mapping value is smaller than a bit representing the residual.
15、 根据权利要求 9~14中任一项所述的方法, 其特征在于, 所述根据预设 的步长在所述预测数据中获得预测像素值之前, 还包括:  The method according to any one of claims 9 to 14, wherein before the obtaining the predicted pixel value in the prediction data according to the preset step size, the method further includes:
根据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预设的帧 内预测模式集合;  Determining, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set;
若属于, 则确定根据所述预设的步长在所述预测数据中获得所述预测像素 值。  If so, it is determined that the predicted pixel value is obtained in the prediction data according to the preset step size.
16、 根据权利要求 15所述的方法, 其特征在于, 所述帧内预测模式集合包 括下述至少一种帧内预测模式:  16. The method according to claim 15, wherein the set of intra prediction modes comprises at least one of the following intra prediction modes:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
17、 一种深度图像的编码装置, 其特征在于, 包括: 第一处理模块, 用于获得深度图像当前图像块的预测数据, 根据预设的步 长在所述预测数据中获得预测像素值, 根据所述预测像素值计算所述预测数据 的第一均值, 所述预设的步长为不是 1的正整数; 17. An apparatus for encoding a depth image, comprising: a first processing module, configured to obtain prediction data of a current image block of the depth image, obtain a predicted pixel value in the prediction data according to a preset step size, and calculate a first mean value of the prediction data according to the predicted pixel value, The preset step size is a positive integer that is not 1;
第二处理模块, 用于根据所述预测数据的第一均值和所述当前图像块的像 素点的像素值得到当前图像块的残差;  a second processing module, configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
编码模块, 用于对所述当前图像块的残差进行编码。  And an encoding module, configured to encode a residual of the current image block.
18、 根据权利要求 17所述的编码装置, 其特征在于, 所述第二处理模块具 体用于将所述当前图像块的像素点与所述当前图像块的预测数据的第一均值做 差, 得到所述当前图像块的残差; 或者, 获得深度图像当前图像块的数据, 根 据预设的步长在所述当前图像块的数据中获得预测像素值, 根据所述当前图像 块的数据的预测像素值计算所述当前图像块的数据的第二均值, 将所述当前图 像块的数据的第二均值与所述当前图像块的预测数据的第一均值做差, 得到所 述当前图像块的残差。  The encoding device according to claim 17, wherein the second processing module is specifically configured to compare a pixel point of the current image block with a first mean value of prediction data of the current image block, Obtaining a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining a predicted pixel value in the data of the current image block according to a preset step size, according to data of the current image block Predicting a pixel value to calculate a second mean value of the data of the current image block, and comparing a second mean value of the data of the current image block with a first mean value of the predicted data of the current image block to obtain the current image block Residual.
19、 根据权利要求 17所述的编码装置, 其特征在于, 所述第一处理模块, 具体用于根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预 测像素值; 或者, 根据所述当前图像块的尺寸进行水平方向和垂直方向的非等 步长获得预测像素值; 或者, 根据所述当前图像块的尺寸确定所述预设的步长, 根据所述的预设的步长获得预测像素值。  The encoding device according to claim 17, wherein the first processing module is configured to obtain a predicted pixel value according to an equal step size of a horizontal direction and a vertical direction according to a size of the current image block; or Obtaining a predicted pixel value according to the unequal step size of the horizontal direction and the vertical direction according to the size of the current image block; or determining the preset step size according to the size of the current image block, according to the preset The step size gets the predicted pixel value.
20、 根据权利要求 17~19中任一项所述的编码装置, 其特征在于, 所述编码 模块, 还用于对所述预设的步长的值进行编码。  The encoding device according to any one of claims 17 to 19, wherein the encoding module is further configured to encode the value of the preset step size.
21、 根据权利要求 17~20中任一项所述的编码装置, 其特征在于, 所述预设 的步长用于标识预测数据位置坐标之间的间隔。  The encoding apparatus according to any one of claims 17 to 20, wherein the preset step size is used to identify an interval between predicted data position coordinates.
22、 根据权利要求 17~21中任一项所述的编码装置, 其特征在于, 所述编码 模块, 具体用于将所述残差映射成残差映射值, 表示所述残差映射值的比特位 小于表示所述残差的比特位, 对所述残差映射值进行编码。  The coding apparatus according to any one of claims 17 to 21, wherein the coding module is specifically configured to map the residual to a residual mapping value, and to represent the residual mapping value. The bit is smaller than the bit representing the residual, and the residual map value is encoded.
23、 根据权利要求 17~22中任一项所述的编码装置, 其特征在于, 所述第一 处理模块, 还用于根据当前图像块的帧内预测模式确定所述帧内预测模式是否 属于预设的帧内预测模式集合, 若属于, 则确定根据所述预设的步长在所述预 测数据中获得所述预测像素值。  The encoding device according to any one of claims 17 to 22, wherein the first processing module is further configured to determine, according to an intra prediction mode of a current image block, whether the intra prediction mode belongs to Presetting a set of intra prediction modes, if yes, determining to obtain the predicted pixel value in the prediction data according to the preset step size.
24、 根据权利要求 23所述的编码装置, 其特征在于, 所述帧内预测模式集 合包括下述至少一种帧内预测模式: The encoding apparatus according to claim 23, wherein the intra prediction mode set The method includes at least one of the following intra prediction modes:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
25、 一种深度图像的解码装置, 其特征在于, 包括:  25. A decoding apparatus for a depth image, comprising:
处理模块, 用于获得深度图像当前图像块的预测数据, 根据预设的步长在 所述预测数据中获得预测像素值, 根据所述预测像素值计算所述预测数据的第 一均值, 所述预设的步长为不是 1的正整数;  a processing module, configured to obtain prediction data of a current image block of the depth image, obtain a predicted pixel value in the prediction data according to a preset step size, and calculate a first mean value of the prediction data according to the predicted pixel value, The preset step size is a positive integer that is not 1;
解码模块, 用于获得所述当前图像块的残差, 根据所述预测数据的第一均 值和所述当前图像块的残差获得所述当前图像块的像素点的像素值。  And a decoding module, configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to a first average of the prediction data and a residual of the current image block.
26、 根据权利要求 25所述的解码装置, 其特征在于, 所述解码模块具体用 于将所述当前图像块的预测数据的第一均值与所述当前图像块的残差相加, 获 得所述当前图像块的像素点的像素值; 或者, 将所述当前图像块的预测数据的 第一均值与所述残差相加, 获得所述当前图像块的像素均值, 将所述当前图像 块的像素均值作为所述当前图像块的像素点的像素值。  The decoding device according to claim 25, wherein the decoding module is configured to add a first mean value of the prediction data of the current image block and a residual of the current image block to obtain a a pixel value of a pixel of the current image block; or, adding a first mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and using the current image block The pixel mean is the pixel value of the pixel of the current image block.
27、 根据权利要求 25所述的解码装置, 其特征在于, 所述处理模块, 具体 用于根据所述当前图像块的尺寸进行水平方向和垂直方向的等步长获得预测像 素值; 或者, 根据所述当前图像块的尺寸进行水平方向和垂直方向的非等步长 获得预测像素值; 或者, 根据所述当前图像块的尺寸确定所述预设的步长, 根 据所述的预设的步长获得所述预测像素值。  The decoding device according to claim 25, wherein the processing module is configured to obtain a predicted pixel value according to an equal step size of a horizontal direction and a vertical direction according to a size of the current image block; or The size of the current image block is obtained by unequal steps in the horizontal direction and the vertical direction to obtain a predicted pixel value; or, determining the preset step size according to the size of the current image block, according to the preset step The predicted pixel value is obtained long.
28、 根据权利要求 25~27中任一项所述的解码装置, 其特征在于, 所述解码 模块还用于解析码流获得标识所述步长的值。  The decoding apparatus according to any one of claims 25 to 27, wherein the decoding module is further configured to parse the code stream to obtain a value identifying the step size.
29、 根据权利要求 25~28中任一项所述的解码装置, 其特征在于, 所述预设 的步长用于标识预测数据位置坐标之间的间隔。  The decoding apparatus according to any one of claims 25 to 28, wherein the preset step size is used to identify an interval between predicted data position coordinates.
30、 根据权利要求 25~29中任一项所述的解码装置, 其特征在于, 所述解码 模块具体用于对所述当前图像块的编码结果进行解码处理, 得到所述当前图像 块的残差映射值, 将所述残差映射值映射成残差, 将所述残差作为所述当前图 像块的残差, 表示所述残差映射值的比特位小于表示所述残差的比特位。  The decoding device according to any one of claims 25 to 29, wherein the decoding module is configured to perform decoding processing on the encoding result of the current image block to obtain a residual of the current image block. a difference mapping value, mapping the residual mapping value to a residual, using the residual as a residual of the current image block, indicating that a bit of the residual mapping value is smaller than a bit representing the residual .
31、 根据权利要求 25~30中任一项所述的解码装置, 其特征在于, 所述处理 模块还用于根据当前图像块的帧内预测模式确定所述帧内预测模式是否属于预 设的帧内预测模式集合, 若属于, 则确定根据所述预设的步长在所述预测数据 中获得所述预测像素值。 The decoding device according to any one of claims 25 to 30, wherein the processing The module is further configured to determine, according to an intra prediction mode of the current image block, whether the intra prediction mode belongs to a preset intra prediction mode set, and if so, determine, according to the preset step size, in the prediction data. The predicted pixel value is obtained.
32、 根据权利要求 31所述的解码装置, 其特征在于, 所述帧内预测模式集 合包括下述至少一种帧内预测模式:  The decoding apparatus according to claim 31, wherein the intra prediction mode set includes at least one of intra prediction modes described below:
直流 DC模式;  DC DC mode;
平面 Planar模式;  Planar Planar mode;
显式标识的楔波 Wedgelet模式;  Explicitly identified Wedgelet Wedgelet mode;
基于帧内预测模式的楔波 Wedgelet模式。  Wedgelet Wedgelet mode based on intra prediction mode.
33、 一种深度图像的编码方法, 其特征在于, 包括:  33. A method for encoding a depth image, comprising:
获得深度图像当前图像块的预测数据,对预测数据中的像素点中每 N个像素 点进行算术操作, 获得相应像素值的算术值, 根据所述相应像素值的算术值计 算所述预测数据的第一均值;  Obtaining prediction data of the current image block of the depth image, performing arithmetic operations on each N pixel points in the pixel in the prediction data, obtaining an arithmetic value of the corresponding pixel value, and calculating the prediction data according to the arithmetic value of the corresponding pixel value First mean value;
根据所述预测数据的第一均值和所述当前图像块的像素点的像素值得到当 前图像块的残差;  Obtaining a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
对所述当前图像块的残差进行编码。  The residual of the current image block is encoded.
34、 根据权利要求 33所述的方法, 其特征在于, 所述对预测数据中的像素 点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 包括:  The method according to claim 33, wherein the performing arithmetic operations on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value includes:
对所述预测数据中的像素点中每 N个像素点进行平均操作, 获得平均像素 值, 将所述平均像素值作为相应像素的算术值。  An averaging operation is performed on every N pixel points in the pixel in the prediction data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel.
35、 根据权利要求 33或 34所述的方法, 其特征在于, 根据所述预测数据的 第一均值和所述图像块的像素点的像素值得到残差, 包括:  The method according to claim 33 or 34, wherein the residual is obtained according to the first mean value of the prediction data and the pixel value of the pixel of the image block, including:
将所述图像块的像素点与所述当前图像块的预测数据的第一均值做差, 得 到所述当前图像块的残差;  Placing a pixel of the image block with a first mean of the prediction data of the current image block to obtain a residual of the current image block;
或, 获得深度图像当前图像块的数据, 根据预设的步长在所述当前图像块 的数据中获得所述像素值, 根据所述像素值计算所述图像块的数据的第二均值, 将所述图像块的第二均值与所述当前图像块的参考图像块的第一均值做差, 得 到所述当前图像块的残差。  Or obtaining data of the current image block of the depth image, obtaining the pixel value in the data of the current image block according to a preset step size, and calculating a second mean value of the data of the image block according to the pixel value, The second mean of the image block is different from the first mean of the reference image block of the current image block to obtain a residual of the current image block.
36、 一种深度图像的解码方法, 其特征在于, 包括:  36. A method for decoding a depth image, comprising:
获得深度图像当前图像块的预测数据,对预测数据中的像素点中每 N个像素 点进行算术操作, 获得相应像素值的算术值, 根据所述相应像素值的算术值计 算所述预测数据的第一均值; Obtaining prediction data of the current image block of the depth image, for every N pixels in the pixel in the prediction data Performing an arithmetic operation to obtain an arithmetic value of a corresponding pixel value, and calculating a first mean value of the predicted data according to an arithmetic value of the corresponding pixel value;
获得所述当前图像块的残差;  Obtaining a residual of the current image block;
根据所述预测数据的均值和所述当前图像块的残差获得所述当前图像块的 像素点的像素值。  A pixel value of a pixel point of the current image block is obtained according to an average of the prediction data and a residual of the current image block.
37、 根据权利要求 36所述的方法, 其特征在于, 所述对预测数据中的像素 点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 包括:  The method according to claim 36, wherein the performing an arithmetic operation on each of the pixel points in the pixel in the prediction data to obtain an arithmetic value of the corresponding pixel value includes:
对所述当前图像块和所述预测数据中的像素点中每 N个像素点进行平均操 作, 获得平均像素值, 将所述平均像素值作为相应像素值的算术值。  An average operation is performed on each of the N pixels in the current image block and the predicted data to obtain an average pixel value, and the average pixel value is used as an arithmetic value of the corresponding pixel value.
38、 根据权利要求 36或 37所述的方法, 其特征在于, 根据所述预测数据的 均值和所述当前图像块的残差获得所述当前图像块的像素点的像素值, 包括: 将所述当前图像块的预测数据的均值与所述当前图像块的残差相加, 获得 所述当前图像块的像素点的像素值;  The method according to claim 36 or 37, wherein: obtaining a pixel value of a pixel of the current image block according to an average of the prediction data and a residual of the current image block, including: Adding a mean value of the prediction data of the current image block to a residual of the current image block to obtain a pixel value of a pixel point of the current image block;
或, 将所述当前图像块的预测数据的均值与所述残差相加, 获得所述当前 图像块的像素均值, 将所述当前图像块的像素均值作为所述当前图像块的像素 点的像素值。  Or, adding the mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and using a pixel average of the current image block as a pixel point of the current image block. Pixel values.
39、 一种深度图像的编码装置, 其特征在于, 包括:  39. An apparatus for encoding a depth image, comprising:
第一处理模块, 用于获得深度图像当前图像块的预测数据, 对预测数据中 的像素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根据所述相 应像素值的算术值计算所述预测数据的第一均值;  a first processing module, configured to obtain prediction data of a current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, obtain an arithmetic value of the corresponding pixel value, and perform arithmetic according to the corresponding pixel value Calculating a first mean value of the predicted data;
第二处理模块, 用于根据所述预测数据的第一均值和所述当前图像块的像 素点的像素值得到当前图像块的残差;  a second processing module, configured to obtain a residual of the current image block according to the first mean value of the prediction data and the pixel value of the pixel point of the current image block;
编码模块, 用于对所述当前图像块的残差进行编码。  And an encoding module, configured to encode a residual of the current image block.
40、 根据权利要求 39所述的编码装置, 其特征在于, 所述第一处理模块具 体用于对所述预测数据中的像素点中每 N个像素点进行平均操作,获得平均像素 值, 将所述平均像素值作为相应像素的算术值。  The encoding device according to claim 39, wherein the first processing module is configured to perform an averaging operation on every N pixel points in the pixel in the prediction data to obtain an average pixel value, The average pixel value is taken as an arithmetic value of the corresponding pixel.
41、 根据权利要求 39或 40所述的编码装置, 其特征在于, 所述第二处理模 块具体用于将所述图像块的像素点与所述当前图像块的预测数据的第一均值做 差, 得到所述当前图像块的残差; 或, 获得深度图像当前图像块的数据, 根据 预设的步长在所述当前图像块的数据中获得所述像素值, 根据所述像素值计算 所述图像块的数据的第二均值, 将所述图像块的第二均值与所述当前图像块的 参考图像块的第一均值做差, 得到所述当前图像块的残差。 The encoding device according to claim 39 or 40, wherein the second processing module is specifically configured to compare a pixel point of the image block with a first mean value of prediction data of the current image block. Obtaining a residual of the current image block; or obtaining data of a current image block of the depth image, obtaining the pixel value in data of the current image block according to a preset step size, and calculating according to the pixel value a second mean value of the data of the image block is obtained by comparing a second mean value of the image block with a first mean value of a reference image block of the current image block to obtain a residual of the current image block.
42、 一种深度图像的解码装置, 其特征在于, 包括:  42. A decoding apparatus for a depth image, comprising:
处理模块, 用于获得深度图像当前图像块的预测数据, 对预测数据中的像 素点中每 N个像素点进行算术操作, 获得相应像素值的算术值, 根据所述相应像 素值的算术值计算所述预测数据的第一均值;  a processing module, configured to obtain prediction data of a current image block of the depth image, perform an arithmetic operation on each N pixel points in the pixel in the prediction data, obtain an arithmetic value of the corresponding pixel value, and calculate according to an arithmetic value of the corresponding pixel value a first mean of the predicted data;
解码模块, 用于获得所述当前图像块的残差, 根据所述预测数据的均值和 所述当前图像块的残差获得所述当前图像块的像素点的像素值。  And a decoding module, configured to obtain a residual of the current image block, and obtain a pixel value of a pixel of the current image block according to an average of the prediction data and a residual of the current image block.
43、 根据权利要求 42所述的解码装置, 其特征在于, 处理模块具体用于对 所述当前图像块和所述预测数据中的像素点中每 N个像素点进行平均操作,获得 平均像素值, 将所述平均像素值作为相应像素值的算术值。  The decoding device according to claim 42, wherein the processing module is configured to perform an averaging operation on each of the N pixels in the current image block and the prediction data to obtain an average pixel value. The average pixel value is taken as an arithmetic value of the corresponding pixel value.
44、 根据权利要求 42或 43所述的解码装置, 其特征在于, 所述解码模块 具体用于将所述当前图像块的预测数据的均值与所述当前图像块的残差相加, 获得所述当前图像块的像素点的像素值; 或, 将所述当前图像块的预测数据的 均值与所述残差相加, 获得所述当前图像块的像素均值, 将所述当前图像块的 像素均值作为所述当前图像块的像素点的像素值。  The decoding device according to claim 42 or 43, wherein the decoding module is specifically configured to add an average value of prediction data of the current image block to a residual of the current image block to obtain a a pixel value of a pixel of the current image block; or, adding a mean value of the prediction data of the current image block to the residual, obtaining a pixel mean of the current image block, and pixels of the current image block The mean value is the pixel value of the pixel point of the current image block.
PCT/CN2014/075234 2013-04-12 2014-04-14 Depth-image encoding and decoding methods and encoding/decoding device WO2014166433A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310127309.2A CN103200406B (en) 2013-04-12 2013-04-12 The decoding method of depth image and coding and decoding device
CN201310127309.2 2013-04-12

Publications (1)

Publication Number Publication Date
WO2014166433A1 true WO2014166433A1 (en) 2014-10-16

Family

ID=48722747

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075234 WO2014166433A1 (en) 2013-04-12 2014-04-14 Depth-image encoding and decoding methods and encoding/decoding device

Country Status (2)

Country Link
CN (1) CN103200406B (en)
WO (1) WO2014166433A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067716B (en) * 2013-01-10 2016-06-29 华为技术有限公司 The decoding method of depth image and coding and decoding device
CN103067715B (en) 2013-01-10 2016-12-28 华为技术有限公司 The decoding method of depth image and coding and decoding device
WO2015021614A1 (en) * 2013-08-14 2015-02-19 Mediatek Singapore Pte. Ltd. An efficient differential coding method for dlt in 3dvc
CN103200406B (en) * 2013-04-12 2016-10-05 华为技术有限公司 The decoding method of depth image and coding and decoding device
CN103841405B (en) * 2014-03-21 2016-07-06 华为技术有限公司 The decoding method of depth image and coding and decoding device
CN111050176B (en) 2018-10-15 2021-10-15 腾讯科技(深圳)有限公司 Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium
CN110060213B (en) * 2019-04-09 2021-06-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101978698A (en) * 2008-03-18 2011-02-16 三星电子株式会社 Method and apparatus for encoding and decoding image
WO2012057528A2 (en) * 2010-10-26 2012-05-03 ㈜휴맥스 Adaptive intra-prediction encoding and decoding method
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN103200406A (en) * 2013-04-12 2013-07-10 华为技术有限公司 Encoding method, decoding method, encoding device and decoding device of depth image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101978698A (en) * 2008-03-18 2011-02-16 三星电子株式会社 Method and apparatus for encoding and decoding image
WO2012057528A2 (en) * 2010-10-26 2012-05-03 ㈜휴맥스 Adaptive intra-prediction encoding and decoding method
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN103200406A (en) * 2013-04-12 2013-07-10 华为技术有限公司 Encoding method, decoding method, encoding device and decoding device of depth image

Also Published As

Publication number Publication date
CN103200406A (en) 2013-07-10
CN103200406B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
WO2014108095A1 (en) Depth-image encoding and decoding methods and encoding/decoding device
WO2014166433A1 (en) Depth-image encoding and decoding methods and encoding/decoding device
JP5833757B2 (en) Image encoding method, image decoding method, image encoding device, image decoding device, image encoding program, image decoding program, and recording medium
RU2009109204A (en) METHOD FOR CODING AND METHOD FOR DECODING IMAGES, DEVICES FOR THEM, PROGRAM FOR THEM, AND MEDIA FOR STORING PROGRAMS
WO2014108093A1 (en) Method for encoding/decoding depth image and apparatus thereof
JPWO2010064396A1 (en) Video decoding method and video encoding method
WO2014166434A1 (en) Method for coding/decoding depth image and coding/decoding device
JP2011029863A (en) Decoding processing method
CN104869399A (en) Information processing method and electronic equipment.
KR102231969B1 (en) Spatial prediction with increased number of possible modes
JP2022023859A (en) Encoding device, decoding device and program
US11240512B2 (en) Intra-prediction for video coding using perspective information
JP5706291B2 (en) Video encoding method, video decoding method, video encoding device, video decoding device, and programs thereof
CN112449181B (en) Encoding and decoding method, device and equipment
WO2012095037A1 (en) Encoding and decoding method and device
TW201728178A (en) Picture coding device, picture coding method, and picture coding program, and picture decoding device, picture decoding method, and picture decoding program
JP2016129366A (en) Image encoding device
JP5649539B2 (en) Moving picture coding apparatus and program thereof
JP5759357B2 (en) Video encoding method, video decoding method, video encoding device, video decoding device, video encoding program, and video decoding program
WO2015098827A1 (en) Video coding method, video decoding method, video coding device, video decoding device, video coding program, and video decoding program
CN112055201A (en) Video coding method and related device
JP5696760B2 (en) Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program
JP5696759B2 (en) Image decoding apparatus, image decoding method, and image decoding program, and receiving apparatus, receiving method, and receiving program
JP2014039303A (en) Image decoding device, image decoding method, image decoding program, receiving device, receiving method, and receiving program
JP2014039302A (en) Image decoding device, image decoding method, image decoding program, receiving device, receiving method, and receiving program

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: 14782855

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: 14782855

Country of ref document: EP

Kind code of ref document: A1