WO2012119571A1 - Intra-frame prediction method and device - Google Patents
Intra-frame prediction method and device Download PDFInfo
- Publication number
- WO2012119571A1 WO2012119571A1 PCT/CN2012/072204 CN2012072204W WO2012119571A1 WO 2012119571 A1 WO2012119571 A1 WO 2012119571A1 CN 2012072204 W CN2012072204 W CN 2012072204W WO 2012119571 A1 WO2012119571 A1 WO 2012119571A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- edge
- pixel
- reference edge
- current block
- reference pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Definitions
- the present invention relates to video codec technology, and more particularly to an intra prediction method and apparatus in video codec technology.
- the basic principle of video coding compression is to use the correlation between airspace, time domain and codewords to remove redundancy as much as possible.
- a popular block-based hybrid video coding framework is adopted, that is, video coding compression is implemented at the encoding end by steps of prediction, transformation, quantization, entropy coding, etc., and at the decoding end, these steps are performed correspondingly to restore the pixels of the image. value.
- the prediction is that the pixel value of the adjacent image block of the current block to be coded is used as the reference pixel value of the current block, and the pixel value of the current block is predicted according to the reference pixel value.
- FIG. 1 is a schematic diagram of a codec method existing in the industry.
- 33 prediction directions are given.
- a reference pixel is obtained in the neighboring block for prediction.
- the unavailability of such neighboring blocks includes: the neighboring block is outside the boundary of the image in which the current block is located; the neighboring block is in a different slice from the current block; and adjacent to the encoding end The block has not been encoded or the neighboring block has not yet been decoded at the decoding end.
- the present invention provides an intra prediction method, including: obtaining a prediction direction of a current block, and obtaining reference pixels in a first reference edge and a second reference edge of the current block, where the prediction direction is from the The first reference edge points to the second reference edge; the current block is predicted according to the reference pixels in the first reference edge and the second reference edge of the current block, and the prediction direction.
- the obtaining the reference pixels in the first reference side and the second reference side of the current block includes starting from each reference pixel point on the first reference edge, along the prediction direction, from the second A reference point of each reference pixel on the first reference edge is obtained in the reference edge, and a pixel value of the reference point is used as a reference pixel of the first reference edge.
- the first reference edge includes a reference pixel point in an upper adjacent block or an upper right adjacent block of the current block
- the second reference edge includes a left adjacent block or a lower left of the current block a reference pixel in a neighboring block
- the first reference edge includes a reference pixel in a left neighboring block or a lower left neighboring block of the current block
- the second reference edge includes the The reference pixel in the upper adjacent block or the upper right adjacent block of the current block.
- the present invention also provides an intra prediction apparatus, including: a prediction direction obtaining module, configured to obtain a prediction direction of a current block; and a reference pixel obtaining module, configured to obtain a first reference edge and a second reference edge of the current block a reference pixel; and a prediction module, configured to predict the current block according to a reference pixel in the first reference side and the second reference side of the current block, and the prediction direction, wherein the prediction direction Pointing to the second reference edge from the first reference edge.
- a prediction direction obtaining module configured to obtain a prediction direction of a current block
- a reference pixel obtaining module configured to obtain a first reference edge and a second reference edge of the current block a reference pixel
- a prediction module configured to predict the current block according to a reference pixel in the first reference side and the second reference side of the current block, and the prediction direction, wherein the prediction direction Pointing to the second reference edge from the first reference edge.
- the reference pixel obtaining module includes: a reference pixel obtaining submodule, configured to obtain a first reference from the second reference edge along the prediction direction, starting from each reference pixel point on the first reference edge a reference point of each reference pixel on the side, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
- the prediction method provided by the embodiment of the present invention when a neighboring block is unavailable, unreferenced, or the current block is a non-square block having different lengths and widths, a phase with higher similarity to the current block is obtained according to the prediction direction.
- the reference pixel value is obtained in the neighboring block. Due to the correlation between the prediction direction and the pixel distribution in the image, the prediction method provided by the embodiment of the present invention can obtain a better codec effect than the "fixed value" method in the prior art.
- FIG. 1 is a schematic diagram of a codec method in the prior art.
- FIG. 2 is a schematic diagram of an intra prediction method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of an intra prediction method provided by a preferred embodiment of the present invention.
- FIG. 4 is a diagram showing an application of an intra prediction method according to an embodiment of the present invention.
- FIG. 5 is still another application diagram of an intra prediction method according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of an intra prediction apparatus according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of an intra prediction apparatus according to a preferred embodiment of the present invention.
- FIG. 8 is a schematic diagram of an intra prediction apparatus according to still another preferred embodiment of the present invention.
- FIG. 2 is a schematic diagram of a prediction method according to an embodiment of the present invention.
- the intra prediction method provided by the embodiment of the present invention includes:
- Step 201 Obtain a prediction direction of a current block, and reference pixels in a first reference edge and a second reference edge of the current block, where the prediction direction is from the first reference edge to the second reference side;
- Step 202 Perform prediction on the current block according to the reference pixels in the first reference edge and the second reference edge of the current block, and the prediction direction.
- the first reference edge may be a set of reference pixel points in an upper adjacent block or an upper right adjacent block of the current block, or may be the upper adjacent block.
- a set of reference pixel points in the upper right neighboring block, and the second reference side may be a set of reference pixel points in the left neighboring block or the lower left neighboring block of the current block, or may be A collection of reference pixel points for the left neighboring block and the lower left neighboring block.
- the first reference edge may also be a set of reference pixel points of a left neighboring block or a lower left neighboring block, or a set of reference pixel points of a left neighboring block and a lower left neighboring block.
- the second reference edge is correspondingly a set of reference pixel points of the upper adjacent block or the upper right adjacent block, or a set of reference pixel points of the upper adjacent block and the upper right adjacent block.
- the pixel prediction method provided by the embodiment of the present invention is to obtain reference pixels of reference pixel points of adjacent blocks that are not available according to the current prediction direction of the current block.
- the first reference edge is a set of reference pixel points of an upper neighboring block
- the second reference edge is a set of reference pixel points of a left neighboring block
- the prediction direction is from The first reference edge points to the second reference edge, that is, from the upper right to the lower left direction.
- the reference point corresponding to each reference pixel point of the upper neighboring block may be obtained from the left neighboring block according to the prediction direction.
- the pixel value is used as the reference pixel value of the upper adjacent block.
- the corresponding reference point of the lower left adjacent block may also be used.
- the pixel value is used as the reference pixel of the upper adjacent block.
- the reference pixels are also obtained from the left neighboring block and the lower left neighboring block of the current block according to the prediction direction.
- the prediction direction is from the lower left to the upper right. If the neighboring block is not available to the current block, the pixel value of the corresponding reference point is obtained from the upper neighboring block along the prediction direction starting from the reference pixel point of the left neighboring block. Comes as the reference pixel of the left neighboring block.
- the first reference side is a set of reference pixel points of the upper adjacent block
- the second reference side is a set of reference pixel points of the left adjacent block as an example.
- the first reference edge may also be a set of reference pixel points of the lower left adjacent block, a set of reference pixel points of the upper right adjacent block, a reference pixel point of the left adjacent block and the lower left adjacent block.
- the obtaining the reference pixels in the first reference edge and the second reference edge of the current block in the step 202 further includes:
- Step 2021 Starting from each reference pixel point on the first reference edge, obtaining, according to the prediction direction, a reference point of each reference pixel on the first reference edge from the second reference edge, and The pixel value of the reference point serves as a reference pixel of the first reference side.
- the step 202 may further include a step 2022: if the first reference pixel on the first reference edge cannot be from the second reference edge along the prediction direction.
- the reference pixel of the second reference pixel adjacent to the first reference pixel on the first reference edge is used as the reference pixel of the first reference pixel. That is, if the first reference pixel on the first reference edge cannot obtain a reference point from the second reference edge along the prediction direction, then the first reference edge is A reference pixel of a second reference pixel adjacent to the first reference pixel is used as a reference pixel of the first reference pixel.
- the intra-frame pixel prediction method provided by the present invention can also obtain a good effect.
- the adjacent block corresponding to the first reference edge includes an inter block (inter block), and the adjacent block corresponding to the second reference edge does not include an inter block.
- inter block should not be referred to to improve the ability to resist error expansion.
- the inter block is all Intra blocks, and the second reference edge can be referred to.
- the method proposed by the present invention can also be fully applied. The specific process is similar and will not be described again.
- the invention can be applied in certain special occasions even in the case where both the first reference side and the second reference side are available.
- the intra prediction method provided by the embodiment of the present invention may also be used. It is assumed that the length of the current block in the direction in which the first reference edge extends is smaller than the length of the current block in the direction in which the second reference edge extends. In this case, the difference between the pixel distribution of the current block and the upper adjacent block is greater than the current block. The difference in pixel distribution from the left neighboring block, therefore, prediction by the left neighboring block may result in better prediction. That is to say, in this case, the correlation between the current block and the second reference edge is greater than its correlation with the first reference edge, so that the current rectangular block can be utilized with the second reference edge based on the method proposed by the present invention. Make predictions.
- the prediction method provided by the embodiment of the present invention when a neighboring block is unavailable, unreferenced, or the current block is a non-square block having different lengths and widths, a phase with higher similarity to the current block is obtained according to the prediction direction.
- the reference pixel value is obtained in the neighboring block. Due to the correlation between the prediction direction and the pixel distribution in the image, the prediction method provided by the embodiment of the present invention can obtain a better codec effect than the "fixed value" method in the prior art.
- FIG. 6 is a schematic diagram of an intra prediction apparatus for performing an intra prediction method according to an embodiment of the present invention.
- the pixel prediction apparatus provided in the embodiment of the present invention includes:
- a prediction direction obtaining module 401 configured to obtain a prediction direction of the current block
- a reference pixel obtaining module 402 configured to obtain a reference pixel in the first reference side and the second reference side of the current block
- the prediction module 403 is configured to predict the current block according to the reference pixels in the first reference edge and the second reference edge of the current block, and the prediction direction,
- the reference pixel obtaining module 402 further includes:
- the reference pixel obtaining sub-module 4021 is configured to obtain, according to each prediction pixel on the first reference edge, a reference pixel point on the first reference edge from the second reference edge along the prediction direction. a reference point, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
- the reference pixel obtaining module 402 may further include an adjacent reference pixel obtaining submodule 4022, if the first reference pixel edge on the first reference edge When the prediction direction cannot obtain a reference point from the second reference edge, the reference pixel of the second reference pixel adjacent to the first reference pixel on the first reference edge is used as the The reference pixel of the first reference pixel.
- the reference pixel obtaining module may further include a determining sub-module 4023, configured to determine whether a preset condition is met, where the preset condition includes: the first reference edge is unavailable, The second reference edge is available; or, the inter-block (inter block) exists in the neighboring block corresponding to the first reference edge, and the adjacent fast cell corresponding to the second reference edge does not exist (inter block) Or; the length of the current block along the extending direction of the first reference edge is smaller than the length of the current block along the extending direction of the second reference edge,
- the reference pixel obtaining sub-module takes a reference pixel point on the first reference edge as a starting point, and obtains a second direction from the second reference edge along the prediction direction.
- a reference point of each reference pixel on the reference edge, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
- the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域Technical field
本发明涉及视频编解码技术,特别涉及视频编解码技术中的帧内预测方法和装置。The present invention relates to video codec technology, and more particularly to an intra prediction method and apparatus in video codec technology.
背景技术Background technique
视频编码压缩的基本原理是,利用空域、时域和码字之间的相关性,尽可能去除冗余。目前流行的做法是采用基于块的混合视频编码框架,即在编码端通过预测、变换、量化、熵编码等步骤来实现视频编码压,而在解码端则相应的进行这些步骤来还原图像的像素值。其中,预测即为以当前待编码块的相邻图像块的像素值作为当前块的参考像素值,根据参考像素值对当前块的像素值进行预测。The basic principle of video coding compression is to use the correlation between airspace, time domain and codewords to remove redundancy as much as possible. At present, a popular block-based hybrid video coding framework is adopted, that is, video coding compression is implemented at the encoding end by steps of prediction, transformation, quantization, entropy coding, etc., and at the decoding end, these steps are performed correspondingly to restore the pixels of the image. value. The prediction is that the pixel value of the adjacent image block of the current block to be coded is used as the reference pixel value of the current block, and the pixel value of the current block is predicted according to the reference pixel value.
请参照图1,图1所示为目前业界存在的一种编解码方法的示意图,在该预测方法中共给出了33种预测方向,在进行预测时,需要根据这33种预测方向分别从相邻块中获得参考像素来进行预测。但是在实际操作中,往往会遇到当前待编码块的相邻块的像素不能用作当前块的参考像素。目前,这种相邻块的不可用的情况包括:相邻块处于当前块所处的图象的边界外;相邻块与当前块处于不同条带(slice)中;以及在编码端相邻块还未被编码或在解码端相邻块还未被解码。在业界,只要相邻块满足上述的任意一条,则相邻块就被视为不可用,否则相邻块可用。而当用于提供参考像素的相邻块不可用时,业界的解决办法是使用预设的固定值来作为这些不可用的相邻块的参考像素。但是很明显,这种做法没有考虑到图像块间的相关性,很难保证编解码的效果。 Please refer to FIG. 1. FIG. 1 is a schematic diagram of a codec method existing in the industry. In the prediction method, 33 prediction directions are given. When performing prediction, it is necessary to separately phase according to the 33 prediction directions. A reference pixel is obtained in the neighboring block for prediction. However, in actual operation, it is often encountered that pixels of adjacent blocks of the current block to be coded cannot be used as reference pixels of the current block. Currently, the unavailability of such neighboring blocks includes: the neighboring block is outside the boundary of the image in which the current block is located; the neighboring block is in a different slice from the current block; and adjacent to the encoding end The block has not been encoded or the neighboring block has not yet been decoded at the decoding end. In the industry, adjacent blocks are considered unavailable as long as the neighboring blocks satisfy any of the above, otherwise the neighboring blocks are available. While the neighboring blocks used to provide the reference pixels are not available, the industry solution is to use a preset fixed value as the reference pixel for these unavailable neighboring blocks. However, it is obvious that this method does not take into account the correlation between image blocks, and it is difficult to guarantee the effect of codec.
发明内容Summary of the invention
本发明提供一种帧内预测方法,包括:获得当前块的预测方向,以及获得所述当前块的第一参考边和第二参考边中的参考像素,其中,所述预测方向为从所述第一参考边指向所述第二参考边;根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测。所述获得所述当前块的第一参考边和第二参考边中的参考像素包括:以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。其中,所述第一参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点,而所述第二参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点;或者,所述第一参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点,而所述第二参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点。The present invention provides an intra prediction method, including: obtaining a prediction direction of a current block, and obtaining reference pixels in a first reference edge and a second reference edge of the current block, where the prediction direction is from the The first reference edge points to the second reference edge; the current block is predicted according to the reference pixels in the first reference edge and the second reference edge of the current block, and the prediction direction. The obtaining the reference pixels in the first reference side and the second reference side of the current block includes starting from each reference pixel point on the first reference edge, along the prediction direction, from the second A reference point of each reference pixel on the first reference edge is obtained in the reference edge, and a pixel value of the reference point is used as a reference pixel of the first reference edge. Wherein the first reference edge includes a reference pixel point in an upper adjacent block or an upper right adjacent block of the current block, and the second reference edge includes a left adjacent block or a lower left of the current block a reference pixel in a neighboring block; or, the first reference edge includes a reference pixel in a left neighboring block or a lower left neighboring block of the current block, and the second reference edge includes the The reference pixel in the upper adjacent block or the upper right adjacent block of the current block.
本发明还提供一种帧内预测装置,包括:预测方向获得模块,用于获得当前块的预测方向;参考像素获得模块,用于获得得所述当前块的第一参考边和第二参考边中的参考像素;以及预测模块,用于根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,其中,所述预测方向为从所述第一参考边指向所述第二参考边。所述参考像素获得模块包括:参照像素获得子模块,用于以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。The present invention also provides an intra prediction apparatus, including: a prediction direction obtaining module, configured to obtain a prediction direction of a current block; and a reference pixel obtaining module, configured to obtain a first reference edge and a second reference edge of the current block a reference pixel; and a prediction module, configured to predict the current block according to a reference pixel in the first reference side and the second reference side of the current block, and the prediction direction, wherein the prediction direction Pointing to the second reference edge from the first reference edge. The reference pixel obtaining module includes: a reference pixel obtaining submodule, configured to obtain a first reference from the second reference edge along the prediction direction, starting from each reference pixel point on the first reference edge a reference point of each reference pixel on the side, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
采用本发明实施例所提供的预测方法,当相邻块不可用、不可参考或当前块为长宽不一的非正方形块时,根据预测方向从可用的或与当前块相似度更高的相邻块中获得参考像素值。由于预测方向与图像中的像素分布的关联性,因此采用本发明实施例所提供的预测方法相对于现有技术中的“固定值”的方法,能够得到更好的编解码效果。According to the prediction method provided by the embodiment of the present invention, when a neighboring block is unavailable, unreferenced, or the current block is a non-square block having different lengths and widths, a phase with higher similarity to the current block is obtained according to the prediction direction. The reference pixel value is obtained in the neighboring block. Due to the correlation between the prediction direction and the pixel distribution in the image, the prediction method provided by the embodiment of the present invention can obtain a better codec effect than the "fixed value" method in the prior art.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.
图1所示为现有技术中的编解码方法的示意图。FIG. 1 is a schematic diagram of a codec method in the prior art.
图2所示为本发明实施例所提供的帧内预测方法的示意图。FIG. 2 is a schematic diagram of an intra prediction method according to an embodiment of the present invention.
图3所示为本发明优选实施例所提供的帧内预测方法的示意图。FIG. 3 is a schematic diagram of an intra prediction method provided by a preferred embodiment of the present invention.
图4所示为本发明实施例所提供的帧内预测方法的应用示图。FIG. 4 is a diagram showing an application of an intra prediction method according to an embodiment of the present invention.
图5所示为本发明实施例所提供的帧内预测方法的又一应用示图。FIG. 5 is still another application diagram of an intra prediction method according to an embodiment of the present invention.
图6所示为本发明实施例所提供的帧内预测装置的示意图。FIG. 6 is a schematic diagram of an intra prediction apparatus according to an embodiment of the present invention.
图7所示为本发明优选实施例所提供的帧内预测装置的示意图。FIG. 7 is a schematic diagram of an intra prediction apparatus according to a preferred embodiment of the present invention.
图8所示为本发明又一优选实施例所提供的帧内预测装置的示意图。FIG. 8 is a schematic diagram of an intra prediction apparatus according to still another preferred embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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. It is obvious that the described embodiments are only a part of the embodiments of the present 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.
请参照图2,图2所示为本发明实施例所提供的预测方法的示意图。本发明实施例所提供的帧内预测方法包括:Please refer to FIG. 2. FIG. 2 is a schematic diagram of a prediction method according to an embodiment of the present invention. The intra prediction method provided by the embodiment of the present invention includes:
步骤201:获得当前块的预测方向,以及所述当前块的第一参考边和第二参考边中的参考像素,其中,所述预测方向为从所述第一参考边指向所述第二参考边;Step 201: Obtain a prediction direction of a current block, and reference pixels in a first reference edge and a second reference edge of the current block, where the prediction direction is from the first reference edge to the second reference side;
步骤202:根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测。Step 202: Perform prediction on the current block according to the reference pixels in the first reference edge and the second reference edge of the current block, and the prediction direction.
在本发明可选择的实施例中,所述第一参考边可以为所述当前块的上相邻块或右上相邻块中的参考象素点的集合,也可以为所述上相邻块和右上相邻块的参考象素点的集合,而所述第二参考边中可以为所述当前块的左相邻块或左下相邻块中的参考像素点的集合,也可以为所述左相邻块和左下相邻块的参考象素点的集合。在其他的实施例中,所述第一参考边也可以为左相邻块或左下相邻块的参考象素点的集合,或者为左相邻块和左下相邻块的参考像素点的集合;所述第二参考边则相应的为上相邻块或右上相邻块的参考像素点的集合,或者上相邻块和右上相邻块的参考像素点的集合。In an optional embodiment of the present invention, the first reference edge may be a set of reference pixel points in an upper adjacent block or an upper right adjacent block of the current block, or may be the upper adjacent block. And a set of reference pixel points in the upper right neighboring block, and the second reference side may be a set of reference pixel points in the left neighboring block or the lower left neighboring block of the current block, or may be A collection of reference pixel points for the left neighboring block and the lower left neighboring block. In other embodiments, the first reference edge may also be a set of reference pixel points of a left neighboring block or a lower left neighboring block, or a set of reference pixel points of a left neighboring block and a lower left neighboring block. The second reference edge is correspondingly a set of reference pixel points of the upper adjacent block or the upper right adjacent block, or a set of reference pixel points of the upper adjacent block and the upper right adjacent block.
本发明实施例所提供的像素预测方法是根据当前块的当前的预测方向,来获得不可用的相邻块的参考像素点的参考像素。The pixel prediction method provided by the embodiment of the present invention is to obtain reference pixels of reference pixel points of adjacent blocks that are not available according to the current prediction direction of the current block.
具体的,请参照图4,假定,所述第一参考边为上相邻块的参考像素点的集合,所述第二参考边为左相邻块的参考像素点的集合,而预测方向从第一参考边指向所述第二参考边,即从右上指向左下方向。在这时候,如果上相邻块不可用,而左相邻块可用,则可以依据所述预测方向,从左相邻块中获得与上相邻块的各参考像素点相对应的参照点的像素值,来作为上相邻块的参考像素值,当然,如果以上相邻块为起点,沿预测方向指向的是可用的左下相邻块,则也可以用左下相邻块的相应的参照点的像素值来作为上相邻块的参考像素。同样的,如果右上相邻块不可用,则也是依据预测方向从当前块的左相邻块和左下相邻块中获得参考像素。Specifically, referring to FIG. 4, it is assumed that the first reference edge is a set of reference pixel points of an upper neighboring block, and the second reference edge is a set of reference pixel points of a left neighboring block, and the prediction direction is from The first reference edge points to the second reference edge, that is, from the upper right to the lower left direction. At this time, if the upper neighboring block is unavailable and the left neighboring block is available, the reference point corresponding to each reference pixel point of the upper neighboring block may be obtained from the left neighboring block according to the prediction direction. The pixel value is used as the reference pixel value of the upper adjacent block. Of course, if the above adjacent block is the starting point and the left lower neighboring block is pointed in the prediction direction, the corresponding reference point of the lower left adjacent block may also be used. The pixel value is used as the reference pixel of the upper adjacent block. Similarly, if the upper right neighboring block is not available, the reference pixels are also obtained from the left neighboring block and the lower left neighboring block of the current block according to the prediction direction.
同理的,当所述第一参考边为左相邻块参考像素点集合,第二参考边为上相邻块参考像素点的集合时,预测方向为从左下指向右上时。如果所述作相邻块对当前块不可用,则以左相邻块的参考象素点为起点,沿所述预测方向,从所述上相邻块中获得相应的参照点的像素值,来作为左相邻块的参考像素。Similarly, when the first reference edge is a left neighboring block reference pixel point set and the second reference edge is a set of upper neighboring block reference pixel points, the prediction direction is from the lower left to the upper right. If the neighboring block is not available to the current block, the pixel value of the corresponding reference point is obtained from the upper neighboring block along the prediction direction starting from the reference pixel point of the left neighboring block. Comes as the reference pixel of the left neighboring block.
虽然本发明实施例是以第一参考边为上相邻块的参考象素点的集合,第二参考边为左相邻块的参考像素点的集合为例进行说明的。不过,需要理解的是,第一参考边也可以为左下相邻块的参考像素点的集合、右上相邻块的参考象素点的集合、左边相邻块和左下相邻块的参考像素点的共同集合、或者上相邻块和右上相邻块的参考像素点的共同集合,第二参考边则相应的为与第一参考边相对的相邻块的参考象素点的集合,但是无论如何,参考像素的获得方法都与图4所示相类似,在此不再一一赘述。In the embodiment of the present invention, the first reference side is a set of reference pixel points of the upper adjacent block, and the second reference side is a set of reference pixel points of the left adjacent block as an example. However, it should be understood that the first reference edge may also be a set of reference pixel points of the lower left adjacent block, a set of reference pixel points of the upper right adjacent block, a reference pixel point of the left adjacent block and the lower left adjacent block. a common set, or a common set of reference pixels of the upper neighboring block and the upper right neighboring block, the second reference edge corresponding to the set of reference pixel points of the neighboring block opposite the first reference edge, but regardless of How to obtain the reference pixels is similar to that shown in Figure 4, and will not be repeated here.
综上,在本发明实施例中,所述步骤202中所述的获得所述当前块的第一参考边和第二参考边中的参考像素还包括:In summary, in the embodiment of the present invention, the obtaining the reference pixels in the first reference edge and the second reference edge of the current block in the
步骤2021:以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。Step 2021: Starting from each reference pixel point on the first reference edge, obtaining, according to the prediction direction, a reference point of each reference pixel on the first reference edge from the second reference edge, and The pixel value of the reference point serves as a reference pixel of the first reference side.
虽然,在讲解本发明实施例所提供的上述实施方案均是以相邻块不可用为前提进行的,但是在相邻块可用时,其实也可以采用本发明实施例所提供的像素预测方法,来根据预测方向从其他相邻块中获得参考像素。在针对某些有特别应用场合也会取得较佳的预测结果。因此,相邻块不可用这一点并不应成为实施本发明实施例所提供的预测方法的限定条件。 The foregoing embodiments of the present invention are provided on the premise that the adjacent blocks are not available. To obtain reference pixels from other neighboring blocks according to the prediction direction. Better predictions are also made for specific applications. Therefore, the fact that adjacent blocks are not available should not be a limiting condition for implementing the prediction method provided by the embodiments of the present invention.
在使用本发明实施例所提供的预测方法的过程中,可能会遇到这样的一种情况,以第一参考边中的某个参考象素点为起点,沿预测方向,在第二参考边中却并不存在相应的参照点,简单点说,就是预测方向偏离了第二参考边。在这种情况下,则可以依照现有技术中采用的“固定值”的方式来解决。不过,本发明同样提供了这种情况下的较佳的解决方案。In the process of using the prediction method provided by the embodiment of the present invention, a situation may be encountered, starting from a certain reference pixel in the first reference edge, along the prediction direction, on the second reference side. There is no corresponding reference point in the middle. Simply put, the prediction direction deviates from the second reference edge. In this case, it can be solved in accordance with the "fixed value" adopted in the prior art. However, the present invention also provides a preferred solution in this case.
请参照图3,在本发明实施例中,所述步骤202还可以包括步骤2022:如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。也就是说,如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。Referring to FIG. 3, in the embodiment of the present invention, the
此外,在一些其他场景中如受限的帧内预测(Constrained Intra Prediction)应用场合,应用本发明提供的帧内像素预测方法,也可以得到不错的效果。In addition, in some other scenarios such as restricted intra prediction (Constrained Intra) In the application, the intra-frame pixel prediction method provided by the present invention can also obtain a good effect.
比如,第一参考边所对应的相邻块中包含了帧间块(inter块),而第二参考边所对应的相邻块中没有包含帧间块。这种情况下,对于CIP而言,不应参考inter块,以提高抗误差扩善的能力,而第二参考边不存在inter块全部为Intra块,则可以参考第二参考边。这样对于CIP应用场合,也完全可以应用本发明提出的方法。具体过程类似,不再赘述。For example, the adjacent block corresponding to the first reference edge includes an inter block (inter block), and the adjacent block corresponding to the second reference edge does not include an inter block. In this case, for the CIP, the inter block should not be referred to to improve the ability to resist error expansion. When the second reference edge does not exist, the inter block is all Intra blocks, and the second reference edge can be referred to. Thus, for the CIP application, the method proposed by the present invention can also be fully applied. The specific process is similar and will not be described again.
此外,即使在第一参考边和第二参考边均可用的情况下,也可以在某些特殊场合应用本发明。Furthermore, the invention can be applied in certain special occasions even in the case where both the first reference side and the second reference side are available.
比如,请参照图5所示,如果当前块为长短不一的矩形块也可以使用本发明实施例所提供的帧内预测方法。假设当前块的在第一参考边延伸方向上的长度小于当前块在第二参考边延伸方向上的长度,在这种情况下,当前块与上相邻块的像素分布的差距要大于当前块与左相邻块的像素分布的差距,因此,通过左相邻块来进行预测或会取得更好的预测效果。也就是说,在这种情况下,当前块与第二参考边的相关性要大于其与第一参考边的相关性,因此可以基于本发明提出的方法,利用第二参考边对当前矩形块进行预测。For example, as shown in FIG. 5, if the current block is a rectangular block of different lengths, the intra prediction method provided by the embodiment of the present invention may also be used. It is assumed that the length of the current block in the direction in which the first reference edge extends is smaller than the length of the current block in the direction in which the second reference edge extends. In this case, the difference between the pixel distribution of the current block and the upper adjacent block is greater than the current block. The difference in pixel distribution from the left neighboring block, therefore, prediction by the left neighboring block may result in better prediction. That is to say, in this case, the correlation between the current block and the second reference edge is greater than its correlation with the first reference edge, so that the current rectangular block can be utilized with the second reference edge based on the method proposed by the present invention. Make predictions.
采用本发明实施例所提供的预测方法,当相邻块不可用、不可参考或当前块为长宽不一的非正方形块时,根据预测方向从可用的或与当前块相似度更高的相邻块中获得参考像素值。由于预测方向与图像中的像素分布的关联性,因此采用本发明实施例所提供的预测方法相对于现有技术中的“固定值”的方法,能够得到更好的编解码效果。According to the prediction method provided by the embodiment of the present invention, when a neighboring block is unavailable, unreferenced, or the current block is a non-square block having different lengths and widths, a phase with higher similarity to the current block is obtained according to the prediction direction. The reference pixel value is obtained in the neighboring block. Due to the correlation between the prediction direction and the pixel distribution in the image, the prediction method provided by the embodiment of the present invention can obtain a better codec effect than the "fixed value" method in the prior art.
请参照图6,图6所示为本发明实施例所提供的用于执行本发明实施例帧内预测方法的帧内预测装置的示意图。本发明实施例所提供的像素预测装置包括:Please refer to FIG. 6. FIG. 6 is a schematic diagram of an intra prediction apparatus for performing an intra prediction method according to an embodiment of the present invention. The pixel prediction apparatus provided in the embodiment of the present invention includes:
预测方向获得模块401,用于获得当前块的预测方向;a prediction
参考像素获得模块402,用于获得得所述当前块的第一参考边和第二参考边中的参考像素;以及a reference
预测模块403,用于根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,The
其中,所述参考像素获得模块402进一步的包括:The reference
参照像素获得子模块4021,用于以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。The reference pixel obtaining sub-module 4021 is configured to obtain, according to each prediction pixel on the first reference edge, a reference pixel point on the first reference edge from the second reference edge along the prediction direction. a reference point, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
进一步的,请参照图7,作为优选的实施例,所述参考像素获得模块402还可以包括相邻参考像素获得子模块4022,用于如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。Further, referring to FIG. 7, as a preferred embodiment, the reference
进一步的,请参照图8,所述参考像素获得模块还可以包括判断子模块4023,用于判断是否满足预设的条件,所述预设的条件包括:所述第一参考边不可用,所述第二参考边可用;或者,所述第一参考边所对应的相邻块中存在帧间块(inter块),而所述第二参考边所对应的相邻快中不存在(inter块);或者,所述当前块沿所述第一参考边延伸方向的长度小于所述当前块沿所述第二参考边延伸方向的长度,Further, referring to FIG. 8, the reference pixel obtaining module may further include a determining sub-module 4023, configured to determine whether a preset condition is met, where the preset condition includes: the first reference edge is unavailable, The second reference edge is available; or, the inter-block (inter block) exists in the neighboring block corresponding to the first reference edge, and the adjacent fast cell corresponding to the second reference edge does not exist (inter block) Or; the length of the current block along the extending direction of the first reference edge is smaller than the length of the current block along the extending direction of the second reference edge,
当满足所述预设的条件之一时,所述参照像素获得子模块以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。When the one of the preset conditions is met, the reference pixel obtaining sub-module takes a reference pixel point on the first reference edge as a starting point, and obtains a second direction from the second reference edge along the prediction direction. A reference point of each reference pixel on the reference edge, and the pixel value of the reference point is used as a reference pixel of the first reference edge.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is considered as the scope of protection of the present invention.
Claims (8)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110057676.0A CN102685473B (en) | 2011-03-10 | 2011-03-10 | Intra-frame prediction method and device |
| CN201110057676.0 | 2011-03-10 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012119571A1 true WO2012119571A1 (en) | 2012-09-13 |
Family
ID=46797512
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2012/072204 Ceased WO2012119571A1 (en) | 2011-03-10 | 2012-03-12 | Intra-frame prediction method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102685473B (en) |
| WO (1) | WO2012119571A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106060564B (en) * | 2016-06-16 | 2019-02-12 | 北京大学深圳研究生院 | Intra-frame prediction reference pixel filtering control method, device and encoder |
| CN110876057B (en) * | 2018-08-29 | 2023-04-18 | 华为技术有限公司 | Inter-frame prediction method and device |
| CN110072112B (en) | 2019-03-12 | 2023-05-12 | 浙江大华技术股份有限公司 | Intra-frame prediction method, encoder and storage device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1812582A (en) * | 2005-01-25 | 2006-08-02 | 中国科学院计算技术研究所 | Frame image brightness predictive coding method |
| CN101133650A (en) * | 2005-04-01 | 2008-02-27 | 松下电器产业株式会社 | Image decoding device and image decoding method |
| US20090201991A1 (en) * | 2008-02-13 | 2009-08-13 | Yong-Hyun Lim | Method for intra prediction coding of image data |
| CN101682781A (en) * | 2008-01-18 | 2010-03-24 | 松下电器产业株式会社 | Image encoding method and image decoding method |
-
2011
- 2011-03-10 CN CN201110057676.0A patent/CN102685473B/en active Active
-
2012
- 2012-03-12 WO PCT/CN2012/072204 patent/WO2012119571A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1812582A (en) * | 2005-01-25 | 2006-08-02 | 中国科学院计算技术研究所 | Frame image brightness predictive coding method |
| CN101133650A (en) * | 2005-04-01 | 2008-02-27 | 松下电器产业株式会社 | Image decoding device and image decoding method |
| CN101682781A (en) * | 2008-01-18 | 2010-03-24 | 松下电器产业株式会社 | Image encoding method and image decoding method |
| US20090201991A1 (en) * | 2008-02-13 | 2009-08-13 | Yong-Hyun Lim | Method for intra prediction coding of image data |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102685473A (en) | 2012-09-19 |
| CN102685473B (en) | 2015-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7650526B2 (en) | Inter-prediction in geometric partitioning using non-rectilinear non-rectangular partitioning. | |
| CN102685477B (en) | Method and device for obtaining image blocks for merging mode | |
| WO2011052897A2 (en) | Method and apparatus for motion vector encoding/decoding using spatial division, and method and apparatus for image encoding/decoding using same | |
| US8204120B2 (en) | Method for intra prediction coding of image data | |
| WO2012097743A1 (en) | Method and device for image encoding and decoding | |
| CN117729327A (en) | Method and apparatus for intra prediction | |
| JP2022523697A (en) | Inter-prediction in geometric divisions with adaptive number regions | |
| US20130301730A1 (en) | Spatial domain prediction encoding method, decoding method, apparatus, and system | |
| WO2017005096A2 (en) | Method and device for encoding multiple video streams | |
| WO2012122948A1 (en) | Method for coding and decoding images, device for coding and decoding images, and network system | |
| WO2012097746A1 (en) | Coding-decoding method and device | |
| CN102685505B (en) | Intra-frame prediction method and prediction device | |
| CN120499377A (en) | Shape-adaptive discrete cosine transform with region number-adaptive geometric partitioning | |
| JP2022526547A (en) | Image processing methods and electronic devices | |
| CN103327327A (en) | Selection method of inter-frame predictive coding units for HEVC | |
| WO2013056577A1 (en) | Intra-frame prediction mode encoder and decoder, method thereof, and electronic device | |
| UA129306C2 (en) | ENCODER, DECODER AND CORRESPONDING METHODS OF ADAPTIVE CONTINUOUS FILTERING | |
| WO2018038316A1 (en) | Method and device for transmitting block division information in image codec for security camera | |
| WO2012119571A1 (en) | Intra-frame prediction method and device | |
| JP4922101B2 (en) | Information processing apparatus and inter prediction mode determination method | |
| CN103237223B (en) | LCU based on entropy divides fast | |
| KR100644620B1 (en) | Video decoding method using post filtering and device therefor | |
| WO2010047492A2 (en) | Moving picture encoder, 2d alignment transformation device and method of image signal for the same, and recording medium therefor | |
| WO2008020470A1 (en) | Decoding method and device | |
| CN118301365A (en) | Video coding method and device based on secondary motion search and electronic equipment |
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: 12755223 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: 12755223 Country of ref document: EP Kind code of ref document: A1 |