[go: up one dir, main page]

CN101692712B - Error concealment method based on state of signal channel and visual perception side information - Google Patents

Error concealment method based on state of signal channel and visual perception side information Download PDF

Info

Publication number
CN101692712B
CN101692712B CN 200910153560 CN200910153560A CN101692712B CN 101692712 B CN101692712 B CN 101692712B CN 200910153560 CN200910153560 CN 200910153560 CN 200910153560 A CN200910153560 A CN 200910153560A CN 101692712 B CN101692712 B CN 101692712B
Authority
CN
China
Prior art keywords
macroblock
error
adjacent
weight value
reconstruction
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.)
Expired - Fee Related
Application number
CN 200910153560
Other languages
Chinese (zh)
Other versions
CN101692712A (en
Inventor
马汉杰
陈耀武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 200910153560 priority Critical patent/CN101692712B/en
Publication of CN101692712A publication Critical patent/CN101692712A/en
Application granted granted Critical
Publication of CN101692712B publication Critical patent/CN101692712B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明涉及数字视频信号压缩传输领域,公开了一种基于信道状态和视觉感知边信息的错误掩盖方法,主要是利用当前信道状态信息和以边信息形式传输的视觉感知权重图,计算相邻宏块的可靠性权重和重建权重,对不同编码类型的错误视频图像分别进行空间域和时间域上的错误掩盖处理,提高易错传输条件下的视频解码图像质量。

Figure 200910153560

The invention relates to the field of digital video signal compression transmission, and discloses an error concealment method based on channel state and visual perception side information, which mainly uses the current channel state information and the visual perception weight map transmitted in the form of side information to calculate the adjacent macro The reliability weight and reconstruction weight of the block are used to cover the error video images of different encoding types in the space domain and time domain respectively, so as to improve the video decoding image quality under error-prone transmission conditions.

Figure 200910153560

Description

基于信道状态和视觉感知边信息的错误掩盖方法 An Error Concealment Method Based on Channel State and Visual Perceptual Side Information

技术领域technical field

本发明涉及数字视频信号压缩传输领域,具体来说是一种利用错误掩盖技术提高易错传输条件下视频解码图像质量的方法。The invention relates to the field of digital video signal compression transmission, in particular to a method for improving video decoding image quality under error-prone transmission conditions by using error concealment technology.

背景技术Background technique

错误掩盖方法是在视频码流在传输过程种出现错误以后,视频解码器根据视频图像信号自身特性来恢复受损区域数据,提高视频图像质量的一种方法。视频图像数据以低频分量为主,除了剧烈的场景切换以及明显的边缘区域外,时间域和空间域上相邻视频图像的亮度和色度数值变化比较平稳,因此视频图像数据在时间域和空间域上具有平滑性。另一方面,人眼对不同视频图像的注意度是不同的,相对于低频分量,对于高频分量失真人眼更不容易察觉。错误掩盖方法就是根据视频图像的平滑性以及人眼的视觉感知特性,利用近似原始视频图像的数据来掩盖受损的错误视频图像数据,减缓错误时间和空间上的扩散和蔓延,从而提高视频解码图像质量。错误掩盖方法通常在解码端使用,不会引入延迟,不需要额外的带宽。The error concealment method is a method for the video decoder to restore the data of the damaged area according to the characteristics of the video image signal itself and improve the quality of the video image after an error occurs in the video code stream during transmission. Video image data is dominated by low-frequency components. Except for violent scene switching and obvious edge areas, the brightness and chrominance values of adjacent video images in the time and space domains change relatively smoothly, so the video image data in the time domain and space domain smoothness. On the other hand, human eyes pay different attention to different video images, and compared with low frequency components, human eyes are less likely to detect distortion of high frequency components. The error concealment method is based on the smoothness of the video image and the visual perception characteristics of the human eye, using data similar to the original video image to cover up the damaged error video image data, slowing down the spread and spread of errors in time and space, thereby improving video decoding. Image Quality. The error concealment method is usually used on the decoding side, does not introduce delay, and does not require additional bandwidth.

视频码流出错后,视频解码器通常采用基于像素插值和运动补偿的错误掩盖方法,以减小码流出错对解码视频图像质量的影响。这种错误掩盖方法利用视频图像在空间域和时间域上的平滑特性,根据相邻宏块信息来重建当前出错宏块。这些相邻宏块包括正确解码的宏块和经过错误掩盖而重建的宏块。因此,在使用相邻宏块对错误宏块进行重建时,这些相邻宏块应该被赋予不同的可靠性权重值。After the video code stream is wrong, the video decoder usually adopts an error concealment method based on pixel interpolation and motion compensation to reduce the impact of the code stream error on the quality of the decoded video image. This error concealment method utilizes the smoothness property of the video image in the space domain and the time domain, and reconstructs the current erroneous macroblock according to the information of adjacent macroblocks. These neighboring macroblocks include correctly decoded macroblocks and reconstructed macroblocks with error concealment. Therefore, when using adjacent macroblocks to reconstruct an erroneous macroblock, these adjacent macroblocks should be given different reliability weight values.

而且,当视频码流由于丢包或误码而出错时,当前的错误掩盖方法只是简单的利用视频图像的平滑特性,没有考虑视频编码图像的内容,因此在视频图像细节和主观质量上的效果较差。Moreover, when the video code stream is wrong due to packet loss or bit error, the current error concealment method simply utilizes the smoothness of the video image without considering the content of the video coded image, so the effect on the details and subjective quality of the video image poor.

发明内容Contents of the invention

本发明提供了一种基于信道状态和视觉感知边信息的错误掩盖方法,主要是利用当前信道状态信息和以边信息形式传输的视觉感知权重图,计算相邻宏块的可靠性权重和重建权重,对不同编码类型的错误视频图像分别进行空间域和时间域上的错误掩盖处理,提高易错传输条件下的视频解码图像质量。The present invention provides an error concealment method based on channel state and visual perception side information, which mainly uses the current channel state information and the visual perception weight map transmitted in the form of side information to calculate the reliability weight and reconstruction weight of adjacent macroblocks , respectively perform error concealment processing on the space domain and time domain for error video images of different coding types, and improve the video decoding image quality under error-prone transmission conditions.

一种基于信道状态和视觉感知边信息的错误掩盖方法,从网络接收视频码流和边信息数据后,对视频编码类型为帧内编码或帧间编码的含有出错宏块的错误图像进行处理,包括以下步骤:An error concealment method based on channel state and visual perception side information, after receiving video code stream and side information data from the network, the video encoding type is intra-frame coding or inter-frame coding error image containing error macroblocks, Include the following steps:

(1)根据当前信道状态信息中的丢包率计算出错宏块的相邻宏块的可靠性权重值;(1) Calculate the reliability weight value of the adjacent macroblock of the erroneous macroblock according to the packet loss rate in the current channel state information;

由于所述的视频码流和边信息均是从网络接收,那么当前网络的状态也在一定程度上影响所读入数据的准确性,必须同时获取当前网络的状态信息,才能实现本发明错误掩盖方法。所述的当前信道状态信息就是指当前网络的状态信息。Since the video code stream and side information are both received from the network, the current network status also affects the accuracy of the read data to a certain extent, and the status information of the current network must be obtained at the same time to realize the error concealment of the present invention method. The current channel state information refers to the state information of the current network.

其中所述的宏块是指长与宽相等的正方形像素区域块;利用现有技术对读取的视频码流进行解码后可以查找判断出错宏块,接下来以该出错宏块作为当前宏块进行错误掩盖。Wherein the macroblock refers to a square pixel area block with equal length and width; after decoding the read video code stream, the existing technology can be used to find and judge the error macroblock, and then use the error macroblock as the current macroblock Perform error masking.

所述相邻宏块是指当前宏块上、下、左、右四个方向上边界相邻的宏块。重建宏块的失真与其可靠性是成反比的,失真越大,可靠性越小,反之亦然。而视频解码图像中由于丢包或误码而造成的失真可以用丢包率来预测,因此重建宏块的可靠性也可用丢包率来描述。另一方面,错误掩盖方法需要采用相邻宏块数据来重建出错的宏块,因此重建宏块的可靠性与相邻宏块的可靠性相关。The adjacent macroblocks refer to macroblocks with borders adjacent to the current macroblock in the four directions above, below, left and right. The distortion of the reconstructed macroblock is inversely proportional to its reliability, the greater the distortion, the lower the reliability, and vice versa. The distortion caused by packet loss or bit error in the video decoding image can be predicted by the packet loss rate, so the reliability of reconstructed macroblocks can also be described by the packet loss rate. On the other hand, the error concealment method needs to use the adjacent macroblock data to reconstruct the erroneous macroblock, so the reliability of the reconstructed macroblock is related to the reliability of the adjacent macroblock.

所述的根据当前信道状态信息中的丢包率计算相邻宏块的可靠性权重值,其计算式为:According to the packet loss rate in the current channel state information, the reliability weight value of the adjacent macroblock is calculated, and its calculation formula is:

Wreliability=avg{Wreliability(dir)}(1-P) ,dir∈{top,left,bottom,right}W reliability = avg{W reliability (dir)}(1-P), dir ∈ {top, left, bottom, right}

                                                                        (1) (1)

式中,Wreliability表示宏块的可靠性权重值,dir表示上、下、左、右四个相邻宏块,P表示当前信道的丢包率。In the formula, W reliability represents the reliability weight value of the macroblock, dir represents the upper, lower, left and right adjacent macroblocks, and P represents the packet loss rate of the current channel.

式中求出上、下、左、右四个相邻宏块可靠性权重值的平均值,再乘以(1-P),得到宏块的可靠性权重值。In the formula, calculate the average value of the reliability weight values of the upper, lower, left and right adjacent macroblocks, and then multiply it by (1-P) to obtain the reliability weight value of the macroblock.

就任意一个相邻宏块而言,其可靠性权重值确定方法如下:As far as any adjacent macroblock is concerned, the method for determining its reliability weight value is as follows:

a)若宏块数据正确接收(可以通过解码器来判断),则其可靠性权重值为1;a) If the macroblock data is received correctly (can be judged by the decoder), its reliability weight value is 1;

