CN102413270B - Method and device for correcting boundary region motion vector - Google Patents

Method and device for correcting boundary region motion vector Download PDF

Info

Publication number
CN102413270B
CN102413270B CN201110371037.1A CN201110371037A CN102413270B CN 102413270 B CN102413270 B CN 102413270B CN 201110371037 A CN201110371037 A CN 201110371037A CN 102413270 B CN102413270 B CN 102413270B
Authority
CN
China
Prior art keywords
block
boundary
motion vector
offset
index
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
CN201110371037.1A
Other languages
Chinese (zh)
Other versions
CN102413270A (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.)
Solomon Systech Shenzhen Ltd
Original Assignee
Solomon Systech Shenzhen 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 Solomon Systech Shenzhen Ltd filed Critical Solomon Systech Shenzhen Ltd
Priority to CN201110371037.1A priority Critical patent/CN102413270B/en
Publication of CN102413270A publication Critical patent/CN102413270A/en
Application granted granted Critical
Publication of CN102413270B publication Critical patent/CN102413270B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明属于数字视频处理领域中帧率转换技术,其提供的一种校正边界区域运动向量的方法,包括如下步骤:S1、确定视频帧的边界偏移块和边界块;S2、将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向。本发明通过把边界偏移块的可信的运动向量赋给边界块,使得边界块指向和边界偏移块的运动向量相同的方向,即如果边界块和边界偏移块属于同一个物体,那么经过这样的处理,就能使得它们的运动向量保持一致,从而提高视频帧边界区域的图像质量。

Figure 201110371037

The present invention belongs to the frame rate conversion technology in the field of digital video processing. It provides a method for correcting the motion vector of the boundary area, which includes the following steps: S1, determining the boundary offset block and the boundary block of the video frame; S2, converting the boundary The motion vector of the offset block is assigned to the boundary block such that the boundary block points in the same direction as the motion vector of the boundary offset block. The present invention assigns the credible motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block, that is, if the boundary block and the boundary offset block belong to the same object, then After such processing, their motion vectors can be kept consistent, thereby improving the image quality of the boundary area of the video frame.

Figure 201110371037

Description

校正边界区域运动向量的方法和装置Method and device for correcting boundary region motion vector

技术领域 technical field

本发明涉及数字视频处理领域中的帧率转换技术,尤其涉及一种基于全局运动向量的校正边界区域运动向量的方法和装置。 The invention relates to frame rate conversion technology in the field of digital video processing, in particular to a method and device for correcting motion vectors in boundary regions based on global motion vectors.

背景技术 Background technique

对于硬件实现的帧率转换,通常是使用运动估计和运动补偿技术。运动估计主要就是在当前帧和前一帧或后一帧中找出最匹配的块。最匹配的简单度量标准就是它们之间有最小的数值差异。找到最匹配的块之后,它和当前块之间的位移就被作为运动向量记录下来。这个运动向量以后会在运动补偿处理中被用来获取最匹配的块。 For hardware-implemented frame rate conversion, motion estimation and motion compensation techniques are usually used. Motion estimation is mainly to find the best matching block in the current frame and the previous or next frame. The best matching simple metric is the one with the smallest numerical difference between them. After the best matching block is found, the displacement between it and the current block is recorded as a motion vector. This motion vector is later used in the motion compensation process to obtain the best matching block.

帧率转换的目标是在前后帧之间产生出中间帧。因此,运动向量会根据前一帧和中间帧的位置而调整。被这个调整的运动向量所指的块就作为中间帧的当前块。然而,如果是在视频帧的边界处有运动,运动估计就表现得不好,因为在当前帧出现的物体可能还没有进入前一帧。类似地,在前一帧中存在的物体,可能在下一帧中就没有了。因此,运动估计可能会在前一帧中找到另外的匹配块,只要它具有最小的数值差异,但实际上这个块并不属于这个物体。 The goal of frame rate conversion is to generate intermediate frames between previous and previous frames. Therefore, the motion vectors are adjusted according to the position of the previous frame and the intermediate frame. The block pointed by the adjusted motion vector is taken as the current block of the intermediate frame. However, motion estimation does not perform well if there is motion at the boundaries of video frames, since objects appearing in the current frame may not have entered the previous frame. Similarly, an object that was present in the previous frame may not be present in the next frame. Therefore, motion estimation may find another matching block in the previous frame, as long as it has the smallest numerical difference, but this block does not actually belong to this object.

现有的实现并没有对视频帧的边界做特殊的处理。 Existing implementations do not do special handling of video frame boundaries.

发明内容 Contents of the invention

