[go: up one dir, main page]

CN1181691C - Video Motion Estimation Methods - Google Patents

Video Motion Estimation Methods Download PDF

Info

Publication number
CN1181691C
CN1181691C CNB031151337A CN03115133A CN1181691C CN 1181691 C CN1181691 C CN 1181691C CN B031151337 A CNB031151337 A CN B031151337A CN 03115133 A CN03115133 A CN 03115133A CN 1181691 C CN1181691 C CN 1181691C
Authority
CN
China
Prior art keywords
block
vector
pixel block
motion
vectors
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 - Lifetime
Application number
CNB031151337A
Other languages
Chinese (zh)
Other versions
CN1444406A (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.)
Hangzhou Nationalchip Science & Technology Co ltd
Original Assignee
Hangzhou Guoxin Science & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Guoxin Science & Technology Co Ltd filed Critical Hangzhou Guoxin Science & Technology Co Ltd
Priority to CNB031151337A priority Critical patent/CN1181691C/en
Publication of CN1444406A publication Critical patent/CN1444406A/en
Application granted granted Critical
Publication of CN1181691C publication Critical patent/CN1181691C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention relates to a method for carrying out motion estimation on the basis of the space coherence of a motion vector field in a searching mode. The present invention comprises the steps that a group of candidate vectors are determined on the basis of a block matching and searching order, according to the motion vectors of some nearby blocks and by an updating mechanism; for each candidate vector, the errors of the current pixel block and a matched reference pixel block thereof are worked out; the errors of the current pixel block and a pixel block at the same position in a reference frame are worked out; the vector with the minimal error value is determined as a motion vector; the estimated motion vector is treated by median filtering to smoothen a vector field. The present invention has the advantages of small calculation amount and low cost. Because the correctness of motion estimation is enhanced, the true motion of an object can be well described by the motion vector field.

Description

视频运动估计方法Video Motion Estimation Methods

                           技术领域Technical field

本发明属于数字视频处理技术领域,特别涉及一种利用基于块匹配搜索顺序的运动矢量场的时空相关性来进行运动估计的方法。The invention belongs to the technical field of digital video processing, and in particular relates to a method for motion estimation by utilizing the time-space correlation of the motion vector field based on the block matching search order.

                           背景技术 Background technique

一直以来,运动估计技术被广泛地应用于视频压缩编码以及数字视频格式转换等领域。为了尽可能减少传送给定图像质量的数字视频数据所需要的带宽,多种不同的视频压缩算法已经被开发用于压缩视频数据。几个多媒体技术规范委员会已经建立并提出了用于编码/压缩音频和视频数据的标准。这当中,广为人知并被广泛接受的国际标准是由运动图像专家组(MPEG)提供的,包括MPEG-1和MPEG-2标准等。For a long time, motion estimation technology has been widely used in video compression coding and digital video format conversion and other fields. In order to minimize the bandwidth required to transmit digital video data of a given picture quality, a variety of different video compression algorithms have been developed for compressing video data. Several multimedia specification committees have established and proposed standards for encoding/compressing audio and video data. Among them, the well-known and widely accepted international standards are provided by the Moving Picture Experts Group (MPEG), including MPEG-1 and MPEG-2 standards.

视频编码方法主要包括帧内压缩和帧间压缩,其中帧间压缩是其压缩比的主要来源,因此现有的视频压缩标准(MPEG1/2/4、H.261/3等等。)大多采用基于运动估计的帧间压缩方案。其原理就是先将当前帧分成若干大小相同的块,然后对每个块(当前块)在参考帧一定大小的窗口内搜索与之最相似的匹配块。当前块和匹配块的位置差称为运动矢量、像素差称为残差块。由于残差块中接近0的像素很多,通过DCT变换、量化、熵编码,就可以大幅度提高压缩比。在上述过程中,运动估计就是搜索最佳匹配块的环节。显然,运动估计不仅最费时,而且直接影响压缩效率,是视频压缩的关键和瓶颈。Video coding methods mainly include intra-frame compression and inter-frame compression, among which inter-frame compression is the main source of its compression ratio, so existing video compression standards (MPEG1/2/4, H.261/3, etc.) mostly use An inter-frame compression scheme based on motion estimation. The principle is to first divide the current frame into several blocks of the same size, and then search for the most similar matching block within a window of a certain size of the reference frame for each block (current block). The position difference between the current block and the matching block is called a motion vector, and the pixel difference is called a residual block. Since there are many pixels close to 0 in the residual block, the compression ratio can be greatly improved through DCT transformation, quantization, and entropy coding. In the above process, motion estimation is the link of searching for the best matching block. Obviously, motion estimation is not only the most time-consuming, but also directly affects the compression efficiency, which is the key and bottleneck of video compression.