b)若宏块数据出错且没有对其进行过错误掩盖,则其可靠性权重值为0;b) If there is an error in the macroblock data and no error concealment has been performed on it, its reliability weight value is 0;

c)若宏块数据出错,但是已经对其进行过错误掩盖,则其可靠性权重值通过式(1)来计算得到,这里要说明是这是一个迭代计算的过程,由于本发明方法中是对读入的宏块依次进行处理,只要首个宏块数据可以正确接收,那么随后的出错宏块均可以通过式(1)的迭代计算得到其可靠性权重值。c) If the macroblock data is wrong, but it has been covered up, its reliability weight value is calculated by formula (1). Here, it will be explained that this is an iterative calculation process, because in the method of the present invention is The read-in macroblocks are processed sequentially. As long as the data of the first macroblock can be received correctly, the subsequent error macroblocks can obtain their reliability weight values through the iterative calculation of formula (1).

(2)选择参与重建的相邻宏块;(2) Select adjacent macroblocks to participate in reconstruction;

错误掩盖方法需要足够的相邻宏块的边界像素数据。首先,判断相邻宏块中正确解码宏块是否满足条件。若满足条件,则仅用正确解码的邻宏块进行错误宏块的恢复;若不满足条件,则还要选择相邻宏块中已经经过错误掩盖的宏块进行错误宏块的恢复。一旦相邻宏块的可靠性权重值Wreliability累加超过阈值Δreliability时,表明参与重建错误宏块的相邻宏块已经足够,不需要再增加其他的相邻宏块。The error concealment method requires sufficient boundary pixel data of adjacent macroblocks. First, it is judged whether the correctly decoded macroblock in the adjacent macroblock satisfies the condition. If the condition is satisfied, only correctly decoded adjacent macroblocks are used to restore the error macroblock; if the condition is not satisfied, the error-concealed macroblock among the adjacent macroblocks is selected to restore the error macroblock. Once the accumulation of reliability weight values W reliability of adjacent macroblocks exceeds the threshold Δ reliability , it indicates that the adjacent macroblocks involved in reconstructing the error macroblock are sufficient, and no other adjacent macroblocks need to be added.