为解决上述技术问题,本发明的目的在于提供一种基于全局运动向量的校正边界区域运动向量的方法,通过把边界偏移块的可信的运动向量赋给边界块,使得边界块指向和边界偏移块的运动向量相同的方向,从而提高视频帧边界区域的图像质量。 In order to solve the above-mentioned technical problems, the object of the present invention is to provide a method for correcting the motion vector of the boundary area based on the global motion vector, by assigning the credible motion vector of the boundary offset block to the boundary block, so that the boundary block points to and borders Offsets the motion vectors of the blocks in the same direction, thus improving image quality in border regions of the video frame.

相应与所述方法,本发明的目的还在于提供一种应用上述方法的装置。 Corresponding to the method, the object of the present invention is to provide a device for applying the above method.

为实现上述发明目的之一,本发明的一种校正边界区域运动向量的方法,包括如下步骤: In order to achieve one of the above-mentioned purposes of the invention, a method for correcting a motion vector in a boundary area of the present invention includes the following steps:

S1、确定视频帧的边界偏移块和边界块; S1. Determine the boundary offset block and the boundary block of the video frame;

S2、将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向。 S2. Assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block.

作为本发明的进一步改进,所述步骤S1具体包括以下步骤: As a further improvement of the present invention, the step S1 specifically includes the following steps:

S11、将视频帧的每一帧都发展一全局运动向量; S11. Developing a global motion vector for each frame of the video frame;

S12、分裂所述全局运动向量以获得第一运动向量和第二运动向量; S12. Split the global motion vector to obtain a first motion vector and a second motion vector;

S13、根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; S13. Convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index;

S14、根据所述块索引确定所述边界偏移块和边界块的分布。 S14. Determine the distribution of the boundary offset block and the boundary block according to the block index.

作为本发明的进一步改进,所述步骤S14具体包括: As a further improvement of the present invention, the step S14 specifically includes:

获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域; Obtain the block whose block index is equal to the first block index on the left side of the video frame and the block whose block index is equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area;

将块索引位于所述边界偏移块区域之外的块定义为边界块。 A block whose block index is outside the boundary offset block area is defined as a boundary block.

作为本发明的进一步改进,所述步骤S2中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 As a further improvement of the present invention, the method of "assigning the motion vector of the boundary offset block to the boundary block" in the step S2 includes direct copying of the motion vector, or offset, or stretching, or the above-mentioned methods any combination of .

作为本发明的进一步改进,所述“将所述边界偏移块的运动向量赋给所述边界块”的步骤还包括: As a further improvement of the present invention, the step of "assigning the motion vector of the boundary offset block to the boundary block" further includes:

通过公式MV2=A*MV1+B来进行运动向量的传递,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 The motion vector is transmitted by the formula MV2=A*MV1+B, where MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters.

为实现上述另一发明目的,本发明还提供了一种校正边界区域运动向量的装置,包括如下单元: In order to achieve the purpose of the above another invention, the present invention also provides a device for correcting the motion vector of the boundary area, which includes the following units:

边界块获取单元、用于确定视频帧的边界偏移块和边界块; A boundary block acquisition unit, used to determine a boundary offset block and a boundary block of a video frame;

运动向量传递单元、用于将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向。 A motion vector transmitting unit is configured to assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block.

作为本发明的进一步改进,所述边界块获取单元具体包括如下单元: As a further improvement of the present invention, the boundary block acquisition unit specifically includes the following units:

全局运动向量获取单元、用于将视频帧的每一帧都发展一全局运动向量; A global motion vector acquisition unit, configured to develop a global motion vector for each frame of the video frame;

全局运动向量分裂单元、用于分裂所述全局运动向量以获得第一运动向量和第二运动向量; a global motion vector splitting unit, configured to split the global motion vector to obtain a first motion vector and a second motion vector;

转化单元、用于根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; The conversion unit is used to convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index;

边界获知单元、用于根据所述块索引确定所述边界偏移块和边界块的分布。 The boundary obtaining unit is configured to determine the distribution of the boundary offset block and the boundary block according to the block index.

作为本发明的进一步改进,所述边界获知单元具体用于: As a further improvement of the present invention, the boundary learning unit is specifically used for:

获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域; Obtain the block whose block index is equal to the first block index on the left side of the video frame and the block whose block index is equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area;

将块索引位于所述边界偏移块区域之外的块定义为边界块。 A block whose block index is outside the boundary offset block area is defined as a boundary block.

作为本发明的进一步改进,所述运动向量传递单元中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 As a further improvement of the present invention, the way of "assigning the motion vector of the boundary offset block to the boundary block" in the motion vector transfer unit includes direct copying of the motion vector, or offset, or stretching, or Any combination of the above methods.

作为本发明的进一步改进,所述运动向量传递单元还用于: As a further improvement of the present invention, the motion vector transfer unit is also used for:

通过公式MV2=A*MV1+B来进行运动向量的传递,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 The motion vector is transmitted by the formula MV2=A*MV1+B, where MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters.