扫描格式转换是当前网络环境下的计算视频、高清晰度电视和传统电视存在的共同问题,扫描格式需要在不同制式之间进行转换。解交织是实践中对所有扫描格式进行转换的一项基本要求。已经提出了许多解交织的算法,包括有简单的空间解交织的方法和高级的运动补偿解交织的方法。运动补偿解交织的关键技术是运动估计,运动估计的复杂度和性能将直接决定运动补偿解交织的复杂度和性能。解交织技术同视频压缩编码技术对运动估计的要求有所不同,它更强调运动矢量符合物体的真实运动。Scanning format conversion is a common problem in computing video, high-definition television, and traditional TV in the current network environment. Scanning formats need to be converted between different systems. Deinterleaving is an essential requirement for conversion of all scan formats in practice. Many deinterleaving algorithms have been proposed, including simple spatial deinterleaving methods and advanced motion compensation deinterleaving methods. The key technology of motion compensation de-interleaving is motion estimation, the complexity and performance of motion estimation will directly determine the complexity and performance of motion compensation de-interleaving. The de-interlacing technology is different from the video compression coding technology for motion estimation, and it emphasizes that the motion vector conforms to the real motion of the object.

现有的许多运动估计的方法都存在着一些缺陷:计算量过大,实现的代价大,比如全搜索算法;假设误差曲面的单调性,极容易陷入局部最优,比如一些经典的块匹配方法,如三步法。最重要的是,这些运动估计的方法都不能很好地描述物体的真实运动。Many existing motion estimation methods have some defects: the amount of calculation is too large, and the cost of implementation is high, such as the full search algorithm; assuming the monotonicity of the error surface, it is easy to fall into local optimum, such as some classic block matching methods , such as the three-step method. Most importantly, none of these motion estimation methods can describe the real motion of objects well.

专利号为01801368.6的发明专利公开了一种运动估计的方法,该方法首先为当前像素块确定一组候选矢量,然后选择最优候选矢量作为搜索的起点,在预定区域搜索得到最后的运动矢量。专利号为01100544.0的专利公开了另一种运动估计的方法,这种方法首先为当前搜索块确定一个最优的搜索起点,然后采用菱形搜索,并自适应地终止搜索过程。这两种方法都采用固定的从上到下地从左到右的顺序进行块匹配搜索,利用这种顺序下的运动矢量场的相关性来减少运动估计的计算量和提高搜索速度和准确性。这两种方法的候选矢量的个数和位置都是固定的,对估计出的运动矢量不再进行处理。采用固定顺序进行块匹配搜索并不能充分利用运动矢量空间的相关性,运动估计的性能在图像空间的分布也不平均。Patent No. 01801368.6 discloses a method of motion estimation. The method first determines a group of candidate vectors for the current pixel block, then selects the optimal candidate vector as the starting point of the search, and searches in a predetermined area to obtain the final motion vector. Patent No. 01100544.0 discloses another method of motion estimation. This method first determines an optimal search starting point for the current search block, then uses a diamond search, and terminates the search process adaptively. Both methods use a fixed order from top to bottom and left to right for block matching search, and use the correlation of the motion vector field in this order to reduce the amount of calculation of motion estimation and improve search speed and accuracy. The number and position of the candidate vectors of these two methods are fixed, and the estimated motion vectors are no longer processed. Using a fixed order to search for block matching can not make full use of the correlation of the motion vector space, and the performance of motion estimation is not evenly distributed in the image space.

                           发明内容Contents of Invention

本发明的目的就是针对现有技术存在的缺陷或不足,提供一种利用基于块匹配搜索顺序的运动矢量场的时空相关性,来进行运动估计的方法。采用该方法估计出的运动矢量可以更好地描述物体的真实运动。The purpose of the present invention is to provide a method for motion estimation by using the temporal-spatial correlation of the motion vector field based on the search order of the block matching to address the defects or deficiencies in the prior art. The motion vector estimated by this method can better describe the real motion of the object.