该过程可用式(2)描述This process can be described by formula (2)

ΣΣ dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} WW reliabilityreliability (( dirdir )) ≥&Greater Equal; ΔΔ reliabilityreliability -- -- -- (( 22 ))

Δreliability值越高,尽管错误掩盖效果好,但计算量越大,一般情况Δreliability值可设为2。The higher the value of Δ reliability , the better the effect of error concealment, but the greater the amount of calculation. In general, the value of Δ reliability can be set to 2.

本步骤在选择参与重建的相邻宏块时,按照步骤(1)中从网络接收视频码流时的顺序,优先考虑先读入的宏块。In this step, when selecting adjacent macroblocks to participate in reconstruction, the macroblocks read in first are given priority in accordance with the sequence when the video code stream is received from the network in step (1).

(3)从边信息中提出视觉感知权重图。所述的视觉感知权重图是指以宏块为单位的视觉感知权重矩阵。(3) A visual perceptual weight map is proposed from side information. The visual perception weight map refers to a visual perception weight matrix in units of macroblocks.

所述的从边信息中提出视觉感知权重图时,以边信息中的每一个字节的数据作为一个视觉感知权重值,对所有的视觉感知权重值进行组合得到视觉感知权重图,其中每一个视觉感知权重值对应视觉感知权重矩阵中的一个宏块。When the visual perception weight map is proposed from the side information, the data of each byte in the side information is used as a visual perception weight value, and all the visual perception weight values are combined to obtain the visual perception weight map, wherein each The visual perception weight value corresponds to a macroblock in the visual perception weight matrix.

(4)根据视觉感知权重图计算相邻宏块的重建权重值;所述的重建权重值是指错误掩盖中相邻宏块参与错误宏块重建的权重值。(4) Calculate the reconstruction weight value of the adjacent macroblock according to the visual perception weight map; the reconstruction weight value refers to the weight value of the adjacent macroblock participating in the reconstruction of the error macroblock in the error concealment.

各个相邻宏块的视觉感知权重与当前错误宏块的视觉感知权重可能是不同的,也就是说,各个相邻宏块与当前出错宏块在主观质量上的相关性可能是不同的。因此,当根据视频图像信号的平滑性作错误掩盖时,应该按相邻宏块与当前出错宏块的视觉感知权重相关性计算其在错误掩盖方法中的重建权重值。当相邻宏块与当前出错宏块的视觉感知权重值相差较小时,相邻宏块在错误掩盖方法中的重建权重值较大;反之,相邻宏块与当前出错宏块的视觉感知权重值相差较大时,相邻宏块在错误掩盖方法中的重建权重值较小。The visual perception weight of each adjacent macroblock may be different from the visual perception weight of the current error macroblock, that is, the correlation between each adjacent macroblock and the current error macroblock in terms of subjective quality may be different. Therefore, when performing error concealment according to the smoothness of the video image signal, the reconstruction weight value in the error concealment method should be calculated according to the visual perception weight correlation between the adjacent macroblock and the current error macroblock. When the difference between the visual perception weight value of the adjacent macroblock and the current error macroblock is small, the reconstruction weight value of the adjacent macroblock in the error concealment method is larger; otherwise, the visual perception weight value of the adjacent macroblock and the current error macroblock When the value difference is large, the reconstruction weight value of adjacent macroblocks in the error concealment method is small.

(5)对视频码流进行解析并获取错误图像的视频编码类型,如帧内编码或帧间编码类型;(5) Analyze the video code stream and obtain the video encoding type of the wrong image, such as intra-frame encoding or inter-frame encoding;

(6)若错误图像类型为帧内编码,采用像素加权插值的空间域错误掩盖方法;(6) If the error image type is intra-frame coding, a space-domain error concealment method using pixel weighted interpolation;

利用视频图像数据空间域上的冗余,选择合适的相邻宏块,以像素为单位,根据相邻宏块重建权重值以及与距离权重值,采用插值方法实现空间域的错误掩盖方法。Utilize the redundancy in the space domain of video image data, select the appropriate adjacent macroblocks, use pixels as the unit, reconstruct the weight value and the distance weight value according to the adjacent macroblocks, and use the interpolation method to realize the error concealment method in the space domain.

若错误图像类型为帧间编码,采用基于边界失真匹配的时间域错误掩盖方法;If the error image type is inter-frame coding, a time-domain error concealment method based on boundary distortion matching is adopted;

利用视频图像数据时间域上的冗余,根据参考帧的视频图像数据重建当前帧的错误视频图像数据,从参与重建的相邻宏块的运动矢量中选择最合适的运动矢量作为错误宏块的运动矢量,选择准则是使亮度分量的边界匹配失真最小。Using the redundancy of video image data in the time domain, the error video image data of the current frame is reconstructed according to the video image data of the reference frame, and the most suitable motion vector is selected from the motion vectors of adjacent macroblocks participating in the reconstruction as the error macroblock. Motion vector, the selection criterion is to minimize the boundary matching distortion of the luminance component.

本发明根据当前传输视频码流的信道状态信息和视频编码图像内容,选择参与重建错误图像的相邻宏块数据并调整其权重值,因此能够准确的重建错误宏块,提高错误掩盖效果。According to the channel state information of the currently transmitted video code stream and the content of the video coded image, the present invention selects the adjacent macroblock data involved in reconstructing the error image and adjusts its weight value, so that the error macroblock can be accurately reconstructed and the error concealment effect is improved.