与现有技术相比,本发明的有益效果是:本发明通过把边界偏移块的可信的运动向量赋给边界块,使得边界块指向和边界偏移块的运动向量相同的方向,即如果边界块和边界偏移块属于同一个物体,那么经过这样的处理,就能使得它们的运动向量保持一致,从而提高视频帧边界区域的图像质量。 Compared with the prior art, the beneficial effects of the present invention are: the present invention assigns the credible motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block, that is If the boundary block and the boundary offset block belong to the same object, after such processing, their motion vectors can be kept consistent, thereby improving the image quality of the boundary area of the video frame.

附图说明 Description of drawings

图1是本发明一实施方式中校正边界区域运动向量的方法的流程图; FIG. 1 is a flow chart of a method for correcting motion vectors in boundary regions in an embodiment of the present invention;

图2是本发明一实施方式中全局运动向量的分裂原理示意图; Fig. 2 is a schematic diagram of the splitting principle of the global motion vector in an embodiment of the present invention;

图3是本发明一实施方式中边界偏移块的运动向量传递给边界块的原理示意图; Fig. 3 is a schematic diagram of the principle of transferring the motion vector of the boundary offset block to the boundary block in an embodiment of the present invention;

图4是本发明一实施方式中校正边界区域运动向量的装置的模块示意图。 FIG. 4 is a block diagram of a device for correcting motion vectors in boundary regions in an embodiment of the present invention.

具体实施方式 Detailed ways

以下将结合附图所示的具体实施方式对本发明进行详细描述。但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。 The present invention will be described in detail below in conjunction with specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, method, or functional changes made by those skilled in the art according to these embodiments are included in the protection scope of the present invention.

请参照图1所示,在本发明一具体实施方式中,所述校正边界区域运动向量的方法,其包括如下步骤: Please refer to FIG. 1, in a specific embodiment of the present invention, the method for correcting the motion vector of the boundary area includes the following steps:

S1、确定视频帧的边界偏移块和边界块; S1. Determine the boundary offset block and the boundary block of the video frame;

本发明旨在通过对视频帧的边界进行特殊处理,使得在视频帧边界处的运动向量和物体或场景的运动保持一致。所以确定出视频帧的边界便是关键一环。 The present invention aims to make the motion vector at the boundary of the video frame consistent with the motion of the object or scene by performing special processing on the boundary of the video frame. So determining the boundary of the video frame is the key link.

为实现上述步骤的最终目的,步骤S1可具体分为以下步骤来实现: In order to achieve the ultimate goal of the above steps, step S1 can be specifically divided into the following steps to achieve:

S11、将视频帧的每一帧都发展一全局运动向量; S11. Developing a global motion vector for each frame of the video frame;

首先对每一帧都发展出一个全局运动向量。通过累计每一帧中每个块(例如大小为8*8的块)的运动向量的发生次数,来产生这个全局运动向量。优选地,在本发明中,最高计数对应的运动向量被指定为全局运动向量。 A global motion vector is first developed for each frame. This global motion vector is generated by accumulating the number of occurrences of the motion vector for each block (eg, a block of size 8*8) in each frame. Preferably, in the present invention, the motion vector corresponding to the highest count is designated as the global motion vector.

S12、分裂所述全局运动向量以获得第一运动向量和第二运动向量; S12. Split the global motion vector to obtain a first motion vector and a second motion vector;

参图2所示,全局运动向量会被用来确定视频帧边界处的运动向量是否可信。根据前一帧和中间帧的距离,全局运动向量首先被分裂为两部分(第一运动向量和第二运动向量)。例如,如果全局运动向量的水平分量(Global MV)是16,并且指向左边,那么便是表明全局运动是从左到右进行,中间帧距离前一帧3/4, 中间帧距离后一帧1/4,于是全局运动向量被分裂为两部分,一部分等于12, 另一部分等于4。等于12的那部分称为揭露的运动向量(MV(uncovered)),即第一运动向量;等于4的那部分称为覆盖的运动向量(MV(covered)),即第二运动向量。 Referring to Figure 2, the global motion vectors are used to determine whether the motion vectors at video frame boundaries are plausible. According to the distance between the previous frame and the intermediate frame, the global motion vector is first split into two parts (the first motion vector and the second motion vector). For example, if the horizontal component (Global MV) of the global motion vector is 16 and points to the left, it means that the global motion is from left to right, the middle frame is 3/4 from the previous frame, and the middle frame is 1 from the next frame /4, so the global motion vector is split into two parts, one part is equal to 12, and the other part is equal to 4. The part equal to 12 is called the uncovered motion vector (MV (uncovered)), that is, the first motion vector; the part equal to 4 is called the covered motion vector (MV (covered)), that is, the second motion vector.