该方法包括以下步骤:(a)基于块匹配搜索的顺序,根据当前块附近几个块的运动矢量并采用一种更新机制来确定一组候选矢量;(b)对每一个所述候选矢量,计算当前像素块和其匹配的参考像素块的误差;同时计算当前像素块和参考帧中相同位置像素块的误差,选取以上误差值最小的矢量作为运动矢量;(c)对估计出的运动矢量进行中值滤波来平滑矢量场。当然,步骤(b)中表示当前像素块匹配参考帧中相同位置像素块的运动矢量可以作为步骤(a)中又一个候选矢量,再同时计算这些候选矢量对应的匹配误差。The method includes the following steps: (a) based on the order of block matching search, a group of candidate vectors is determined according to the motion vectors of several blocks near the current block and an update mechanism; (b) for each of the candidate vectors, Calculate the error of the current pixel block and its matching reference pixel block; calculate the error of the current pixel block and the same position pixel block in the reference frame at the same time, and select the vector with the minimum error value above as the motion vector; (c) to the estimated motion vector Perform median filtering to smooth the vector field. Of course, in step (b), the motion vector indicating that the current pixel block matches the pixel block at the same position in the reference frame can be used as another candidate vector in step (a), and the matching errors corresponding to these candidate vectors are calculated at the same time.

步骤(a)中块匹配搜索的顺序可以是从上到下地从左到右、从下到上地从左到右、从上到下地从右到左、从下到上地从右到左;从上到下交替地从左到右和从右到左、从下到上交替地从左到右和从右到左;从四周到中央。The order of block matching search in step (a) can be from top to bottom from left to right, from bottom to top from left to right, from top to bottom from right to left, from bottom to top from right to left; From top to bottom, alternately left to right and right to left, from bottom to top, alternately left to right and right to left; from all around to the center.

步骤(a)包含如下步骤:(1)根据块匹配搜索的顺序选择两个已经处理过的块的运动矢量、一个未经处理的块的运动矢量,一共三个矢量作为初步确定的候选矢量。两个已经处理的块选择和当前块水平相邻和垂直相邻的块;一个未经处理的块选择当前块45度对角线方向的块。(2)按照一种更新机制对初步确定的候选矢量进行更新。The step (a) includes the following steps: (1) According to the order of block matching search, select motion vectors of two processed blocks and a motion vector of an unprocessed block, a total of three vectors are used as initially determined candidate vectors. Two blocks that have been processed select the horizontally and vertically adjacent blocks to the current block; one unprocessed block selects the block in the 45-degree diagonal direction of the current block. (2) Update the initially determined candidate vectors according to an update mechanism.

步骤(a)中的步骤(2)中的更新机制就是:首先对初步确定的候选矢量中的两个按照匹配搜索的顺序已经处理过的块的运动矢量按照交替的顺序选择其中的一个。然后,在一个预定范围的矢量空间内,随机地选择一个矢量,并把这个矢量加到被选中进行更新的那一个初步确定的候选矢量上,形成更新后的矢量。这个更新后的矢量和初步确定的候选矢量中未更新的其它两个一起构成一组候选矢量。The update mechanism in step (2) in step (a) is: firstly select one of the two motion vectors of the blocks that have been processed according to the order of matching search among the initially determined candidate vectors in an alternate order. Then, in a predetermined range of vector space, a vector is randomly selected, and this vector is added to the initially determined candidate vector selected for updating to form an updated vector. This updated vector and the other two initially determined candidate vectors which have not been updated together constitute a set of candidate vectors.

步骤(b)中计算误差包含如下步骤:(1)扩大待处理的当前帧/场的像素块和通过候选矢量匹配对应的参考帧的像素块的边界,并对其进行亚采样;(2)对经亚采样后的块像素,计算当前像素块和其匹配的参考像素块的误差。Calculating the error in step (b) includes the following steps: (1) expanding the pixel block of the current frame/field to be processed and matching the boundary of the pixel block of the corresponding reference frame through the candidate vector, and subsampling it; (2) For the sub-sampled block pixels, the error between the current pixel block and its matching reference pixel block is calculated.

步骤(b)中计算误差又可以不进行亚采样,直接计算当前像素块和其匹配的参考像素块的误差。The calculation error in step (b) may not be sub-sampled, and the error between the current pixel block and its matching reference pixel block is directly calculated.

步骤(b)中计算当前像素块和其匹配的参考像素块的误差值的一种减少计算量的简单实现包含以下步骤:(1)对当前像素块相应数目的像素求和;(2)对参考帧像素块相应数目的像素求和;(3)对上述两个和求绝对差,就得到运动估计误差。当然,也可以直接计算这些像素的SAD值作为运动估计的误差。A simple implementation of reducing the amount of calculation to calculate the error value of the current pixel block and its matching reference pixel block in step (b) includes the following steps: (1) sum the corresponding number of pixels of the current pixel block; The corresponding number of pixels of the reference frame pixel block is summed; (3) the absolute difference of the above two sums is calculated to obtain the motion estimation error. Of course, the SAD values of these pixels can also be directly calculated as the motion estimation error.