附图说明Description of drawings

图1为本发明错误掩盖方法的流程图;Fig. 1 is the flowchart of the error concealment method of the present invention;

具体实施方式Detailed ways

下面结合附图,对本发明基于信道状态和视觉感知边信息的错误掩盖方法进行详细说明。The error concealment method based on the channel state and visual perception side information of the present invention will be described in detail below with reference to the accompanying drawings.

参见图1,从网络接收视频码流和边信息数据,从边信息中获取视觉感知图,根据视觉感知权重图计算相邻宏块的重建权重值;相邻宏块的可靠性权重值根据信道状态信息中的丢包率进行计算;根据可靠性权重值选取参与重建的相邻宏块;从视频解码器中获取错误图像的视频编码类型;根据错误图像的视频编码类型,利用相邻宏块数据,分别进行像素加权插值的空间域错误掩盖和基于边界匹配失真运动补偿的时间域错误掩盖。Referring to Figure 1, the video code stream and side information data are received from the network, the visual perception map is obtained from the side information, and the reconstruction weight value of the adjacent macroblock is calculated according to the visual perception weight map; the reliability weight value of the adjacent macroblock is calculated according to the channel Calculate the packet loss rate in the state information; select the adjacent macroblocks involved in the reconstruction according to the reliability weight value; obtain the video coding type of the error image from the video decoder; according to the video coding type of the error image, use the adjacent macroblock Data, the spatial domain error concealment based on pixel weighted interpolation and the time domain error concealment based on boundary matching distortion motion compensation are respectively performed.

所述基于信道状态和视觉感知边信息的错误掩盖方法,从网络接收视频码流和边信息数据后,对视频编码类型为帧内编码或帧间编码的含有出错宏块的错误图像进行处理,包括以下步骤;The error concealment method based on channel state and visual perception side information, after receiving the video code stream and side information data from the network, processes the erroneous image containing the erroneous macroblock whose video coding type is intra-frame coding or inter-frame coding, Include the following steps;

(1)根据信道状态信息中的丢包率计算出错宏块的相邻宏块的可靠性权重值;其中所述的宏块是指长和宽均为16像素的正方形像素区域块;所述相邻宏块是指当前宏块上、下、左、右四个方向上边界相邻的宏块;(1) Calculate the reliability weight value of the adjacent macroblock of the erroneous macroblock according to the packet loss rate in the channel state information; wherein said macroblock refers to a square pixel area block whose length and width are 16 pixels; said Adjacent macroblocks refer to the macroblocks with adjacent borders in the four directions of the current macroblock, up, down, left, and right;

可靠性权重值计算如式(1)所示:The calculation of the reliability weight value is shown in formula (1):

Wreliability=avg{Wreliability(dir)}(1-P),dir∈{top,left,bottom,right}W reliability = avg{W reliability (dir)}(1-P), dir ∈ {top, left, bottom, right}

                                                                       (1) (1)

式中,Wreliability表示重建宏块的可靠性权重值,dir表示上、下、左、右四个相邻宏块,P表示当前信道的丢包率。In the formula, W reliability represents the reliability weight value of the reconstructed macroblock, dir represents the upper, lower, left and right adjacent macroblocks, and P represents the packet loss rate of the current channel.

就任意一个相邻宏块而言,其可靠性权重值确定方法如下:As far as any adjacent macroblock is concerned, the method for determining its reliability weight value is as follows:

a)若宏块数据正确接收(可以通过解码器来判断),则其可靠性权重值为1;a) If the macroblock data is received correctly (can be judged by the decoder), its reliability weight value is 1;

b)若宏块数据出错且没有对其进行过错误掩盖,则其可靠性权重值为0;b) If there is an error in the macroblock data and no error concealment has been performed on it, its reliability weight value is 0;

c)若宏块数据出错,但是已经对其进行过错误掩盖,则其可靠性权重值通过式(1)来计算得到,这里要说明是这是一个迭代计算的过程,由于本发明方法中是对读入的宏块依次进行处理,只要首个宏块数据可以正确接收,那么随后的出错宏块均可以通过式(1)的迭代计算得到其可靠性权重值。c) If the macroblock data is wrong, but it has been covered up, its reliability weight value is calculated by formula (1). Here, it will be explained that this is an iterative calculation process, because in the method of the present invention is The read-in macroblocks are processed sequentially. As long as the data of the first macroblock can be received correctly, the subsequent error macroblocks can obtain their reliability weight values through the iterative calculation of formula (1).

(2)根据可靠性权重,选取参与重建的相邻宏块;(2) Select the adjacent macroblocks involved in reconstruction according to the reliability weight;

设置可靠性权重值累加阈值Δreliability,一旦相邻宏块的可靠性权重值累加超过Δreliability时,表明参与重建错误宏块的相邻宏块已经足够。在本发明的方法中,Δreliability值为2。该过程可用式(2)描述:A reliability weight accumulation threshold Δ reliability is set. Once the accumulation of reliability weight values of adjacent macroblocks exceeds Δ reliability , it indicates that the adjacent macroblocks involved in reconstructing the error macroblock are enough. In the method of the present invention, the value of Δ reliability is 2. This process can be described by formula (2):

ΣΣ dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} WW reliabilityreliability (( dirdir )) ≥&Greater Equal; ΔΔ reliabilityreliability -- -- -- (( 22 ))

(3)从边信息中提出视觉感知权重图;(3) Propose a visual perception weight map from side information;

从边信息中提出视觉感知权重图时,以边信息中的每一个字节的数据作为一个视觉感知权重值,对所有的视觉感知权重值进行组合得到视觉感知权重图,其中每一个视觉感知权重值对应视觉感知权重矩阵中的一个宏块。When the visual perception weight map is proposed from the side information, each byte of data in the side information is used as a visual perception weight value, and all the visual perception weight values are combined to obtain a visual perception weight map, in which each visual perception weight The value corresponds to a macroblock in the visual perception weight matrix.