S13、根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; S13. Convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index;

为了方便视频帧对应的边界偏移块和边界块的确定,必须将视频帧的运动向量转化为相对应的块索引。而视频帧的运动向量转化为块索引的过程是通过块的大小来实现的,比如,对于4x4大小的块,第一运动向量的块索引是12/4=3,第二运动向量的块索引则是4/4=1。其中,在转化过后,块索引是3的那个称为揭露的块偏移(第一块索引),块索引是1的那个称为覆盖的块偏移(第二块索引)。 In order to facilitate the determination of the boundary offset block and boundary block corresponding to the video frame, the motion vector of the video frame must be converted into a corresponding block index. The process of converting the motion vector of the video frame into a block index is realized by the size of the block. For example, for a block of 4x4 size, the block index of the first motion vector is 12/4=3, and the block index of the second motion vector Then 4/4=1. Among them, after the conversion, the block index with a block index of 3 is called the exposed block offset (the first block index), and the block index with the block index of 1 is called the covered block offset (the second block index).

S14、根据所述块索引确定所述边界偏移块和边界块的分布。 S14. Determine the distribution of the boundary offset block and the boundary block according to the block index.

参照图3所示,所述步骤S14具体包括: Referring to Figure 3, the step S14 specifically includes:

获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域(图中灰色部分),这些块统统定义为视频帧的边界偏移块101; Get the block with the block index equal to the first block index on the left side of the video frame and the block with the block index equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area (the gray part in the figure), these Blocks are collectively defined as boundary offset blocks 101 of video frames;

值得一提的是,边界偏移块101均包括具有一定指向的运动向量(水平向左、向右,或者竖直向上、向下)。 It is worth mentioning that each boundary offset block 101 includes a motion vector with a certain direction (horizontally left, right, or vertically upward, downward).

在此之后,便可将块索引位于所述边界偏移块区域之外的块定义为边界块102。其中,所示位于边界偏移块之外是指位于图中环形部分的外围。 After that, the block whose block index is outside the boundary offset block area can be defined as the boundary block 102 . Wherein, being located outside the boundary offset block means being located at the periphery of the circular portion in the figure.

S2、将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向。 S2. Assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block.

在本实施方式中,为了减少在视频帧的边界区域由运动估计带来的误差,边界偏移块的运动向量被传递到其相邻的边界块。因此,如果边界块和边界偏移块属于同一个物体,那么经过这样的处理,就能使得它们的运动向量保持一致。 In this embodiment, in order to reduce the error caused by motion estimation in the boundary area of the video frame, the motion vector of the boundary offset block is transferred to its adjacent boundary blocks. Therefore, if the boundary block and the boundary offset block belong to the same object, after such processing, their motion vectors can be kept consistent.

其中,在本发明中,步骤S2中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 Wherein, in the present invention, the method of "assigning the motion vector of the boundary offset block to the boundary block" in step S2 includes direct copying of the motion vector, or offset, or stretching, or any of the above methods combination.

直接复制一般适用于边界的中间部位,与边界偏移块相邻边界块可直接拷贝到方向和大小均等同于边界偏移块对应运动向量的向量; Direct copy is generally applicable to the middle part of the boundary, and the boundary block adjacent to the boundary offset block can be directly copied to a vector whose direction and size are equal to the corresponding motion vector of the boundary offset block;

而在某些部位,与边界偏移块相邻边界块可被赋予到方向相同和大小不同于边界偏移块对应运动向量的向量(拉伸); And in some parts, the boundary block adjacent to the boundary offset block can be given to a vector (stretch) with the same direction and a different size than the corresponding motion vector of the boundary offset block;

在边界的角落部位(参图3),与边界偏移块相邻边界块可被赋予到方向不同和大小相同(也可不同)于边界偏移块对应运动向量的向量(偏移); At the corner of the boundary (see Figure 3), the boundary block adjacent to the boundary offset block can be assigned a vector (offset) with a different direction and the same size (or different) from the corresponding motion vector of the boundary offset block;

当然,在本发明其它实施方式中,“将所述边界偏移块的运动向量赋给所述边界块”的方式亦可以为上述各方式(复制、拉伸、偏移)的组合。 Certainly, in other implementation manners of the present invention, the way of "assigning the motion vector of the boundary offset block to the boundary block" may also be a combination of the above-mentioned ways (copying, stretching, offsetting).

上述所提及的“将所述边界偏移块的运动向量赋给所述边界块”的步骤若用一更加优化的公式来实现运动向量的传递那便是:MV2=A*MV1+B,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 If the above-mentioned step of "assigning the motion vector of the boundary offset block to the boundary block" uses a more optimized formula to realize the transmission of the motion vector, that is: MV2=A*MV1+B, Among them, MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters.