步骤(c)包括如下步骤:(1)对块运动矢量的水平和垂直分量分别采用3*3的2维中值滤波;(2)对中值滤波输出的结果进行处理:中值滤波输出的水平分量和垂直分量构成的运动矢量,如果这个矢量不是参与中值滤波的8个当前块相邻块运动矢量中的任何一个,取原先当前块的运动矢量作为输出,否则取中值滤波的结果作为输出。Step (c) comprises the following steps: (1) respectively adopting 3*3 2-dimensional median filtering to the horizontal and vertical components of the block motion vector; (2) processing the result of the median filtering output: the output of the median filtering The motion vector composed of the horizontal component and the vertical component, if this vector is not any of the 8 adjacent block motion vectors of the current block participating in the median filter, the motion vector of the original current block is taken as the output, otherwise the result of the median filter is taken as output.

该发明可以对各种格式的视频信号进行运动估计。特别地,该发明适用于对数字高清晰度电视信号进行运动估计。The invention can perform motion estimation on video signals of various formats. In particular, the invention is applicable to motion estimation of digital high definition television signals.

对大多数图像而言,运动的物体通常比块要大,而且运动的物体具有惯性,这就意味着运动矢量场在时间上和空间上有很大的相关性。利用这种相关性可以更快、更准地找到匹配块,大大降低计算量。一般块匹配算法的搜索顺序是从上到下地从左到右,该发明可以采用许多其它的搜索顺序,并基于搜索顺序来选择候选矢量,可以更准确地估计运动,从而使估计出的运动矢量更接近物体的真实运动。运动估计中,计算匹配误差是计算量最大的部分,该发明提供了一个简单高效的实现方法,大大减小了计算量,降低了实现代价。该发明对估计出的矢量场进行平滑处理,可以利用相邻块的运动矢量对因为光照或噪声引起的运动估计的错误进行修正,提高了运动估计的准确性,并使运动矢量场更好地描述物体的真实运动。For most images, the moving object is usually larger than the block, and the moving object has inertia, which means that the motion vector field has a great correlation in time and space. Using this correlation can find matching blocks faster and more accurately, greatly reducing the amount of computation. The search order of the general block matching algorithm is from top to bottom and from left to right. This invention can adopt many other search orders and select candidate vectors based on the search order, which can estimate motion more accurately, so that the estimated motion vector Closer to the real motion of the object. In motion estimation, calculating the matching error is the part with the largest amount of calculation. The invention provides a simple and efficient implementation method, which greatly reduces the amount of calculation and the implementation cost. The invention smoothes the estimated vector field, and can use the motion vectors of adjacent blocks to correct motion estimation errors caused by illumination or noise, which improves the accuracy of motion estimation and makes the motion vector field better Describe the real motion of an object.

                           附图说明Description of drawings

图1是块匹配搜索顺序的一个示意图;Fig. 1 is a schematic diagram of block matching search sequence;

图2是块匹配搜索顺序的另一示意图;Fig. 2 is another schematic diagram of block matching search order;

图3是块匹配搜索顺序的又一示意图;Fig. 3 is another schematic diagram of a block matching search order;

图4是图2中搜索顺序下的一个候选矢量示意图;Fig. 4 is a schematic diagram of a candidate vector under the search order in Fig. 2;

图5是图2中搜索顺序下的另一候选矢量示意图;Fig. 5 is a schematic diagram of another candidate vector under the search order in Fig. 2;

图6是扩大块边界进行亚采样的示意图;Fig. 6 is a schematic diagram of enlarging block boundaries for subsampling;

图7是一种中值滤波前的运动矢量场的示意图;Fig. 7 is a schematic diagram of a motion vector field before median filtering;

图8是一种中值滤波后的运动矢量场的示意图。Fig. 8 is a schematic diagram of a median-filtered motion vector field.

                           具体实施方式 Detailed ways

图1是传统的采用从左到右地从上到下的顺序对当前帧/场的块进行块匹配搜索来估计运动矢量。FIG. 1 is a traditional way of estimating a motion vector by performing a block matching search on the blocks of the current frame/field from left to right and from top to bottom.

图2是采用从上到下地交替地从左到右和从右到左的顺序对当前帧/场的块进行块匹配搜索来估计运动矢量。FIG. 2 is to estimate the motion vector by performing a block matching search on the blocks of the current frame/field from top to bottom and alternately from left to right and from right to left.