(4)根据视觉感知权重图计算相邻宏块的重建权重值;(4) Calculate the reconstruction weight value of the adjacent macroblock according to the visual perception weight map;

重建权重值的计算如式(3)所示:The calculation of the reconstruction weight value is shown in formula (3):

WW reconstructedreconstructed == expexp (( -- || WW perceptualperceptual (( dirdir )) -- WW perceptualperceptual MAXMAX perceptualperceptual )) ,, dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} -- -- -- (( 33 ))

式中,dir表示上、下、左、右四个相邻宏块,但是步骤(2)中根据可靠性权重,选取参与重建的相邻宏块时,可能并不是上、下、左、右四个相邻宏块均参与重建,那么此处计算时dir特指在步骤(2)中确定的参与重建的相邻宏块;In the formula, dir represents the four adjacent macroblocks up, down, left, and right, but in step (2) according to the reliability weight, when selecting adjacent macroblocks to participate in reconstruction, it may not be up, down, left, and right Four adjacent macroblocks all participate in reconstruction, so dir refers to the adjacent macroblocks involved in reconstruction determined in step (2) when calculating here;

Wreconstructed为重建权重值;W reconstructed is the reconstruction weight value;

Wperceptual表示从步骤(3)得到的视觉感知权重图中获取的视觉感知权重值;W perceptual represents the visual perception weight value obtained from the visual perception weight map obtained in step (3);

MAXperceputal表示表示从步骤(3)得到的视觉感知权重图最大的视觉感知权重值。MAX perceputal represents the maximum visual perception weight value of the visual perception weight map obtained from step (3).

(5)对视频码流进行解析并获取错误图像的视频编码类型,如帧内编码或帧间编码类型;(5) Analyze the video code stream and obtain the video encoding type of the wrong image, such as intra-frame encoding or inter-frame encoding;

(6)若错误图像类型为帧内编码,采用像素加权插值的空间域错误掩盖方法;(6) If the error image type is intra-frame coding, a space-domain error concealment method using pixel weighted interpolation;

1)首先根据相邻宏块边界像素到错误像素的距离计算相邻宏块的距离权重值,如式(4)所示1) First, calculate the distance weight value of the adjacent macroblock according to the distance from the boundary pixel of the adjacent macroblock to the error pixel, as shown in formula (4)

WW disdis tanthe tan cece (( dirdir )) dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} == SIZESIZE -- dd (( dirdir )) -- -- -- (( 44 ))

式中:In the formula:

Wdistance表示相邻宏块的距离权重值;W distance represents the distance weight value of adjacent macroblocks;

SIZE为错误像素所在宏块的宽度,以像素为单位;SIZE is the width of the macroblock where the error pixel is located, in pixels;

d为错误宏块像素与相邻宏块边界像素的距离;d is the distance between the error macroblock pixel and the boundary pixel of the adjacent macroblock;

dir表示上、下、左、右四个相邻宏块,但是步骤(2)中根据可靠性权重,选取参与重建的相邻宏块时,可能并不是上、下、左、右四个相邻宏块均参与重建。dir represents four adjacent macroblocks up, down, left, and right, but in step (2) according to the reliability weight, when selecting adjacent macroblocks to participate in reconstruction, it may not be the four adjacent macroblocks up, down, left, and right Neighboring macroblocks all participate in reconstruction.

所述的相邻宏块边界像素是指该相邻宏块中与错误宏块相邻边界上的SIZE个像素,SIZE为宏块宽度,以像素为单位;The adjacent macroblock boundary pixels refer to SIZE pixels on the border between the adjacent macroblock and the error macroblock, and SIZE is the width of the macroblock, in units of pixels;

所述的相邻宏块边界像素到错误像素的距离是指相邻宏块的边界像素与错误像素之间的像素个数;The distance from the boundary pixel of the adjacent macroblock to the error pixel refers to the number of pixels between the boundary pixel of the adjacent macroblock and the error pixel;

2)然后结合距离权重值和重建权重值,通过插值实现空间域的错误掩盖,如式(5)所示:2) Then combine the distance weight value and the reconstruction weight value to realize error concealment in the spatial domain through interpolation, as shown in formula (5):

YY concealconceal == ΣΣ dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} WW disdis tanthe tan cece (( dirdir )) ·&Center Dot; WW reconstructedreconstructed (( dirdir )) ·&Center Dot; YY (( dirdir )) ΣΣ dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} WW disdis tanthe tan cece (( dirdir )) ·&Center Dot; WW reconstructedreconstructed (( dirdir )) -- -- -- (( 55 ))

式中:In the formula:

Yconceal表示错误宏块采用错误掩盖方法重建后的像素;Y conceal represents the pixels of the error macroblock reconstructed by the error concealment method;

Wreconstructed表示相邻宏块的重建权重值;W reconstructed represents the reconstruction weight value of adjacent macroblocks;

Wdistance表示相邻宏块的距离权重值;W distance represents the distance weight value of adjacent macroblocks;

Y表示相邻宏块像素值;Y represents the pixel value of adjacent macroblocks;

dir表示上、下、左、右四个相邻宏块,但是步骤(2)中根据可靠性权重,选取参与重建的相邻宏块时,可能并不是上、下、左、右四个相邻宏块均参与重建,那么此处计算时dir特指在步骤(2)中确定的参与重建的相邻宏块。dir represents four adjacent macroblocks up, down, left, and right, but in step (2) according to the reliability weight, when selecting adjacent macroblocks to participate in reconstruction, it may not be the four adjacent macroblocks up, down, left, and right Neighboring macroblocks all participate in reconstruction, so dir specifically refers to the adjacent macroblocks involved in reconstruction determined in step (2) when calculating here.

(7)若错误图像类型为帧间编码,采用基于边界失真匹配的时间域错误掩盖方法;(7) If the error image type is inter-frame coding, a time-domain error concealment method based on boundary distortion matching is adopted;