接下来,结合附图4来对本发明的校正边界区域运动向量的装置加以描述。在本发明以具体实施方式中,所述装置包括: Next, the device for correcting the motion vector of the boundary area of the present invention will be described with reference to FIG. 4 . In a specific embodiment of the present invention, the device includes:

边界块获取单元10、用于确定视频帧的边界偏移块和边界块; Boundary block acquisition unit 10, for determining the boundary offset block and the boundary block of the video frame;

本发明旨在通过对视频帧的边界进行特殊处理,使得在视频帧边界处的运动向量和物体或场景的运动保持一致。所以确定出视频帧的边界便是关键一环。 The present invention aims to make the motion vector at the boundary of the video frame consistent with the motion of the object or scene by performing special processing on the boundary of the video frame. So determining the boundary of the video frame is the key link.

为实现本单元的最终目的,边界块获取单元10可具体分为以下单元来实现: In order to achieve the ultimate purpose of this unit, the boundary block acquisition unit 10 can be specifically divided into the following units for realization:

全局运动向量获取单元11、用于将视频帧的每一帧都发展一全局运动向量; The global motion vector acquisition unit 11 is used to develop a global motion vector for each frame of the video frame;

首先对每一帧都发展出一个全局运动向量。通过累计每一帧中每个块(例如大小为8*8的块)的运动向量的发生次数,来产生这个全局运动向量。优选地,在本发明中,最高计数对应的运动向量被指定为全局运动向量。 A global motion vector is first developed for each frame. This global motion vector is generated by accumulating the number of occurrences of the motion vector for each block (eg, a block of size 8*8) in each frame. Preferably, in the present invention, the motion vector corresponding to the highest count is designated as the global motion vector.

全局运动向量分裂单元12、用于分裂所述全局运动向量以获得第一运动向量和第二运动向量; A global motion vector splitting unit 12, configured to split the global motion vector to obtain a first motion vector and a second motion vector;

参图2所示,全局运动向量会被用来确定视频帧边界处的运动向量是否可信。根据前一帧和中间帧的距离,全局运动向量首先被分裂为两部分(第一运动向量和第二运动向量)。例如,如果全局运动向量的水平分量(Global MV)是16,并且指向左边,那么便是表明全局运动是从左到右进行,中间帧距离前一帧3/4, 中间帧距离后一帧1/4,于是全局运动向量被分裂为两部分,一部分等于12, 另一部分等于4。等于12的那部分称为揭露的运动向量(MV(uncovered)),即第一运动向量;等于4的那部分称为覆盖的运动向量(MV(covered)),即第二运动向量。 Referring to Figure 2, the global motion vectors are used to determine whether the motion vectors at video frame boundaries are plausible. According to the distance between the previous frame and the intermediate frame, the global motion vector is first split into two parts (the first motion vector and the second motion vector). For example, if the horizontal component (Global MV) of the global motion vector is 16 and points to the left, it means that the global motion is from left to right, the middle frame is 3/4 from the previous frame, and the middle frame is 1 from the next frame /4, so the global motion vector is split into two parts, one part is equal to 12, and the other part is equal to 4. The part equal to 12 is called the uncovered motion vector (MV (uncovered)), that is, the first motion vector; the part equal to 4 is called the covered motion vector (MV (covered)), that is, the second motion vector.

转化单元13、用于根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; The conversion unit 13 is configured to convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index;

为了方便视频帧对应的边界偏移块和边界块的确定,必须将视频帧的运动向量转化为相对应的块索引。而视频帧的运动向量转化为块索引的过程是通过块的大小来实现的,比如,对于4x4大小的块,第一运动向量的块索引是12/4=3,第二运动向量的块索引则是4/4=1。其中,在转化过后,块索引是3的那个称为揭露的块偏移(第一块索引),块索引是1的那个称为覆盖的块偏移(第二块索引)。 In order to facilitate the determination of the boundary offset block and boundary block corresponding to the video frame, the motion vector of the video frame must be converted into a corresponding block index. The process of converting the motion vector of the video frame into a block index is realized by the size of the block. For example, for a block of 4x4 size, the block index of the first motion vector is 12/4=3, and the block index of the second motion vector Then 4/4=1. Among them, after the conversion, the block index with a block index of 3 is called the exposed block offset (the first block index), and the block index with the block index of 1 is called the covered block offset (the second block index).

边界获知单元14、用于根据所述块索引确定所述边界偏移块和边界块的分布。 The boundary obtaining unit 14 is configured to determine the distribution of the boundary offset blocks and boundary blocks according to the block index.

参照图3所示,所述边界获知单元14具体用于: Referring to Fig. 3, the boundary acquisition unit 14 is specifically used for:

