[go: up one dir, main page]

WO2012119571A1 - 一种帧内预测方法和装置 - Google Patents

一种帧内预测方法和装置 Download PDF

Info

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
Application number
PCT/CN2012/072204
Other languages
English (en)
French (fr)
Inventor
林永兵
赖昌材
刘凌志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2012119571A1 publication Critical patent/WO2012119571A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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/593Methods 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

一种帧内预测方法和装置
技术领域
本发明涉及视频编解码技术,特别涉及视频编解码技术中的帧内预测方法和装置。
背景技术
视频编码压缩的基本原理是,利用空域、时域和码字之间的相关性,尽可能去除冗余。目前流行的做法是采用基于块的混合视频编码框架,即在编码端通过预测、变换、量化、熵编码等步骤来实现视频编码压,而在解码端则相应的进行这些步骤来还原图像的像素值。其中,预测即为以当前待编码块的相邻图像块的像素值作为当前块的参考像素值,根据参考像素值对当前块的像素值进行预测。
请参照图1,图1所示为目前业界存在的一种编解码方法的示意图,在该预测方法中共给出了33种预测方向,在进行预测时,需要根据这33种预测方向分别从相邻块中获得参考像素来进行预测。但是在实际操作中,往往会遇到当前待编码块的相邻块的像素不能用作当前块的参考像素。目前,这种相邻块的不可用的情况包括:相邻块处于当前块所处的图象的边界外;相邻块与当前块处于不同条带(slice)中;以及在编码端相邻块还未被编码或在解码端相邻块还未被解码。在业界,只要相邻块满足上述的任意一条,则相邻块就被视为不可用,否则相邻块可用。而当用于提供参考像素的相邻块不可用时,业界的解决办法是使用预设的固定值来作为这些不可用的相邻块的参考像素。但是很明显,这种做法没有考虑到图像块间的相关性,很难保证编解码的效果。 
发明内容
本发明提供一种帧内预测方法,包括:获得当前块的预测方向,以及获得所述当前块的第一参考边和第二参考边中的参考像素,其中,所述预测方向为从所述第一参考边指向所述第二参考边;根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测。所述获得所述当前块的第一参考边和第二参考边中的参考像素包括:以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。其中,所述第一参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点,而所述第二参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点;或者,所述第一参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点,而所述第二参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点。
本发明还提供一种帧内预测装置,包括:预测方向获得模块,用于获得当前块的预测方向;参考像素获得模块,用于获得得所述当前块的第一参考边和第二参考边中的参考像素;以及预测模块,用于根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,其中,所述预测方向为从所述第一参考边指向所述第二参考边。所述参考像素获得模块包括:参照像素获得子模块,用于以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
采用本发明实施例所提供的预测方法,当相邻块不可用、不可参考或当前块为长宽不一的非正方形块时,根据预测方向从可用的或与当前块相似度更高的相邻块中获得参考像素值。由于预测方向与图像中的像素分布的关联性,因此采用本发明实施例所提供的预测方法相对于现有技术中的“固定值”的方法,能够得到更好的编解码效果。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1所示为现有技术中的编解码方法的示意图。
图2所示为本发明实施例所提供的帧内预测方法的示意图。
图3所示为本发明优选实施例所提供的帧内预测方法的示意图。
图4所示为本发明实施例所提供的帧内预测方法的应用示图。
图5所示为本发明实施例所提供的帧内预测方法的又一应用示图。
图6所示为本发明实施例所提供的帧内预测装置的示意图。
图7所示为本发明优选实施例所提供的帧内预测装置的示意图。
图8所示为本发明又一优选实施例所提供的帧内预测装置的示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参照图2,图2所示为本发明实施例所提供的预测方法的示意图。本发明实施例所提供的帧内预测方法包括:
步骤201:获得当前块的预测方向,以及所述当前块的第一参考边和第二参考边中的参考像素,其中,所述预测方向为从所述第一参考边指向所述第二参考边;
步骤202:根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测。
在本发明可选择的实施例中,所述第一参考边可以为所述当前块的上相邻块或右上相邻块中的参考象素点的集合,也可以为所述上相邻块和右上相邻块的参考象素点的集合,而所述第二参考边中可以为所述当前块的左相邻块或左下相邻块中的参考像素点的集合,也可以为所述左相邻块和左下相邻块的参考象素点的集合。在其他的实施例中,所述第一参考边也可以为左相邻块或左下相邻块的参考象素点的集合,或者为左相邻块和左下相邻块的参考像素点的集合;所述第二参考边则相应的为上相邻块或右上相邻块的参考像素点的集合,或者上相邻块和右上相邻块的参考像素点的集合。
本发明实施例所提供的像素预测方法是根据当前块的当前的预测方向,来获得不可用的相邻块的参考像素点的参考像素。
具体的,请参照图4,假定,所述第一参考边为上相邻块的参考像素点的集合,所述第二参考边为左相邻块的参考像素点的集合,而预测方向从第一参考边指向所述第二参考边,即从右上指向左下方向。在这时候,如果上相邻块不可用,而左相邻块可用,则可以依据所述预测方向,从左相邻块中获得与上相邻块的各参考像素点相对应的参照点的像素值,来作为上相邻块的参考像素值,当然,如果以上相邻块为起点,沿预测方向指向的是可用的左下相邻块,则也可以用左下相邻块的相应的参照点的像素值来作为上相邻块的参考像素。同样的,如果右上相邻块不可用,则也是依据预测方向从当前块的左相邻块和左下相邻块中获得参考像素。
同理的,当所述第一参考边为左相邻块参考像素点集合,第二参考边为上相邻块参考像素点的集合时,预测方向为从左下指向右上时。如果所述作相邻块对当前块不可用,则以左相邻块的参考象素点为起点,沿所述预测方向,从所述上相邻块中获得相应的参照点的像素值,来作为左相邻块的参考像素。
虽然本发明实施例是以第一参考边为上相邻块的参考象素点的集合,第二参考边为左相邻块的参考像素点的集合为例进行说明的。不过,需要理解的是,第一参考边也可以为左下相邻块的参考像素点的集合、右上相邻块的参考象素点的集合、左边相邻块和左下相邻块的参考像素点的共同集合、或者上相邻块和右上相邻块的参考像素点的共同集合,第二参考边则相应的为与第一参考边相对的相邻块的参考象素点的集合,但是无论如何,参考像素的获得方法都与图4所示相类似,在此不再一一赘述。
综上,在本发明实施例中,所述步骤202中所述的获得所述当前块的第一参考边和第二参考边中的参考像素还包括:
步骤2021:以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
虽然,在讲解本发明实施例所提供的上述实施方案均是以相邻块不可用为前提进行的,但是在相邻块可用时,其实也可以采用本发明实施例所提供的像素预测方法,来根据预测方向从其他相邻块中获得参考像素。在针对某些有特别应用场合也会取得较佳的预测结果。因此,相邻块不可用这一点并不应成为实施本发明实施例所提供的预测方法的限定条件。
在使用本发明实施例所提供的预测方法的过程中,可能会遇到这样的一种情况,以第一参考边中的某个参考象素点为起点,沿预测方向,在第二参考边中却并不存在相应的参照点,简单点说,就是预测方向偏离了第二参考边。在这种情况下,则可以依照现有技术中采用的“固定值”的方式来解决。不过,本发明同样提供了这种情况下的较佳的解决方案。
请参照图3,在本发明实施例中,所述步骤202还可以包括步骤2022:如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。也就是说,如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。
此外,在一些其他场景中如受限的帧内预测(Constrained Intra Prediction)应用场合,应用本发明提供的帧内像素预测方法,也可以得到不错的效果。
比如,第一参考边所对应的相邻块中包含了帧间块(inter块),而第二参考边所对应的相邻块中没有包含帧间块。这种情况下,对于CIP而言,不应参考inter块,以提高抗误差扩善的能力,而第二参考边不存在inter块全部为Intra块,则可以参考第二参考边。这样对于CIP应用场合,也完全可以应用本发明提出的方法。具体过程类似,不再赘述。
此外,即使在第一参考边和第二参考边均可用的情况下,也可以在某些特殊场合应用本发明。
比如,请参照图5所示,如果当前块为长短不一的矩形块也可以使用本发明实施例所提供的帧内预测方法。假设当前块的在第一参考边延伸方向上的长度小于当前块在第二参考边延伸方向上的长度,在这种情况下,当前块与上相邻块的像素分布的差距要大于当前块与左相邻块的像素分布的差距,因此,通过左相邻块来进行预测或会取得更好的预测效果。也就是说,在这种情况下,当前块与第二参考边的相关性要大于其与第一参考边的相关性,因此可以基于本发明提出的方法,利用第二参考边对当前矩形块进行预测。
采用本发明实施例所提供的预测方法,当相邻块不可用、不可参考或当前块为长宽不一的非正方形块时,根据预测方向从可用的或与当前块相似度更高的相邻块中获得参考像素值。由于预测方向与图像中的像素分布的关联性,因此采用本发明实施例所提供的预测方法相对于现有技术中的“固定值”的方法,能够得到更好的编解码效果。
请参照图6,图6所示为本发明实施例所提供的用于执行本发明实施例帧内预测方法的帧内预测装置的示意图。本发明实施例所提供的像素预测装置包括:
预测方向获得模块401,用于获得当前块的预测方向;
参考像素获得模块402,用于获得得所述当前块的第一参考边和第二参考边中的参考像素;以及
预测模块403,用于根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,
其中,所述参考像素获得模块402进一步的包括:
参照像素获得子模块4021,用于以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
进一步的,请参照图7,作为优选的实施例,所述参考像素获得模块402还可以包括相邻参考像素获得子模块4022,用于如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。
进一步的,请参照图8,所述参考像素获得模块还可以包括判断子模块4023,用于判断是否满足预设的条件,所述预设的条件包括:所述第一参考边不可用,所述第二参考边可用;或者,所述第一参考边所对应的相邻块中存在帧间块(inter块),而所述第二参考边所对应的相邻快中不存在(inter块);或者,所述当前块沿所述第一参考边延伸方向的长度小于所述当前块沿所述第二参考边延伸方向的长度,
当满足所述预设的条件之一时,所述参照像素获得子模块以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (8)

  1. 一种帧内预测方法,包括:
    获得当前块的预测方向,以及获得所述当前块的第一参考边和第二参考边中的参考像素,其中,所述预测方向为从所述第一参考边指向所述第二参考边;
    根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,
    其特征在于,所述获得所述当前块的第一参考边和第二参考边中的参考像素包括:
    以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素,
    其中,所述第一参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点,而所述第二参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点;或者,所述第一参考边中包括所述当前块的左相邻块或左下相邻块中的参考像素点,而所述第二参考边中包括所述当前块的上相邻块或右上相邻块中的参考像素点。
  2. 如权利要求1中所述的帧内预测方法,其特征在于,所述获得所述当前块的第一参考边和第二参考边中的参考像素还包括:
    如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。
  3. 如权利要求2中所述的帧内预测方法,其特征在于,所述第二参考像素的参考像素为沿所述预测方向从所述第二参考边上的参照点中获得的。
  4. 如权利要求1中所述的帧内预测方法,其特征在于,所述以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点包括:
    判断是否满足预设的条件,其中,所述预设的条件包括:所述第一参考边不可用,所述第二参考边可用;或者,所述第一参考边所对应的相邻块中存在帧间块(inter块),而所述第二参考边所对应的相邻快中不存在(inter块);或者,所述当前块在所述第一参考边延伸方向上的长度小于所述当前块在所述第二参考边延伸方向上的长度;
    当判断满足所述预设的条件之一时,以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点。
  5. 一种帧内预测装置,包括:
    预测方向获得模块,用于获得当前块的预测方向;
    参考像素获得模块,用于获得得所述当前块的第一参考边和第二参考边中的参考像素;以及
    预测模块,用于根据所述当前块的第一参考边和第二参考边中的参考像素,以及所述预测方向对所述当前块进行预测,
    其中,所述预测方向为从所述第一参考边指向所述第二参考边,
    其特征在于,所述参考像素获得模块包括:
    参照像素获得子模块,用于以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
  6. 如权利要求5中所述的帧内预测装置,其特征在于,所述参考像素获得模块还包括:
    相邻参考像素获得子模块,用于如果所述第一参考边上的第一参考像素点沿所述预测方向无法从所述第二参考边上获得参照点时,则将所述第一参考边上的与所述第一参考像素点相邻的第二参考像素点的参考像素作为所述第一参考像素点的参考像素。
  7. 如权利要求6中所述的帧内预测装置,其特征在于,所述第二参考像素的参考像素为沿所述预测方向从所述第二参考边上的参照点中获得的。
  8. 如权利要求5中所述的帧内预测装置,其特征在于,所述参考像素获得模块还包括判断子模块,用于判断是否满足预设的条件,所述预设的条件包括:所述第一参考边不可用,所述第二参考边可用;或者,所述第一参考边所对应的相邻块中存在帧间块(inter块),而所述第二参考边所对应的相邻快中不存在(inter块);或者,所述当前块沿所述第一参考边延伸方向的长度小于所述当前块沿所述第二参考边延伸方向的长度,
    当满足所述预设的条件之一时,所述参照像素获得子模块以所述第一参考边上的各参考像素点为起点,沿所述预测方向,从所述第二参考边中获得第一参考边上的各参考像素点的参照点,并将所述参照点的像素值作为所述第一参考边的参考像素。
