CN106204493A - A kind of method eliminating video block effect - Google Patents
A kind of method eliminating video block effect Download PDFInfo
- Publication number
- CN106204493A CN106204493A CN201610552360.1A CN201610552360A CN106204493A CN 106204493 A CN106204493 A CN 106204493A CN 201610552360 A CN201610552360 A CN 201610552360A CN 106204493 A CN106204493 A CN 106204493A
- Authority
- CN
- China
- Prior art keywords
- filtering
- frame
- image
- sub
- block
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种消除视频块效应的方法。The invention relates to the technical field of image processing, in particular to a method for eliminating video block effects.
背景技术Background technique
基于块的变换编码在图像压缩编码中得到广泛应用。但随着码率的降低,量化变得也越来越粗糙,在块的边界会出现不连续,形成重建图像的明显缺陷,称为块效应。Block-based transform coding is widely used in image compression coding. However, with the reduction of the bit rate, the quantization becomes more and more rough, and there will be discontinuity at the boundary of the block, forming an obvious defect of the reconstructed image, which is called block effect.
为了减少块效应,可以对图像运用一些块效应消除算法。如基于凸集投影(POCS)理论的迭代算法,空域滤波算法等,一定程度上去除了块效应。但如何使用尽量简单的算法来获得较高的图像质量是本领域技术人员亟待解决的问题。In order to reduce the blocking effect, some blocking effect removal algorithms can be applied to the image. For example, the iterative algorithm based on the convex projection set (POCS) theory, the spatial filtering algorithm, etc., have removed the block effect to a certain extent. However, how to use an algorithm as simple as possible to obtain higher image quality is an urgent problem to be solved by those skilled in the art.
发明内容Contents of the invention
本发明的主要目的在于提出一种消除视频块效应的方法,旨在解决现有技术中去块效应的图像质量不高的问题。The main purpose of the present invention is to propose a method for eliminating video blocking effect, aiming at solving the problem of low image quality caused by deblocking effect in the prior art.
为实现上述目的,本发明提供的一种消除视频块效应的方法,包括:特征提取步骤,对每帧图像进行块效应特征提取;平面滤波步骤,根据提取出的块效应特征的不同,对每帧图像进行平面去块效应滤波;三维滤波步骤,结合每帧图像及与其相邻的预设帧数的图像,对所述每帧图像进行三维去块效应滤波。In order to achieve the above object, a method for eliminating video blocking effect provided by the present invention includes: a feature extraction step, performing block effect feature extraction on each frame of image; The frame image is subjected to planar deblocking filtering; the three-dimensional filtering step is to combine each frame of image and images with a preset number of frames adjacent to it, and perform three-dimensional deblocking filtering on each frame of image.
可选的,所述特征提取步骤包括:利用边缘检测算法对所述每帧图像进行块效应特征提取。Optionally, the feature extraction step includes: using an edge detection algorithm to perform block effect feature extraction on each frame of image.
可选的,所述平面滤波步骤包括:特征划分子步骤,将提取出的块效应特征划分为水平方向块效应特征和垂直方向块效应特征;平面滤波子步骤,对所述每帧图像分别进行水平方向的去块效应滤波和垂直方向的去块效应滤波。Optionally, the plane filtering step includes: a feature division sub-step, dividing the extracted block effect features into horizontal direction block effect features and vertical direction block effect features; a plane filtering sub-step, respectively performing Deblocking filtering in the horizontal direction and deblocking filtering in the vertical direction.
可选的,所述平面滤波子步骤包括:频率划分子步骤,在进行水平方向的去块效应滤波或者垂直方向的去块效应滤波时,将所述每帧图像中的图像块分为高频特征块和低频特征块;分频滤波子步骤,对所述高频特征块和所述低频特征块分别采用不同的滤波器进行频域滤波。Optionally, the plane filtering sub-step includes: a frequency division sub-step, when performing deblocking filtering in the horizontal direction or deblocking filtering in the vertical direction, divide the image blocks in each frame of image into high-frequency A feature block and a low-frequency feature block; a sub-step of frequency division filtering, using different filters for the high-frequency feature block and the low-frequency feature block to perform frequency-domain filtering.
可选的,所述频率划分子步骤之前,所述平面滤波子步骤还包括:模板设置子步骤,分别为所述水平方向的去块效应滤波和所述垂直方向的去块效应滤波设置滤波模板;所述频率划分子步骤,具体包括在进行水平方向的去块效应滤波或者垂直方向的去块效应滤波时,使用所述滤波模板将所述每帧图像中的图像块分为高频特征块和低频特征块。Optionally, before the frequency division sub-step, the plane filtering sub-step further includes: a template setting sub-step, respectively setting filter templates for the deblocking filtering in the horizontal direction and the deblocking filtering in the vertical direction The frequency division sub-step specifically includes using the filter template to divide the image blocks in each frame of image into high-frequency feature blocks when performing deblocking filtering in the horizontal direction or deblocking filtering in the vertical direction and low-frequency feature blocks.
可选的,所述分频滤波子步骤包括:使用第一高斯平滑滤波法对所述高频特征块进行平滑滤波,使用第二高斯平滑滤波法对所述低频特征块进行平滑滤波;其中,所述第一高斯平滑滤波法的方差大于第一预设阈值,所述第二高斯平滑滤波法的方差小于第二预设阈值,所述第一预设阈值大于或等于所述第二预设阈值。Optionally, the sub-step of frequency division filtering includes: performing smoothing filtering on the high-frequency feature blocks using a first Gaussian smoothing filtering method, and smoothing filtering on the low-frequency feature blocks using a second Gaussian smoothing filtering method; wherein, The variance of the first Gaussian smoothing filtering method is greater than a first preset threshold, the variance of the second Gaussian smoothing filtering method is smaller than a second preset threshold, and the first preset threshold is greater than or equal to the second preset threshold threshold.
可选的,所述三维滤波步骤包括:运动帧检测子步骤,对每帧图像及与其相邻的预设帧数的图像进行运动帧检测;时间维度滤波子步骤,根据检测结果,对所述每帧图像进行时间维度滤波。Optionally, the three-dimensional filtering step includes: a motion frame detection sub-step, performing motion frame detection on each frame of image and images with a preset number of frames adjacent to it; a time dimension filtering sub-step, according to the detection result, the Each frame of image is filtered in time dimension.
可选的,所述运动帧检测子步骤包括:帧差计算子步骤,对当前帧及与其相邻的预设帧数的图像进行帧差计算;运动帧判别子步骤,在累计帧差值大于预设帧差的情况下,确定所述当前帧为运动不显著帧,在累计帧差值小于或等于所述预设帧差的情况下,确定所述当前帧为运动显著帧。Optionally, the moving frame detection sub-step includes: a frame difference calculation sub-step, performing frame difference calculation on the current frame and its adjacent preset frame number images; a moving frame discrimination sub-step, when the accumulated frame difference is greater than In the case of a preset frame difference, it is determined that the current frame is a motion-insignificant frame, and in the case of a cumulative frame difference value less than or equal to the preset frame difference, it is determined that the current frame is a motion-significant frame.
可选的,所述时间维度滤波子步骤包括:对于运动不显著帧中的所述高频特征块,使用当前帧及其相邻帧进行加权求和平滑计算;对于运动显著帧中的所述低频特征块,使用当前帧及其相邻帧进行加权求和平滑计算。Optionally, the time dimension filtering sub-step includes: for the high-frequency feature blocks in frames with no significant motion, using the current frame and its adjacent frames to perform weighted sum smoothing calculation; for the high-frequency feature blocks in frames with significant motion Low-frequency feature blocks, using the current frame and its adjacent frames for weighted sum smoothing calculations.
可选的,所述预设帧数为4帧。Optionally, the preset number of frames is 4 frames.
本发明实施例提供的消除视频块效应的方法,能够根据每帧图像中各图像块所具有的不同块效应特征来进行块效应特征提取,并针对不同的块效应特征对每帧图像进行平面去块效应滤波,从而使在同一帧图像中的去块效应更有针对性,再结合每帧图像及其相邻的若干帧图像之间的关系进行三维滤波,这样便能同时兼顾图像二维纹理信息和三维时空运动信息,保存更多图像细节特征,有效提高了图像质量。The method for eliminating video blockiness provided by the embodiment of the present invention can perform blockiness feature extraction according to different blockiness features of each image block in each frame of image, and perform plane removal on each frame of image according to different blockiness features. Block effect filtering, so that the deblocking effect in the same frame image is more targeted, and then three-dimensional filtering is performed by combining the relationship between each frame image and several adjacent frame images, so that the two-dimensional texture of the image can be taken into account at the same time Information and three-dimensional space-time motion information, save more image detail features, and effectively improve image quality.
附图说明Description of drawings
图1为本发明实施例提供的消除视频块效应的方法的一种流程图。FIG. 1 is a flow chart of a method for eliminating video blocking effects provided by an embodiment of the present invention.
图2为本发明实施例提供的消除视频块效应的方法中一个步骤的具体流程图。FIG. 2 is a specific flow chart of a step in the method for eliminating video blocking effects provided by an embodiment of the present invention.
图3为图2中一个步骤的一种具体流程图。FIG. 3 is a specific flowchart of a step in FIG. 2 .
图4为图2中一个步骤的另一种具体流程图。FIG. 4 is another specific flowchart of a step in FIG. 2 .
图5为本发明实施例提供的消除视频块效应的方法中另一个步骤的具体流程图。FIG. 5 is a specific flow chart of another step in the method for eliminating video blocking effects provided by an embodiment of the present invention.
图6为本发明实施例提供的消除视频块效应的方法的一种详细流程图。FIG. 6 is a detailed flow chart of a method for eliminating video blocking effects provided by an embodiment of the present invention.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
如图1所示,本发明的实施例提供一种消除视频块效应的方法,包括:As shown in Figure 1, an embodiment of the present invention provides a method for eliminating video blocking effects, including:
S11,特征提取步骤,对每帧图像进行块效应特征提取;S11, a feature extraction step, performing block effect feature extraction on each frame of image;
S12,平面滤波步骤,根据提取出的块效应特征的不同,对每帧图像进行平面去块效应滤波;S12, the planar filtering step, performing planar deblocking filtering on each frame of image according to the extracted blockiness features;
S13,三维滤波步骤,结合每帧图像及与其相邻的预设帧数的图像,对所述每帧图像进行三维去块效应滤波。S13, a three-dimensional filtering step, performing three-dimensional deblocking filtering on each frame of image by combining each frame of image and images of a preset number of adjacent frames.
本发明实施例提供的消除视频块效应的方法,能够根据每帧图像中各图像块所具有的不同块效应特征来进行块效应特征提取,并针对不同的块效应特征对每帧图像进行平面去块效应滤波,从而使在同一帧图像中的去块效应更有针对性,再结合每帧图像及其相邻的若干帧图像之间的关系进行三维滤波,这样便能同时兼顾图像二维纹理信息和三维时空运动信息,保存更多图像细节特征,有效提高了图像质量。The method for eliminating video blockiness provided by the embodiment of the present invention can perform blockiness feature extraction according to different blockiness features of each image block in each frame of image, and perform plane removal on each frame of image according to different blockiness features. Block effect filtering, so that the deblocking effect in the same frame image is more targeted, and then three-dimensional filtering is performed by combining the relationship between each frame image and several adjacent frame images, so that the two-dimensional texture of the image can be taken into account at the same time Information and three-dimensional space-time motion information, save more image detail features, and effectively improve image quality.
需要说明的是,由于图像块效应产生时,对应的频域系数会产生明显的变化,因此,本发明实施例提供的消除视频块效应的方法都是将图像变换到频域后进行的,例如对原始图像信号进行离散余弦变换等变换到频域。It should be noted that when the image block effect occurs, the corresponding frequency domain coefficients will change significantly. Therefore, the method for eliminating the video block effect provided by the embodiment of the present invention is performed after transforming the image into the frequency domain, for example The original image signal is transformed into the frequency domain by discrete cosine transform or the like.
具体而言,在步骤S11中,可以使用多种算法对图像进行块效应特征提取。由于从图像效果上看,块效应的出现意味着图像出现了新的边缘,因此,可选的,在本发明的一个实施例中,可以利用边缘检测算法对所述每帧图像进行块效应特征提取,将图像的边缘信息作为特征值。Specifically, in step S11, various algorithms may be used to extract block effect features from the image. From the perspective of image effect, the occurrence of block effect means that a new edge appears in the image, therefore, optionally, in one embodiment of the present invention, an edge detection algorithm can be used to perform block effect feature on each frame of image Extraction, the edge information of the image is used as the feature value.
进行特征提取后即可对每帧图像进行平面滤波。具体的,如图2所示,在步骤S12中,平面滤波步骤可包括:After feature extraction, plane filtering can be performed on each frame of image. Specifically, as shown in FIG. 2, in step S12, the plane filtering step may include:
S121,特征划分子步骤,将提取出的块效应特征划分为水平方向块效应特征和垂直方向块效应特征;S121, a feature division sub-step, dividing the extracted block effect features into horizontal block effect features and vertical block effect features;
S122,平面滤波子步骤,对所述每帧图像分别进行水平方向的去块效应滤波和垂直方向的去块效应滤波。S122, the sub-step of planar filtering, respectively performing deblocking filtering in the horizontal direction and deblocking filtering in the vertical direction on each frame of image.
也就是说,针对频域中特征块效应具有方向性的特点,将提取出的块效应特征分为水平方向和垂直方向,然后对这两个方向分别进行去块效应滤波,从而使平面滤波的针对性更强。That is to say, in view of the directional characteristics of the feature block effect in the frequency domain, the extracted block effect features are divided into horizontal direction and vertical direction, and then deblocking filtering is performed on these two directions, so that the plane filtering More targeted.
可选的,平面滤波子步骤中,在对水平方向或垂直方向进行去块效应滤波时,可以进一步对图像特征进行区分,并针对不同的图像特征采取不同的滤波方法,以进一步提高滤波效果。Optionally, in the plane filtering sub-step, when performing deblocking filtering in the horizontal direction or vertical direction, image features may be further distinguished, and different filtering methods may be adopted for different image features to further improve the filtering effect.
例如,如图3所示,在本发明的一个实施例中,平面滤波子步骤可包括:For example, as shown in Figure 3, in one embodiment of the present invention, the sub-steps of plane filtering may include:
S1221,频率划分子步骤,在进行水平方向的去块效应滤波或者垂直方向的去块效应滤波时,将所述每帧图像中的图像块分为高频特征块和低频特征块;S1221, the frequency division sub-step, when performing deblocking filtering in the horizontal direction or deblocking filtering in the vertical direction, divide the image blocks in each frame of image into high-frequency feature blocks and low-frequency feature blocks;
S1222,分频滤波子步骤,对所述高频特征块和所述低频特征块分别采用不同的滤波器进行频域滤波。S1222, the sub-step of frequency division filtering, using different filters for the high-frequency feature block and the low-frequency feature block to perform frequency-domain filtering.
可选的,可以通过使用滤波模板来对每帧图像进行滤波来实现高频特征块与低频特征块的分离。例如,如图4所示,在本发明的另一个实施例中,平面滤波子步骤可具体包括:Optionally, the separation of high-frequency feature blocks and low-frequency feature blocks may be achieved by using a filter template to filter each frame of image. For example, as shown in Figure 4, in another embodiment of the present invention, the plane filtering sub-step may specifically include:
S1223,分别为所述水平方向的去块效应滤波和所述垂直方向的去块效应滤波设置滤波模板;S1223. Set filter templates for the deblocking filtering in the horizontal direction and the deblocking filtering in the vertical direction respectively;
S1224,在进行水平方向的去块效应滤波或者垂直方向的去块效应滤波时,使用所述滤波模板将所述每帧图像中的图像块分为高频特征块和低频特征块;S1224. When performing deblocking filtering in the horizontal direction or deblocking filtering in the vertical direction, use the filtering template to divide the image blocks in each frame of image into high-frequency feature blocks and low-frequency feature blocks;
S1225,对所述高频特征块和所述低频特征块分别采用不同的滤波器进行频域滤波。S1225. Use different filters to perform frequency domain filtering on the high-frequency feature block and the low-frequency feature block.
可以理解的,由于不同图像块叠加了不同的量化误差,图像块之间的相关性被破坏,在块的边界处就会出现不连续,当量化误差过大,这种不连续超过了人眼识别的门限时,就产生了人眼可见误差。为了消除块效应,可以对图像进行平滑滤波,尽量使图像块边界上连续。It is understandable that because different quantization errors are superimposed on different image blocks, the correlation between image blocks is destroyed, and discontinuity will appear at the boundary of the block. When the quantization error is too large, this discontinuity exceeds the human eye. When the recognition threshold is exceeded, an error visible to the human eye occurs. In order to eliminate the block effect, the image can be smoothed and filtered to try to make the boundary of the image block continuous.
可选的,可以使用高斯平滑滤波法对图像块进行平滑滤波。具体的,对于已经进行了高频特征块与低频特征块相区分的情况,可以使用不同参数或自适应系数的高斯平滑滤波器进行相应的滤波。Optionally, a Gaussian smoothing filtering method may be used to perform smoothing filtering on the image block. Specifically, for the case where high-frequency feature blocks have been distinguished from low-frequency feature blocks, Gaussian smoothing filters with different parameters or adaptive coefficients can be used to perform corresponding filtering.
例如,在分频滤波子步骤中,可以使用第一高斯平滑滤波法对高频特征块进行平滑滤波,使用第二高斯平滑滤波法对低频特征块进行平滑滤波;其中,所述第一高斯平滑滤波法的方差大于第一预设阈值,所述第二高斯平滑滤波法的方差小于第二预设阈值,所述第一预设阈值大于或等于所述第二预设阈值。For example, in the sub-step of frequency division filtering, the first Gaussian smoothing method can be used to smooth filter the high-frequency feature blocks, and the second Gaussian smoothing method can be used to smooth filter the low-frequency feature blocks; wherein, the first Gaussian smoothing The variance of the filtering method is greater than a first preset threshold, the variance of the second Gaussian smoothing filtering method is smaller than a second preset threshold, and the first preset threshold is greater than or equal to the second preset threshold.
也就是说,在消除水平方向块效应或者垂直方向块效应时,可以根据图像块在变换域中参数的特性设置滤波模板,将图像块划分为高频特征块和低频特征块,然后分别采用不同的自适应系数进行高斯平滑滤波效应,对于高频特征块,选取方差较大的高斯平滑滤波,对于低频特征块选取方差较小的高斯平滑滤波。That is to say, when eliminating the block effect in the horizontal direction or the block effect in the vertical direction, the filter template can be set according to the characteristics of the parameters of the image block in the transform domain, and the image block can be divided into high-frequency feature blocks and low-frequency feature blocks, and then different The Gaussian smoothing filter effect is performed on the adaptive coefficient of the high-frequency feature block, and the Gaussian smoothing filter with a large variance is selected for the high-frequency feature block, and the Gaussian smoothing filter with a small variance is selected for the low-frequency feature block.
在完成平面滤波后,进一步的,可以结合图像中的物体运动情况对每帧图像进行进一步滤波,从而完成三维滤波。其中,图像中物体的运动情况可以通过相邻几帧图像的动态变化来判断。After the planar filtering is completed, further, each frame of image can be further filtered in combination with the motion of the object in the image, so as to complete the three-dimensional filtering. Among them, the movement of the object in the image can be judged by the dynamic changes of several adjacent frames of images.
例如,如图5所示,步骤S13可包括:For example, as shown in Figure 5, step S13 may include:
S131,运动帧检测子步骤,对每帧图像及与其相邻的预设帧数的图像进行运动帧检测;S131, the motion frame detection sub-step is to perform motion frame detection on each frame image and the images of the preset number of frames adjacent to it;
S132,时间维度滤波子步骤,根据检测结果,对所述每帧图像进行时间维度滤波。S132, the time dimension filtering sub-step, performing time dimension filtering on each frame of image according to the detection result.
其中,可以根据图像处理效果的要求来确定预设帧数,例如2~8帧,在本发明的一个实施例中为4帧,这样算上当前帧共有5帧图像参与运动帧检测。Among them, the preset number of frames can be determined according to the requirements of the image processing effect, for example, 2 to 8 frames, and in one embodiment of the present invention, it is 4 frames, so that counting the current frame, a total of 5 frames of images participate in the motion frame detection.
可选的,运动帧检测子步骤可具体包括:Optionally, the motion frame detection sub-step may specifically include:
帧差计算子步骤,对当前帧及与其相邻的预设帧数的图像进行帧差计算;The frame difference calculation sub-step is to perform frame difference calculation on the images of the current frame and its adjacent preset frames;
运动帧判别子步骤,在累计帧差值大于预设帧差的情况下,确定所述当前帧为运动不显著帧,在累计帧差值小于或等于所述预设帧差的情况下,确定所述当前帧为运动显著帧。The motion frame discrimination sub-step is to determine that the current frame is an insignificant motion frame when the accumulated frame difference is greater than the preset frame difference, and to determine if the accumulated frame difference is less than or equal to the preset frame difference The current frame is a motion salient frame.
相应的,时间维度滤波子步骤可具体包括:Correspondingly, the time dimension filtering sub-step may specifically include:
对于运动不显著帧中的所述高频特征块,使用当前帧及其相邻帧进行加权求和平滑计算;For the high-frequency feature block in the motion insignificant frame, use the current frame and its adjacent frames to perform weighted sum smoothing calculation;
对于运动显著帧中的所述低频特征块,使用当前帧及其相邻帧进行加权求和平滑计算。For the low-frequency feature block in the frame with significant motion, the current frame and its adjacent frames are used to perform weighted sum smoothing calculation.
下面通过具体实施例对本发明提供的消除视频块效应的方法进行详细说明。The method for eliminating video blocking effect provided by the present invention will be described in detail below through specific embodiments.
如图6所示,本实施例中,消除视频块效应的方法可包括如下步骤:As shown in Figure 6, in this embodiment, the method for eliminating video blocking effects may include the following steps:
S201,对每帧图像进行块效应特征提取;S201, performing block effect feature extraction on each frame of image;
S202,将提取出的块效应特征划分为水平方向块效应特征和垂直方向块效应特征;S202, dividing the extracted block effect features into horizontal block effect features and vertical block effect features;
S203,分别为所述水平方向的去块效应滤波和所述垂直方向的去块效应滤波设置滤波模板;S203. Set filter templates for the deblocking filtering in the horizontal direction and the deblocking filtering in the vertical direction respectively;
S204,在进行水平方向的去块效应滤波或者垂直方向的去块效应滤波时,使用所述滤波模板将所述每帧图像中的图像块分为高频特征块和低频特征块;S204. When performing deblocking filtering in the horizontal direction or deblocking filtering in the vertical direction, use the filtering template to divide the image blocks in each frame of image into high-frequency feature blocks and low-frequency feature blocks;
S205,使用第一高斯平滑滤波法对高频特征块进行平滑滤波,使用第二高斯平滑滤波法对低频特征块进行平滑滤波;其中,所述第一高斯平滑滤波法的方差大于第一预设阈值,所述第二高斯平滑滤波法的方差小于第二预设阈值,所述第一预设阈值大于或等于所述第二预设阈值;S205, use the first Gaussian smoothing filtering method to perform smoothing filtering on the high-frequency feature blocks, and use the second Gaussian smoothing filtering method to perform smoothing filtering on the low-frequency feature blocks; wherein, the variance of the first Gaussian smoothing filtering method is greater than the first preset threshold, the variance of the second Gaussian smoothing filtering method is less than a second preset threshold, and the first preset threshold is greater than or equal to the second preset threshold;
S206,对当前帧及与其相邻的预设帧数的图像进行帧差计算;S206, performing frame difference calculation on the current frame and the images of the preset number of adjacent frames;
S207,在累计帧差值大于预设帧差的情况下,确定所述当前帧为运动不显著帧,在累计帧差值小于或等于所述预设帧差的情况下,确定所述当前帧为运动显著帧;S207. If the cumulative frame difference is greater than the preset frame difference, determine that the current frame is a motion-insignificant frame, and if the cumulative frame difference is less than or equal to the preset frame difference, determine the current frame is the motion salient frame;
S208,对于运动不显著帧中的高频特征块,使用当前帧及其相邻帧进行加权求和平滑计算;对于运动显著帧中的低频特征块,使用当前帧及其相邻帧进行加权求和平滑计算。S208, for the high-frequency feature blocks in the motion insignificant frame, use the current frame and its adjacent frames to perform weighted sum smoothing calculation; for the low-frequency feature blocks in the motion significant frame, use the current frame and its adjacent frames to perform weighted sum smoothing calculation and smooth calculations.
本实施例提供的消除视频块效应的方法,首先在二维空间进行块效应的不同特征检测,然后进行二维空间内平滑,然后结合三维空间运动信息,进一步进行不同特征块的平滑滤波,这样便能同时兼顾图像二维纹理信息和三维时空运动信息,保存更多图像细节特征,大大提高了图像质量。The method for eliminating video blocking effect provided by this embodiment firstly detects different features of blocking effect in two-dimensional space, then performs smoothing in two-dimensional space, and then combines three-dimensional space motion information to further perform smoothing and filtering of different feature blocks, thus It can take into account the two-dimensional texture information and three-dimensional space-time motion information of the image at the same time, save more image detail features, and greatly improve the image quality.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610552360.1A CN106204493B (en) | 2016-07-13 | 2016-07-13 | A method of eliminating video blocking artifact |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610552360.1A CN106204493B (en) | 2016-07-13 | 2016-07-13 | A method of eliminating video blocking artifact |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106204493A true CN106204493A (en) | 2016-12-07 |
CN106204493B CN106204493B (en) | 2019-01-15 |
Family
ID=57477294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610552360.1A Active CN106204493B (en) | 2016-07-13 | 2016-07-13 | A method of eliminating video blocking artifact |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106204493B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998056184A1 (en) * | 1997-06-05 | 1998-12-10 | Wisconsin Alumni Research Foundation | Image compression system using block transforms and tree-type coefficient truncation |
CN1816149A (en) * | 2005-02-06 | 2006-08-09 | 腾讯科技(深圳)有限公司 | Filtering-wave method of removing blocking-effect in video-frequency picture and loop filter |
CN101494787A (en) * | 2009-02-10 | 2009-07-29 | 重庆大学 | De-block effect method based on block effect detection |
CN102547256A (en) * | 2010-12-10 | 2012-07-04 | 株式会社理光 | Method and system for removing self-adaptive block effect |
-
2016
- 2016-07-13 CN CN201610552360.1A patent/CN106204493B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998056184A1 (en) * | 1997-06-05 | 1998-12-10 | Wisconsin Alumni Research Foundation | Image compression system using block transforms and tree-type coefficient truncation |
CN1816149A (en) * | 2005-02-06 | 2006-08-09 | 腾讯科技(深圳)有限公司 | Filtering-wave method of removing blocking-effect in video-frequency picture and loop filter |
CN101494787A (en) * | 2009-02-10 | 2009-07-29 | 重庆大学 | De-block effect method based on block effect detection |
CN102547256A (en) * | 2010-12-10 | 2012-07-04 | 株式会社理光 | Method and system for removing self-adaptive block effect |
Also Published As
Publication number | Publication date |
---|---|
CN106204493B (en) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Triantafyllidis et al. | Blocking artifact detection and reduction in compressed data | |
US8285068B2 (en) | Combined deblocking and denoising filter | |
WO2022016326A1 (en) | Image processing method, electronic device, and computer-readable medium | |
Alireza Golestaneh et al. | Algorithm for JPEG artifact reduction via local edge regeneration | |
JP2015225665A (en) | Image noise removing method and image noise removing apparatus | |
CN102930508B (en) | Image residual signal based non-local mean value image de-noising method | |
WO2013075611A1 (en) | Depth image filtering method, and method and device for acquiring depth image filtering threshold | |
CN110717922A (en) | Image definition evaluation method and device | |
Che et al. | Image denoising based on adaptive fractional partial differential equations | |
Rakhshanfar et al. | Low-frequency image noise removal using white noise filter | |
WO2020124355A1 (en) | Image processing method, image processing device, and unmanned aerial vehicle | |
CN111986095A (en) | Image processing method and image processing device based on edge extraction | |
CN106846262B (en) | Method and system for removing mosquito noise | |
CN113744294A (en) | Image processing method and related device | |
CN106204493A (en) | A kind of method eliminating video block effect | |
CN106228514A (en) | A kind of method eliminating compression video noise | |
KR101661476B1 (en) | Video stabiliaztion method based on smoothing filtering of undesirable motion, recording medium and device for performing the method | |
CN106488079B (en) | A kind of method and device of video denoising | |
KR101615122B1 (en) | Adaptive non-local means denoising method, recording medium and device for performing the method | |
Võ et al. | Localized filtering for artifact removal in compressed images | |
Kim et al. | Empirical non-local algorithm for image and video denoising | |
Zhu et al. | Image deblocking using convex optimization with modified total variation method | |
JP2012507773A (en) | Block noise reduction system and method | |
KR101961816B1 (en) | Directional average filtering method that can denoise and edge preservation of image | |
Jakhetiya et al. | Observation model based perceptually motivated bilateral filter for image reconstruction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20161207 Assignee: Boya cloud (Beijing) Technology Co., Ltd. Assignor: Peking University Contract record no.: 2017990000367 Denomination of invention: Method for eliminating video block effect License type: Common License Record date: 20170908 |
|
EE01 | Entry into force of recordation of patent licensing contract | ||
GR01 | Patent grant | ||
GR01 | Patent grant |