获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域(图中灰色部分),这些块统统定义为视频帧的边界偏移块101; Get the block with the block index equal to the first block index on the left side of the video frame and the block with the block index equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area (the gray part in the figure), these Blocks are collectively defined as boundary offset blocks 101 of video frames;

值得一提的是,边界偏移块101均包括具有一定指向的运动向量(水平向左、向右、竖直向上、向下,或者它们的合成)。 It is worth mentioning that each boundary offset block 101 includes a motion vector with a certain direction (horizontally left, right, vertically upward, downward, or a combination thereof).

在此之后,边界获知单元14便可将块索引位于所述边界偏移块区域之外的块定义为边界块102。其中,所示位于边界偏移块之外是指位于图中环形部分的外围。 After that, the boundary obtaining unit 14 can define the block whose block index is outside the boundary offset block area as the boundary block 102 . Wherein, being located outside the boundary offset block means being located at the periphery of the circular portion in the figure.

运动向量传递单元20、用于将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向。 The motion vector transmitting unit 20 is configured to assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block.

在本实施方式中,为了减少在视频帧的边界区域由运动估计带来的误差,边界偏移块的运动向量被传递到其相邻的边界块。因此,如果边界块和边界偏移块属于同一个物体,那么经过这样的处理,就能使得它们的运动向量保持一致。 In this embodiment, in order to reduce the error caused by motion estimation in the boundary area of the video frame, the motion vector of the boundary offset block is transferred to its adjacent boundary blocks. Therefore, if the boundary block and the boundary offset block belong to the same object, after such processing, their motion vectors can be kept consistent.

其中,在本发明中,运动向量传递单元20中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 Among them, in the present invention, the way of "assigning the motion vector of the boundary offset block to the boundary block" in the motion vector transfer unit 20 includes direct copying of the motion vector, or offset, or stretching, or the above-mentioned any combination of methods.

直接复制一般适用于边界的中间部位,与边界偏移块相邻边界块可直接拷贝到方向和大小均等同于边界偏移块对应运动向量的向量; Direct copy is generally applicable to the middle part of the boundary, and the boundary block adjacent to the boundary offset block can be directly copied to a vector whose direction and size are equal to the corresponding motion vector of the boundary offset block;

而在某些部位,与边界偏移块相邻边界块可被赋予到方向相同和大小不同于边界偏移块对应运动向量的向量(拉伸); And in some parts, the boundary block adjacent to the boundary offset block can be given to a vector (stretch) with the same direction and a different size than the corresponding motion vector of the boundary offset block;

在边界的角落部位(参图3),与边界偏移块相邻边界块可被赋予到方向不同和大小相同(也可不同)于边界偏移块对应运动向量的向量(偏移); At the corner of the boundary (see Figure 3), the boundary block adjacent to the boundary offset block can be assigned a vector (offset) with a different direction and the same size (or different) from the corresponding motion vector of the boundary offset block;

当然,在本发明其它实施方式中,“将所述边界偏移块的运动向量赋给所述边界块”的方式亦可以为上述各方式(复制、拉伸、偏移)的组合。 Certainly, in other implementation manners of the present invention, the way of "assigning the motion vector of the boundary offset block to the boundary block" may also be a combination of the above-mentioned ways (copying, stretching, offsetting).

上述所提及的“将所述边界偏移块的运动向量赋给所述边界块”的步骤若用一更加优化的公式来实现运动向量的传递那便是:MV2=A*MV1+B,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 If the above-mentioned step of "assigning the motion vector of the boundary offset block to the boundary block" uses a more optimized formula to realize the transmission of the motion vector, that is: MV2=A*MV1+B, Among them, MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters.

与现有技术相比,本发明的技术方案中的方法和相应装置通过把边界偏移块的可信的运动向量赋给边界块,使得边界块指向和边界偏移块的运动向量相同的方向,即如果边界块和边界偏移块属于同一个物体,那么经过这样的处理,就能使得它们的运动向量保持一致,从而提高视频帧边界区域的图像质量。 Compared with the prior art, the method and corresponding device in the technical solution of the present invention assign the credible motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block , that is, if the boundary block and the boundary offset block belong to the same object, after such processing, their motion vectors can be kept consistent, thereby improving the image quality of the boundary area of the video frame.

以上所描述的装置实施方式仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施方式方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 The device implementations described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。 For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

以上所描述的装置实施方式仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施方式方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 The device implementations described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。 It should be understood that although this description is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the description is only for clarity, and those skilled in the art should take the description as a whole, and each The technical solutions in the embodiments can also be properly combined to form other embodiments that can be understood by those skilled in the art.

上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。 The series of detailed descriptions listed above are only specific descriptions for feasible implementations of the present invention, and they are not intended to limit the protection scope of the present invention. Any equivalent implementation or implementation that does not depart from the technical spirit of the present invention All changes should be included within the protection scope of the present invention.