1)计算步骤(2)中确定的参与重建的相邻宏块的边界匹配失真,如式(6)所示:1) Calculate the boundary matching distortion of the adjacent macroblocks participating in the reconstruction determined in step (2), as shown in formula (6):

DD. == ΣΣ dirdir ∈∈ {{ toptop ,, leftleft ,, bottombottom ,, rightright }} (( 11 SIZESIZE ΣΣ ii == 00 SIZESIZE -- 11 || WW reconstructedreconstructed dirdir ·&Center Dot; YY dirdir (( ii )) -- YY concealconceal (( ii )) || )) -- -- -- (( 66 ))

式中:In the formula:

D为边界匹配失真;D is the boundary matching distortion;

SIZE为错误像素所在宏块宽度;SIZE is the width of the macroblock where the error pixel is located;

Wreconstructed表示相邻宏块的重建权重值;W reconstructed represents the reconstruction weight value of adjacent macroblocks;

Y表示参与重建的相邻宏块中,与出错宏块相邻的边界上的像素亮度值;Y represents the pixel luminance value on the boundary adjacent to the error macroblock among the adjacent macroblocks participating in the reconstruction;

i表示参与重建的相邻宏块中,与出错宏块相邻的边界上的像素的索引(顺序号);i represents the index (serial number) of the pixel on the boundary adjacent to the erroneous macroblock among the adjacent macroblocks participating in the reconstruction;

Yconceal表示当错误宏块的运动矢量选择dir方向的相邻宏块运动矢量时,它所指向的宏块边界上的像素亮度值(例如当dir表示错误宏块左侧的相邻宏块时,Yconceal表示错误宏块中,左侧边界上的像素亮度值)。Y conceal indicates that when the motion vector of the error macroblock selects the motion vector of the adjacent macroblock in the dir direction, the pixel brightness value on the boundary of the macroblock it points to (for example, when dir indicates the adjacent macroblock on the left side of the error macroblock , Y conceal represents the brightness value of the pixel on the left border in the error macroblock).

dir表示上、下、左、右四个相邻宏块,但是步骤(2)中根据可靠性权重,选取参与重建的相邻宏块时,可能并不是上、下、左、右四个相邻宏块均参与重建,那么此处计算时dir特指在步骤(2)中确定的参与重建的相邻宏块。dir represents four adjacent macroblocks up, down, left, and right, but in step (2) according to the reliability weight, when selecting adjacent macroblocks to participate in reconstruction, it may not be the four adjacent macroblocks up, down, left, and right Neighboring macroblocks all participate in reconstruction, so dir specifically refers to the adjacent macroblocks involved in reconstruction determined in step (2) when calculating here.

2)比较参与重建的相邻宏块的边界匹配失真,选取边界匹配失真值最小时所对应的相邻宏块,将该相邻宏块的运动矢量所指向的图像数据作为当前错误宏块的重建数据,对错误宏块进行错误掩盖。2) Compare the boundary matching distortion of adjacent macroblocks participating in the reconstruction, select the corresponding adjacent macroblock when the boundary matching distortion value is the smallest, and use the image data pointed to by the motion vector of the adjacent macroblock as the current error macroblock Reconstruct data and perform error masking on error macroblocks.

Claims (4)