图3是采用从四周到中央的顺序对当前帧/场的块进行块匹配搜索来估计运动矢量。FIG. 3 is to estimate the motion vector by performing a block matching search on the blocks of the current frame/field in order from the periphery to the center.

图4说明了图2搜索顺序下一种候选矢量的选取。图中黑色的块表示当前像素块,画有斜线的块的运动矢量是候选矢量。对于从左到右进行搜索的像素块,三个候选矢量分别是当前块正左相邻块的运动矢量、当前块正上相邻块的运动矢量、当前块右下45度对角线方向上一个块的运动矢量。Fig. 4 illustrates the selection of a candidate vector next to the search sequence in Fig. 2 . The black block in the figure represents the current pixel block, and the motion vectors of blocks with oblique lines are candidate vectors. For pixel blocks that are searched from left to right, the three candidate vectors are the motion vector of the adjacent block to the left of the current block, the motion vector of the adjacent block directly above the current block, and the motion vector of the adjacent block directly above the current block, and the 45-degree diagonal direction below the current block. A block's motion vector.

图5说明了图2搜索顺序下另一种候选矢量的选取。图中黑色的块表示当前像素块,画有斜线的块的运动矢量是候选矢量。对于从右到左进行搜索的像素块,三个候选矢量分别是当前块正右相邻块的运动矢量、当前块正上相邻块的运动矢量、当前块左下45度对角线方向上一个块的运动矢量。Fig. 5 illustrates the selection of another candidate vector under the search order in Fig. 2 . The black block in the figure represents the current pixel block, and the motion vectors of blocks with oblique lines are candidate vectors. For pixel blocks that are searched from right to left, the three candidate vectors are the motion vector of the adjacent block to the right of the current block, the motion vector of the adjacent block directly above the current block, and a The block's motion vector.

基于块匹配搜索顺序选择候选矢量,可以利用之前已经处理过的块的运动矢量,这可以使得运动估计搜索的起点更准确,加快了搜索的速度,减少了搜索的计算量;基于搜索顺序的来选择候选矢量可以更好、更充分地利用运动矢量场的时空相关性,使得运动估计的性能在空间的分布更平均,提高视觉效果。Selecting candidate vectors based on the block matching search order can use the motion vectors of blocks that have been processed before, which can make the starting point of the motion estimation search more accurate, speed up the search, and reduce the amount of calculation for the search; based on the search order. Selecting candidate vectors can make better and more full use of the temporal and spatial correlation of the motion vector field, making the performance of motion estimation more evenly distributed in space and improving the visual effect.

图6说明了扩大块边界进行亚采样。粗实线包围的块是原始的块,粗虚线包围的是扩大边界的块。□是原始像素,■是亚采样选择的用于运动估计误差计算的像素。在扩大的块上进行运动估计,可以使运动估计的结果更加准确,并可以减少块效应;亚采样可以减少用于运动估计误差计算的像素,减少计算量,亚采样的采样结构可以有多种选择。Figure 6 illustrates expanding block boundaries for subsampling. Blocks surrounded by thick solid lines are original blocks, and blocks surrounded by thick dashed lines are border-enlarged blocks. □ is the original pixel, ■ is the subsampled selected pixel for motion estimation error calculation. Performing motion estimation on an enlarged block can make the result of motion estimation more accurate and reduce block effects; subsampling can reduce the number of pixels used for motion estimation error calculation and reduce the amount of calculation. There are many types of subsampling sampling structures choose.

图7说明了中值滤波前的运动矢量场。图中粗实线包围的区域就是进行2维3*3中值滤波的区域。可以看出当前块的运动矢量因为光照或噪声等原因,它的运动矢量是不正确的。Figure 7 illustrates the motion vector field before median filtering. The area surrounded by the thick solid line in the figure is the area where the 2D 3*3 median filter is performed. It can be seen that the motion vector of the current block is incorrect due to reasons such as illumination or noise.

图8说明了中值滤波后的运动矢量场。可以看出中值滤波根据运动矢量场的空间相关性,利用邻近块的矢量纠正了当前块的运动矢量,提高了运动估计的性能,并使得运动矢量可以更好地描述物体的真实运动。Figure 8 illustrates the median filtered motion vector field. It can be seen that according to the spatial correlation of the motion vector field, the median filter corrects the motion vector of the current block by using the vector of the adjacent block, improves the performance of motion estimation, and makes the motion vector better describe the real motion of the object.