Claims (6)

1.一种校正边界区域运动向量的方法,其特征在于,其包括如下步骤: 1. A method for correcting boundary region motion vectors, characterized in that it comprises the steps: S1、确定视频帧的边界偏移块和边界块; S1. Determine the boundary offset block and the boundary block of the video frame; S2、将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向; S2. Assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block; 所述步骤S1具体包括以下步骤: The step S1 specifically includes the following steps: S11、将视频帧的每一帧都发展一全局运动向量; S11. Developing a global motion vector for each frame of the video frame; S12、根据前一帧和中间帧的距离分裂所述全局运动向量以获得第一运动向量和第二运动向量; S12. Split the global motion vector according to the distance between the previous frame and the intermediate frame to obtain a first motion vector and a second motion vector; S13、根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; S13. Convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index; S14、根据所述块索引确定所述边界偏移块和边界块的分布; S14. Determine the distribution of the boundary offset block and the boundary block according to the block index; 所述步骤S14具体包括: Described step S14 specifically comprises: 获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域; Obtain the block whose block index is equal to the first block index on the left side of the video frame and the block whose block index is equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area; 将块索引位于所述边界偏移块区域之外的块定义为边界块。 A block whose block index is outside the boundary offset block area is defined as a boundary block. 2.根据权利要求1所述的方法,其特征在于,所述步骤S2中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 2. The method according to claim 1, wherein the method of "assigning the motion vector of the boundary offset block to the boundary block" in the step S2 includes direct copying of the motion vector, or offsetting , or stretching, or any combination of the above methods. 3.根据权利要求1或2所述的方法,其特征在于,所述“将所述边界偏移块的运动向量赋给所述边界块”的步骤还包括: 3. The method according to claim 1 or 2, wherein the step of "assigning the motion vector of the boundary offset block to the boundary block" further comprises: 通过公式MV2=A*MV1+B来进行运动向量的传递,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 The motion vector is transmitted by the formula MV2=A*MV1+B, where MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters. 4.一种校正边界区域运动向量的装置,其特征在于,其包括如下单元: 4. A device for correcting motion vectors in boundary regions, characterized in that it comprises the following units: 边界块获取单元、用于确定视频帧的边界偏移块和边界块; A boundary block acquisition unit, used to determine a boundary offset block and a boundary block of a video frame; 运动向量传递单元、用于将所述边界偏移块的运动向量赋给所述边界块,以使得所述边界块指向和所述边界偏移块的运动向量相同的方向; a motion vector transfer unit, configured to assign the motion vector of the boundary offset block to the boundary block, so that the boundary block points to the same direction as the motion vector of the boundary offset block; 所述边界块获取单元具体包括如下单元: The boundary block acquisition unit specifically includes the following units: 全局运动向量获取单元、用于将视频帧的每一帧都发展一全局运动向量; A global motion vector acquisition unit, configured to develop a global motion vector for each frame of the video frame; 全局运动向量分裂单元、用于根据前一帧和中间帧的距离分裂所述全局运动向量以获得第一运动向量和第二运动向量; a global motion vector splitting unit, configured to split the global motion vector according to the distance between the previous frame and the intermediate frame to obtain a first motion vector and a second motion vector; 转化单元、用于根据块的大小,将视频帧的运动向量转化为块索引,其中,所述第一运动向量对应于第一块索引,所述第二运动向量对应于第二块索引; The conversion unit is used to convert the motion vector of the video frame into a block index according to the size of the block, wherein the first motion vector corresponds to the first block index, and the second motion vector corresponds to the second block index; 边界获知单元、用于根据所述块索引确定所述边界偏移块和边界块的分布; a boundary obtaining unit, configured to determine the distribution of the boundary offset block and the boundary block according to the block index; 所述边界获知单元具体用于: The boundary learning unit is specifically used for: 获取在视频帧的左侧块索引等于第一块索引的块以及在视频帧的右侧块索引等于第二块索引的块,以构成环形的边界偏移块区域; Obtain the block whose block index is equal to the first block index on the left side of the video frame and the block whose block index is equal to the second block index on the right side of the video frame to form a ring-shaped boundary offset block area; 将块索引位于所述边界偏移块区域之外的块定义为边界块。 A block whose block index is outside the boundary offset block area is defined as a boundary block. 5.根据权利要求4所述的装置,其特征在于,所述运动向量传递单元中“将所述边界偏移块的运动向量赋给所述边界块”的方式包括运动向量的直接复制、或者偏移、或者拉伸、或者上述方式的任意组合。 5. The device according to claim 4, wherein the manner of "assigning the motion vector of the boundary offset block to the boundary block" in the motion vector transfer unit includes direct copying of the motion vector, or Offset, or stretch, or any combination of the above. 6.根据权利要求4或5所述的装置,其特征在于,所述运动向量传递单元还用于: 6. The device according to claim 4 or 5, wherein the motion vector transfer unit is further used for: 通过公式MV2=A*MV1+B来进行运动向量的传递,其中,MV1是边界偏移块的运动向量,MV2是边界块的运动向量,A和B为可配置的参数。 The motion vector is transmitted by the formula MV2=A*MV1+B, where MV1 is the motion vector of the boundary offset block, MV2 is the motion vector of the boundary block, and A and B are configurable parameters.
CN201110371037.1A 2011-11-21 2011-11-21 Method and device for correcting boundary region motion vector Expired - Fee Related CN102413270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110371037.1A CN102413270B (en) 2011-11-21 2011-11-21 Method and device for correcting boundary region motion vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110371037.1A CN102413270B (en) 2011-11-21 2011-11-21 Method and device for correcting boundary region motion vector