1.一种基于信道状态和视觉感知边信息的错误掩盖方法,从网络接收视频码流和边信息数据后,对视频编码类型为帧内编码或帧间编码的含有出错宏块的错误图像进行处理,其特征在于,包括以下步骤:1. An error concealment method based on channel state and visual perception side information. After receiving video code stream and side information data from the network, the video encoding type is intra-frame coding or inter-frame coding error image containing error macroblocks. Processing is characterized in that it comprises the following steps: (1)根据当前信道状态信息中的丢包率计算出错宏块的相邻宏块的可靠性权重值,其计算公式为:(1) Calculate the reliability weight value of the adjacent macroblock of the erroneous macroblock according to the packet loss rate in the current channel state information, and its calculation formula is: Wreliability=avg{Wreliability(dir)}(1-P),dir∈{top,left,bottom,right}W reliability = avg{W reliability (dir)}(1-P), dir ∈ {top, left, bottom, right}                                                                          (1) (1) 式中,Wreliability表示宏块的可靠性权重值,dir表示上、下、左、右四个相邻宏块,P表示当前信道的丢包率;式中求出上、下、左、右四个相邻宏块可靠性权重值的平均值,再乘以(1-P),得到宏块的可靠性权重值;In the formula, W reliability represents the reliability weight value of the macroblock, dir represents the upper, lower, left and right adjacent macroblocks, and P represents the packet loss rate of the current channel; in the formula, the upper, lower, left and right The average value of the reliability weight value of four adjacent macroblocks is multiplied by (1-P) to obtain the reliability weight value of the macroblock; 就任意一个相邻宏块而言,其可靠性权重值确定方法如下:As far as any adjacent macroblock is concerned, the method for determining its reliability weight value is as follows: a)若宏块数据正确接收,则其可靠性权重值为1;a) If the macroblock data is received correctly, its reliability weight value is 1; b)若宏块数据出错且没有对其进行过错误掩盖,则其可靠性权重值为0;b) If there is an error in the macroblock data and no error concealment has been performed on it, its reliability weight value is 0; c)若宏块数据出错,但是已经对其进行过错误掩盖,则其可靠性权重值通过式(1)来计算得到;c) If the macroblock data is wrong, but the error has been concealed, its reliability weight value is calculated by formula (1); (2)根据可靠性权重,选择参与重建的相邻宏块,其计算方法为:(2) According to the reliability weight, select the adjacent macroblocks to participate in the reconstruction, the calculation method is: 设置可靠性权重值累加阈值Δreliability,当相邻宏块的可靠性权重值累加超过Δreliability时,停止选取参与重建的相邻宏块;Set the reliability weight value accumulation threshold Δ reliability , when the reliability weight value accumulation of adjacent macroblocks exceeds Δ reliability , stop selecting adjacent macroblocks participating in reconstruction; (3)从边信息中提出视觉感知权重图,其方法为:以边信息中的每一个字节的数据作为一个视觉感知权重值,对所有的视觉感知权重值进行组合得到视觉感知权重图;(3) Propose the visual perception weight map from the side information, the method is: use the data of each byte in the side information as a visual perception weight value, and combine all the visual perception weight values to obtain the visual perception weight map; (4)根据视觉感知权重图计算相邻宏块的重建权重值;(4) Calculate the reconstruction weight value of the adjacent macroblock according to the visual perception weight map; (5)解析视频码流并从中获取错误图像的视频编码类型;(5) parsing the video code stream and obtaining the video coding type of the wrong image therefrom; 若错误图像的视频编码类型为帧内编码,结合相邻宏块的重建权重值,采用像素加权插值的空间域错误掩盖方法;If the video coding type of the error image is intra-frame coding, combined with the reconstruction weight values of adjacent macroblocks, a spatial domain error concealment method of pixel weighted interpolation is used; 若错误图像的视频编码类型为帧间编码,结合相邻宏块的重建权重值,采用基于边界失真匹配的时间域错误掩盖方法。 If the video coding type of the error image is inter-frame coding, combined with the reconstruction weight values of adjacent macroblocks, a time-domain error concealment method based on boundary distortion matching is adopted. the 2.如权利要求1所述的错误掩盖方法,其特征在于:根据步骤(4)中所述的视觉感知权重图计算相邻宏块的重建权重值,其计算式为:2. error concealment method as claimed in claim 1, is characterized in that: calculate the reconstruction weight value of adjacent macroblock according to the visual perception weight map described in step (4), its computing formula is:
Figure FSB00000325047600021
Figure FSB00000325047600021
式中:In the formula: Wreconstructed为重建权重值;W reconstructed is the reconstruction weight value; dir表示参与重建的相邻宏块;dir indicates the adjacent macroblocks participating in the reconstruction; Wperceptual表示从步骤(3)得到的视觉感知权重图中获取的视觉感知权重值;W perceptual represents the visual perception weight value obtained from the visual perception weight map obtained in step (3); MAXperceputal表示从步骤(3)得到的视觉感知权重图最大的视觉感知权重值。MAX perceputal represents the maximum visual perception weight value of the visual perception weight map obtained from step (3).
3.如权利要求1所述的错误掩盖方法,其特征在于:步骤(5)中所述的采用像素加权插值的空间域错误掩盖方法的过程为;3. error concealment method as claimed in claim 1, is characterized in that: the process of adopting the space domain error concealment method of pixel weighted interpolation described in step (5) is; 1)首先根据相邻宏块边界像素到错误像素的距离计算相邻宏块的距离权重值,如式(4)所示1) First, calculate the distance weight value of the adjacent macroblock according to the distance from the boundary pixel of the adjacent macroblock to the error pixel, as shown in formula (4)
Figure FSB00000325047600022
Figure FSB00000325047600022
式中Wdistance表示相邻宏块的距离权重值,dir表示参与重建相邻宏块,SIZE为错误像素所在宏块的宽度,以像素为单位,d为错误宏块像素与相邻宏块边界像素的距离;In the formula, W distance represents the distance weight value of adjacent macroblocks, dir represents the participation in reconstruction of adjacent macroblocks, SIZE is the width of the macroblock where the error pixel is located, in pixels, and d is the boundary between the error macroblock pixel and the adjacent macroblock pixel distance; 2)然后结合距离权重值和重建权重值,通过插值实现空间域的错误掩盖,如式(5)所示:2) Then combine the distance weight value and the reconstruction weight value to realize error concealment in the spatial domain through interpolation, as shown in formula (5):
Figure FSB00000325047600023
Figure FSB00000325047600023
式中:In the formula: Yconceal表示错误宏块采用错误掩盖方法重建后的像素;Y conceal represents the pixels of the error macroblock reconstructed by the error concealment method; Wreconstructed表示相邻宏块的重建权重值;W reconstructed represents the reconstruction weight value of adjacent macroblocks; Wdistance表示相邻宏块的距离权重值; W distance represents the distance weight value of adjacent macroblocks; Y表示相邻宏块像素值;Y represents the pixel value of an adjacent macroblock; dir表示参与重建的相邻宏块。dir represents the adjacent macroblocks involved in reconstruction.
4.如权利要求1所述的错误掩盖方法,其特征在于:步骤(5)所述的采用基于边界失真匹配的时间域错误掩盖方法的过程为;4. The error concealment method as claimed in claim 1, characterized in that: the process of adopting the time domain error concealment method based on boundary distortion matching described in step (5) is; 1)计算上、下、左、右方向上相邻宏块的边界匹配失真,如式(6)所示:1) Calculate the boundary matching distortion of adjacent macroblocks in the up, down, left and right directions, as shown in formula (6):
Figure FSB00000325047600031
Figure FSB00000325047600031
式中:In the formula: D为边界匹配失真;D is the boundary matching distortion; SIZE为错误像素所在宏块宽度;SIZE is the width of the macroblock where the error pixel is located; Wreconstructed表示相邻宏块的重建权重值;W reconstructed represents the reconstruction weight value of adjacent macroblocks; Y表示参与重建的相邻宏块中,与出错宏块相邻的边界上的像素亮度值;Y represents the pixel luminance value on the boundary adjacent to the error macroblock among the adjacent macroblocks participating in the reconstruction; i表示参与重建的相邻宏块中,与出错宏块相邻的边界上的像素的索引;i represents the index of the pixel on the boundary adjacent to the error macroblock among the adjacent macroblocks participating in the reconstruction; Yconceal表示当错误宏块的运动矢量选择dir方向的相邻宏块运动矢量时,它所指向的宏块边界上的像素亮度值,错误宏块重建数据从这些数据中选择;Y conceal indicates that when the motion vector of the wrong macroblock selects the motion vector of the adjacent macroblock in the dir direction, the pixel brightness value on the boundary of the macroblock it points to, and the reconstruction data of the wrong macroblock is selected from these data; dir表示参与重建的相邻宏块;dir indicates the adjacent macroblocks participating in the reconstruction; 2)比较参与重建的相邻宏块的边界匹配失真,选取边界匹配失真值最小时所对应的相邻宏块,将该相邻宏块的运动矢量所指向的图像数据作为当前错误宏块的重建数据,对错误宏块进行错误掩盖。 2) Compare the boundary matching distortion of adjacent macroblocks participating in the reconstruction, select the corresponding adjacent macroblock when the boundary matching distortion value is the smallest, and use the image data pointed to by the motion vector of the adjacent macroblock as the current error macroblock Reconstruct data and perform error masking on error macroblocks. the
CN 200910153560 2009-10-19 2009-10-19 Error concealment method based on state of signal channel and visual perception side information Expired - Fee Related CN101692712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910153560 CN101692712B (en) 2009-10-19 2009-10-19 Error concealment method based on state of signal channel and visual perception side information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910153560 CN101692712B (en) 2009-10-19 2009-10-19 Error concealment method based on state of signal channel and visual perception side information