本发明具体方法首先是根据从上到下交替地从左到右和从右到左的块匹配搜索顺序选择已经处理的和当前块水平相邻和垂直相邻的两个块的运动矢量、一个未经处理的当前块45度对角线方向的块的运动矢量(如图4或图5)作为初步确定的候选矢量;对初步确定的候选矢量中的两个按照匹配搜索的顺序已经处理过的块的运动矢量按照交替的顺序选择其中的一个并在一个预定范围的矢量空间内随机地选择一个矢量,把这个矢量加到被选中的那一个需要进行更新的初步确定的候选矢量上,形成更新后的矢量。这个更新后的矢量和初步确定的候选矢量中未更新的其它两个一起构成一组候选矢量。然后对每一个候选矢量,计算当前像素块和其匹配的参考像素块的误差,同时计算当前像素块和参考帧中相同位置像素块的误差,把具有最小误差值的矢量确定为运动矢量。误差值可以通过计算这些像素的SAD来得到,SAD最小的被确定为运动矢量。最后对估计出的块运动矢量的水平和垂直分量分别采用3*3的2维中值滤波,如果中值滤波输出的水平分量和垂直分量构成的运动矢量不是参与中值滤波的8个当前块相邻块运动矢量中的任何一个,取原先当前块的运动矢量作为输出,否则取中值滤波的结果作为输出,中值滤波处理前后的矢量场如图7和图8所示。The specific method of the present invention is firstly to select the motion vectors of the two blocks that have been processed and the horizontally adjacent and vertically adjacent blocks of the current block, one The unprocessed motion vector of the block in the 45-degree diagonal direction of the current block (as shown in Figure 4 or Figure 5) is used as the initially determined candidate vector; two of the initially determined candidate vectors have been processed in the order of matching search Select one of the motion vectors of the blocks in an alternating order and randomly select a vector in a predetermined range of vector space, add this vector to the selected candidate vector that needs to be updated to form The updated vector. This updated vector and the other two initially determined candidate vectors which have not been updated together constitute a set of candidate vectors. Then, for each candidate vector, calculate the error between the current pixel block and its matching reference pixel block, and calculate the error between the current pixel block and the same position pixel block in the reference frame, and determine the vector with the smallest error value as the motion vector. The error value can be obtained by calculating the SAD of these pixels, and the smallest SAD is determined as the motion vector. Finally, a 3*3 2-dimensional median filter is used for the horizontal and vertical components of the estimated block motion vector, if the motion vector composed of the horizontal component and the vertical component output by the median filter is not the 8 current blocks participating in the median filter For any one of the motion vectors of adjacent blocks, take the motion vector of the original current block as output, otherwise take the result of median filtering as output. The vector fields before and after median filtering are shown in Figure 7 and Figure 8.

Claims (8)