PCT/CN2012/072204 2011-03-10 2012-03-12 一种帧内预测方法和装置 Ceased WO2012119571A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110057676.0A CN102685473B (zh) 2011-03-10 2011-03-10 一种帧内预测方法和装置
CN201110057676.0 2011-03-10

Publications (1)

Publication Number Publication Date
WO2012119571A1 true WO2012119571A1 (zh) 2012-09-13

Family

ID=46797512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072204 Ceased WO2012119571A1 (zh) 2011-03-10 2012-03-12 一种帧内预测方法和装置

Country Status (2)

Country Link
CN (1) CN102685473B (zh)
WO (1) WO2012119571A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060564B (zh) * 2016-06-16 2019-02-12 北京大学深圳研究生院 帧内预测参考像素点滤波控制方法、装置及编码器
CN110876057B (zh) * 2018-08-29 2023-04-18 华为技术有限公司 一种帧间预测的方法及装置
CN110072112B (zh) 2019-03-12 2023-05-12 浙江大华技术股份有限公司 帧内预测方法、编码器及存储装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812582A (zh) * 2005-01-25 2006-08-02 中国科学院计算技术研究所 一种帧内图像的亮度预测编码方法
CN101133650A (zh) * 2005-04-01 2008-02-27 松下电器产业株式会社 图像解码装置以及图像解码方法
US20090201991A1 (en) * 2008-02-13 2009-08-13 Yong-Hyun Lim Method for intra prediction coding of image data
CN101682781A (zh) * 2008-01-18 2010-03-24 松下电器产业株式会社 图像编码方法以及图像解码方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812582A (zh) * 2005-01-25 2006-08-02 中国科学院计算技术研究所 一种帧内图像的亮度预测编码方法
CN101133650A (zh) * 2005-04-01 2008-02-27 松下电器产业株式会社 图像解码装置以及图像解码方法
CN101682781A (zh) * 2008-01-18 2010-03-24 松下电器产业株式会社 图像编码方法以及图像解码方法
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 (zh) 2012-09-19
CN102685473B (zh) 2015-03-25