Publications (2)

Publication Number Publication Date
CN102413270A CN102413270A (en) 2012-04-11
CN102413270B true CN102413270B (en) 2014-02-19

Family

ID=45915091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110371037.1A Expired - Fee Related CN102413270B (en) 2011-11-21 2011-11-21 Method and device for correcting boundary region motion vector

Country Status (1)

Country Link
CN (1) CN102413270B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002523985A (en) * 1998-08-21 2002-07-30 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Problem area localization in image signals
EP1585326A1 (en) * 2004-03-30 2005-10-12 Matsushita Electric Industrial Co., Ltd. Motion vector estimation at image borders for frame rate conversion
JP4417918B2 (en) * 2006-03-30 2010-02-17 株式会社東芝 Interpolation frame creation device, motion vector detection device, interpolation frame creation method, motion vector detection method, interpolation frame creation program, and motion vector detection program
EP2011342B1 (en) * 2006-04-14 2017-06-28 Nxp B.V. Motion estimation at image borders
CN101626508A (en) * 2008-07-11 2010-01-13 宝利微电子系统控股公司 Method for judging blockage area in frame rate promotion

Also Published As

Publication number Publication date
CN102413270A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
US11490078B2 (en) Method and apparatus for deep neural network based inter-frame prediction in video coding
US20210385169A1 (en) Communication apparatus generating and eliminating redundant data packets
CN109417632B (en) 360 degree video encoding using geometric projection
CN114698335B (en) Liquid flow distribution using one or more neural networks
GB2614143A (en) Intelligent above-platform push coupling for datacenter cooling systems
JP2012516637A5 (en)
US11115678B2 (en) Diversified motion using multiple global motion models
CN113034648B (en) Image processing method, device, equipment and storage medium
CN115348796B (en) Smart leak sensor system for data center cooling systems
CN116134474A (en) Method and apparatus for rendering with respect to three-dimensional media data using delay-compensated pose prediction in a mixed reality/augmented reality enabled communication system
JP2023532436A (en) Method, Apparatus, and System for Graph Conditional Autoencoder (GCAE) with Topology-Friendly Representation
CN114026851A (en) Precision refinement of motion compensation using optical flow
US20230418726A1 (en) Detecting and optimizing program workload inefficiencies at runtime
WO2022111208A1 (en) Video frame rate up-conversion method and apparatus, device and medium
CN102413270B (en) Method and device for correcting boundary region motion vector
CA3021772A1 (en) Parallel, distributed processing in a heterogeneous, distributed environment
CN104980737B (en) Interframe mode selection method
WO2024102920A1 (en) Heterogeneous mesh autoencoders
US20230156292A1 (en) Systems & methods for smart content streaming
EP4141652A2 (en) Communication apparatus generating and eliminating redundant data packets
US20230065134A1 (en) Automated in-situ cable repair
CN202931463U (en) Video Image Stabilization Device Based on Feature Block
CN104104963A (en) Vector candidate list generation method and device
Lin et al. Self-supervised Shutter Unrolling with Events
WO2025080438A1 (en) Intra frame dynamics for lidar point cloud compression

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SOLOMON-SYSTECH (SHENZHEN) CO., LTD.

Free format text: FORMER OWNER: SUZHOU XITU SHIDING MICROELECTRONICS CO., LTD.

Effective date: 20130830

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 215021 SUZHOU, JIANGSU PROVINCE TO: 518057 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20130830

Address after: 518057, Nanshan District Shenzhen high tech Zone, central science and technology, two road, Shenzhen Software Park, building six, two floor

Applicant after: Solomon Systech (Shenzhen) Ltd.

Address before: Suzhou City, Jiangsu Province, Suzhou Industrial Park 215021 Xinghu Street No. 328 Creative Industry Park 2-B702 unit

Applicant before: Suzhou C2 Microsystems Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140219