1、视频运动估计方法,其特征在于该方法包括以下步骤:1, video motion estimation method, it is characterized in that the method comprises the following steps: (a)基于块匹配搜索的顺序,根据当前块附近几个块的运动矢量并采用一种更新机制来确定一组候选矢量;(a) Based on the order of block matching search, a group of candidate vectors is determined according to the motion vectors of several blocks near the current block and an update mechanism; (b)对每一个所述候选矢量,计算当前像素块和其匹配的参考像素块的误差,同时计算当前像素块和参考帧中相同位置像素块的误差,选取以上误差值最小的矢量作为运动矢量;(b) For each of the candidate vectors, calculate the error between the current pixel block and its matching reference pixel block, and calculate the error between the current pixel block and the pixel block at the same position in the reference frame, and select the vector with the smallest error value above as the motion vector; (c)对估计出的运动矢量进行中值滤波来平滑矢量场;(c) Median filtering the estimated motion vectors to smooth the vector field; 所述的步骤(a)的方法是首先根据块匹配搜索的顺序选择两个已经处理过的块的运动矢量、一个未经处理的块的运动矢量,一共三个矢量作为初步确定的候选矢量,然后按照一种更新机制对初步确定的候选矢量进行更新。The method of the step (a) is to firstly select the motion vectors of two processed blocks and the motion vector of an unprocessed block according to the order of block matching search, and a total of three vectors are used as initially determined candidate vectors, Then update the initially determined candidate vectors according to an update mechanism. 2、如权利要求1所述的视频运动估计方法,其特征在于步骤(b)中计算误差的方法是扩大待处理的当前帧/场的像素块和对应的参考帧的像素块的边界,并对其进行亚采样,然后对经亚采样后的块像素,计算当前像素块和其匹配的参考像素块的误差。2. The video motion estimation method as claimed in claim 1, wherein the method for calculating the error in the step (b) is to expand the boundary between the pixel block of the current frame/field to be processed and the pixel block of the corresponding reference frame, and It is sub-sampled, and then the error between the current pixel block and its matching reference pixel block is calculated for the sub-sampled block pixels. 3、如权利要求1所述的视频运动估计方法,其特征在于步骤(b)中计算误差就是直接计算当前像素块和其匹配的参考像素块的误差。3. The video motion estimation method according to claim 1, characterized in that calculating the error in step (b) is directly calculating the error between the current pixel block and its matching reference pixel block. 4、如权利要求1所述的视频运动估计方法,其特征在于步骤(c)是首先对块运动矢量的水平和垂直分量分别采用3*3的2维中值滤波,然后根据中值滤波输出的结果进行处理,如果中值滤波输出的水平分量和垂直分量构成的运动矢量不是参与中值滤波的8个当前块相邻块运动矢量中的任何一个,取原先当前块的运动矢量作为输出,否则取中值滤波的结果作为输出。4. The video motion estimation method according to claim 1, characterized in that step (c) is first to adopt 3*3 2-dimensional median filtering for the horizontal and vertical components of the block motion vector respectively, and then output according to the median filtering If the motion vector composed of the horizontal component and the vertical component output by the median filter is not any of the 8 current block adjacent block motion vectors participating in the median filter, the motion vector of the original current block is taken as the output, Otherwise, take the result of median filtering as output. 5、如权利要求1所述的视频运动估计方法,其特征在于块匹配搜索的顺序可以是从上到下地从左到右、从下到上地从左到右、从上到下地从右到左、从下到上地从右到左;从上到下交替地从左到右和从右到左、从下到上交替地从左到右和从右到左;从四周到中央。5. The video motion estimation method according to claim 1, characterized in that the order of block matching search can be from top to bottom and from left to right, from bottom to top and from left to right, from top to bottom and from right to Left, bottom to top, right to left; top to bottom, left to right and right to left, bottom to top, left to right and right to left; all around to the center. 6、如权利要求1所述的视频运动估计方法,其特征在于所述的两个已经处理的块为当前块的水平相邻和垂直相邻的块;所述的一个未经处理的块为当前块的45度对角线方向的块。6. The video motion estimation method according to claim 1, characterized in that said two processed blocks are horizontally adjacent and vertically adjacent blocks of the current block; said one unprocessed block is Blocks in the 45-degree diagonal direction of the current block. 7、如权利要求1所述的视频运动估计方法,其特征在于所述的更新机制就是首先对初步确定的候选矢量中的两个按照匹配搜索的顺序已经处理过的块的运动矢量按照交替的顺序选择其中的一个;然后在一个预定范围的矢量空间内,随机地选择一个矢量并把这个矢量加到被选中进行更新的那一个初步确定的候选矢量上,形成更新后的矢量,这个更新后的矢量和初步确定的候选矢量中未更新的其它两个一起构成一组候选矢量。7. The video motion estimation method as claimed in claim 1, characterized in that the update mechanism is firstly to alternate the motion vectors of the two blocks that have been processed according to the order of matching search among the initially determined candidate vectors. Select one of them in sequence; then, within a predetermined range of vector space, randomly select a vector and add this vector to the initially determined candidate vector selected for update to form an updated vector. The vector and the other two initially determined candidate vectors that have not been updated together form a set of candidate vectors. 8、如权利要求2或3所述的视频运动估计方法,其特征在于计算当前像素块和其匹配的参考像素块的误差值方法是首先对当前像素块相应数目的像素求和,然后对参考帧像素块相应数目的像素求和,再对上述两个和求绝对差,就得到运动估计误差。8. The video motion estimation method according to claim 2 or 3, characterized in that the method of calculating the error value of the current pixel block and its matching reference pixel block is to first sum the corresponding number of pixels of the current pixel block, and then calculate the error value of the reference pixel block The corresponding number of pixels in the frame pixel block is summed, and then the absolute difference of the above two sums is calculated to obtain the motion estimation error.
CNB031151337A 2003-01-24 2003-01-24 Video Motion Estimation Methods Expired - Lifetime CN1181691C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031151337A CN1181691C (en) 2003-01-24 2003-01-24 Video Motion Estimation Methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031151337A CN1181691C (en) 2003-01-24 2003-01-24 Video Motion Estimation Methods

Publications (2)

Publication Number Publication Date
CN1444406A CN1444406A (en) 2003-09-24
CN1181691C true CN1181691C (en) 2004-12-22

Family

ID=27814824

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031151337A Expired - Lifetime CN1181691C (en) 2003-01-24 2003-01-24 Video Motion Estimation Methods

Country Status (1)