Similar Documents

Publication Publication Date Title
JP7650526B2 (ja) 非直線の非長方形分割を用いた幾何学的分割におけるインター予測
CN102685477B (zh) 获取用于合并模式的图像块的方法和设备
CN103975599B (zh) 图像编码以及解码方法、装置、程序
WO2011052897A2 (ko) 공간 분할을 이용한 움직임 벡터 부호화/복호화 방법 및 장치와 그를 이용한 영상 부호화/복호화 방법 및 장치
US8204120B2 (en) Method for intra prediction coding of image data
WO2012097743A1 (zh) 图像编解码方法及编解码设备
JP2022523697A (ja) 適応的な数の領域を伴う幾何学的分割におけるインター予測
US20130301730A1 (en) Spatial domain prediction encoding method, decoding method, apparatus, and system
WO2012122948A1 (zh) 图像编解码方法、图像编解码设备及网络系统
CN108353175A (zh) 使用系数引起的预测处理视频信号的方法和装置
WO2012097746A1 (zh) 一种编解码方法和装置
CN102685505B (zh) 帧内预测的方法和预测装置
CN120499377A (zh) 具有区域数自适应的几何划分的形状自适应离散余弦变换
JP2022526547A (ja) 画像処理方法および電子デバイス
CN103327327A (zh) 用于高性能视频编码hevc的帧间预测编码单元选择方法
WO2018038316A1 (ko) 보안 카메라용 영상 코덱에서 블록 분할 정보 전송 방법 및 장치
WO2012119571A1 (zh) 一种帧内预测方法和装置
JP4922101B2 (ja) 情報処理装置およびインター予測モード判定方法
CN103079072A (zh) 帧间预测方法、编码设备和解码设备
KR100644620B1 (ko) 포스트 필터링을 적용한 동영상 디코딩 방법 및 그 장치
WO2010047492A2 (ko) 동영상 부호화 장치 및 이를 위한 영상 신호의 2차원 정렬 변환 장치 및 방법, 및 이를 위한 기록 매체
WO2008020470A1 (fr) Procédé et dispositif de décodage
CN118301365A (zh) 基于二次运动搜索的视频编码方法、装置和电子设备
WO2014006959A1 (ja) 動画像予測符号化装置、動画像予測符号化方法、動画像予測符号化プログラム、動画像予測復号装置、動画像予測復号方法及び動画像予測復号プログラム
CN102625109A (zh) 一种基于多核处理器实现的mpeg-2至h.264的转码方法

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