Publications (2)

Publication Number Publication Date
CN101692712A CN101692712A (en) 2010-04-07
CN101692712B true CN101692712B (en) 2011-02-02

Family

ID=42081366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910153560 Expired - Fee Related CN101692712B (en) 2009-10-19 2009-10-19 Error concealment method based on state of signal channel and visual perception side information

Country Status (1)

Country Link
CN (1) CN101692712B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917628B (en) * 2010-08-30 2012-07-18 武汉烽火众智数字技术有限责任公司 Whole-frame error concealment method based on adaptive block sizes
CN107749993B (en) * 2017-11-02 2019-12-03 广西大学 Distributed video coding information source based on MMSE reconstruct is distorted evaluation method
CN111010583B (en) * 2019-11-29 2021-09-07 杭州电子科技大学 An adaptive multi-view video error concealment method based on residual difference block

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1463154A (en) * 2002-05-28 2003-12-24 华为技术有限公司 Method for shielding errors happening in video signal
CN101123731A (en) * 2007-08-31 2008-02-13 广东威创日新电子有限公司 Covering method for video image error
CN101198058A (en) * 2007-12-14 2008-06-11 武汉大学 A rate-distortion-optimized intra-frame refresh and code rate allocation method for regions of interest
CN101207823A (en) * 2007-11-22 2008-06-25 武汉大学 Comprehensive Error Resistant Video Coding Method for Video Communication
CN101227619A (en) * 2008-01-29 2008-07-23 华为技术有限公司 A method and video decoder for image error concealment in video decoding
CN101304538A (en) * 2008-06-19 2008-11-12 宁波中科集成电路设计中心有限公司 Method for detecting and shielding error of AVS video decode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1463154A (en) * 2002-05-28 2003-12-24 华为技术有限公司 Method for shielding errors happening in video signal
CN101123731A (en) * 2007-08-31 2008-02-13 广东威创日新电子有限公司 Covering method for video image error
CN101207823A (en) * 2007-11-22 2008-06-25 武汉大学 Comprehensive Error Resistant Video Coding Method for Video Communication
CN101198058A (en) * 2007-12-14 2008-06-11 武汉大学 A rate-distortion-optimized intra-frame refresh and code rate allocation method for regions of interest
CN101227619A (en) * 2008-01-29 2008-07-23 华为技术有限公司 A method and video decoder for image error concealment in video decoding
CN101304538A (en) * 2008-06-19 2008-11-12 宁波中科集成电路设计中心有限公司 Method for detecting and shielding error of AVS video decode

Also Published As

Publication number Publication date
CN101692712A (en) 2010-04-07

Similar Documents

Publication Publication Date Title
RU2518435C2 (en) Encoder optimisation in stereoscopic video delivery systems
CN106028026B (en) An Efficient Video Quality Objective Evaluation Method Based on Time-Space Domain Structure
RU2377737C2 (en) Method and apparatus for encoder assisted frame rate up conversion (ea-fruc) for video compression
TW201101847A (en) Method for spatial error concealment
CN101355708B (en) Self-adapting method for shielding error code
CN101163250B (en) Boundary gradient based video stream fault tolerance method
CN101102511A (en) Video Error Concealment Method Based on Macroblock Level and Pixel Level Motion Estimation
CN100471282C (en) Error hiding device and method
CN104602028A (en) Entire frame loss error concealment method for B frame of stereoscopic video
CN110177282A (en) A kind of inter-frame prediction method based on SRCNN
CN106101726A (en) Adaptive hypermedia system restorative procedure that a kind of time-space domain combines and system
CN103747238B (en) Method and device for evaluating video static distortion degree
Boujut et al. A metric for no-reference video quality assessment for hd tv delivery based on saliency maps
CN102510496B (en) Quick size reduction transcoding method based on region of interest
CN101692712B (en) Error concealment method based on state of signal channel and visual perception side information
WO2021056575A1 (en) Low-delay joint source-channel coding method, and related device
CN107277549A (en) A kind of HEVC intracoded frame error concealing methods based on grain angle predictive mode
CN103051896B (en) Mode skipping-based video frequency coding method and mode skipping-based video frequency coding system
CN104081769A (en) Distortion/quality measurement
JP4266227B2 (en) Video signal processing device
CN103313064B (en) Based on the time domain error hidden method of inter-frame mode and movement repair
KR101144283B1 (en) Apparatus and method for concealing errors included in the decoded video
CN103167291A (en) A Stereo Video Full Frame Loss Error Concealment Method Based on Structural Similarity
CN104219526B (en) HEVC rate distortion optimization algorithm based on just-noticeable perception quality judging criterion
KR20240025005A (en) Bitstream processing method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110202

CF01 Termination of patent right due to non-payment of annual fee