Country Link
CN (1) CN1181691C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975782B (en) * 2005-11-30 2012-11-21 汤姆逊许可公司 Method of emendation for attention trajectory in video content analysis

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100846780B1 (en) * 2003-11-10 2008-07-16 삼성전자주식회사 Motion vector estimation method and device
TWI401957B (en) * 2004-07-20 2013-07-11 Qualcomm Inc Method, apparatus, computer readable medium and processor for motion vector prediction in temporal video compression
CN100340116C (en) * 2005-01-21 2007-09-26 浙江大学 Motion estimating method with graded complexity
CN100366092C (en) * 2005-04-08 2008-01-30 北京中星微电子有限公司 A Search Method Based on Motion Vector Prediction in Video Coding
CN100455023C (en) * 2006-01-25 2009-01-21 华为技术有限公司 genetic search method
CN101662679B (en) * 2008-08-26 2011-12-21 华为技术有限公司 Method and device for filtering waves
US8755437B2 (en) * 2011-03-17 2014-06-17 Mediatek Inc. Method and apparatus for derivation of spatial motion vector candidate and motion vector prediction candidate
EP2687015A4 (en) 2011-03-14 2014-12-17 Mediatek Inc Method and apparatus for deriving temporal motion vector prediction
FR2986395A1 (en) * 2012-01-30 2013-08-02 France Telecom CODING AND DECODING BY PROGRESSIVE HERITAGE
CN102970541B (en) * 2012-11-22 2015-05-27 深圳市海思半导体有限公司 Image filtering method and device
US10291931B2 (en) * 2016-10-13 2019-05-14 Ati Technologies Ulc Determining variance of a block of an image based on a motion vector for the block
CN112954325B (en) * 2019-03-11 2022-09-30 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment
CN111711823B (en) * 2020-06-30 2022-11-15 Oppo广东移动通信有限公司 Motion vector processing method and device, electronic equipment and storage medium
CN119854521B (en) * 2024-12-30 2025-10-28 上海富瀚微电子股份有限公司 Motion vector estimation method, system and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975782B (en) * 2005-11-30 2012-11-21 汤姆逊许可公司 Method of emendation for attention trajectory in video content analysis

Also Published As

Publication number Publication date
CN1444406A (en) 2003-09-24

Similar Documents

Publication Publication Date Title
CN1181691C (en) Video Motion Estimation Methods
CN101860748B (en) System and method for generating side information based on distributed video coding
CN1275470C (en) Frame interpolating method and apparatus thereof at frame rate conversion
JP2920210B2 (en) Motion vector prediction method for moving images
CN100539693C (en) Rapid motion estimating method
CN1675848A (en) Method and apparatus for performing high quality fast predictive motion search
CN104811728B (en) A kind of method for searching motion of video content adaptive
CN1695381A (en) Sharpness enhancement in post-processing of digital video signals using coding information and local spatial features
CN101299818B (en) N-level sub-pixel search method based on integer pixel search results
CN1520191A (en) Method and device for removing blocking artifacts of MPEG signals
CN1761286A (en) Method for detecting movement detection by using edge detection, and for removing ripple noise through medium filtering
CN1237811C (en) Method for determining motion vector
CN1806444A (en) Adaptive Weighted Motion Estimation Method and Frame Rate Conversion Device Adopting the Method
CN1615652A (en) Unit for and method of estimating a current motion vector
CN105872559A (en) Frame rate up-conversion method based on mixed matching of chromaticity
CN1956544A (en) Image data processing method and system using continuous/interlaced area prediction
CN1780401A (en) Decoding device and program for causing computer to execute decoding method
CN1777289A (en) A Method for Speeding up Motion Estimation Using Selective Prediction
CN111903132B (en) Image processing device and method
CN1317898C (en) A method for motion estimation search calculation in the process of video encoding and decoding
CN101483713A (en) Deinterleaving method based on moving target
CN1741618A (en) A Fast Subpixel Motion Estimation Method
CN1713733A (en) Rapid kinematics estimation of video frequency object based on MPEG-4
CN1287600C (en) Tree block structure and multi-frame-reference motion estimating method and apparatus
CN120238660B (en) Remote video conference data transmission method, system and equipment

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
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: No. 90, Wensanlu Road, Hangzhou, Zhejiang, Xihu District

Patentee after: HANGZHOU NATIONALCHIP SCIENCE & TECHNOLOGY Co.,Ltd.

Address before: No. 516, Hangzhou Road, seven Xixi Road, Zhejiang, China

Patentee before: HANGZHOU GUOXIN SCIENCE AND TE

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20041222