CN102238380B - Method and system for layered motion estimation - Google Patents
Method and system for layered motion estimation Download PDFInfo
- Publication number
- CN102238380B CN102238380B CN 201010168223 CN201010168223A CN102238380B CN 102238380 B CN102238380 B CN 102238380B CN 201010168223 CN201010168223 CN 201010168223 CN 201010168223 A CN201010168223 A CN 201010168223A CN 102238380 B CN102238380 B CN 102238380B
- Authority
- CN
- China
- Prior art keywords
- scan line
- sampling
- motion estimation
- present frame
- frame
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 239000013598 vector Substances 0.000 claims abstract description 28
- 238000005070 sampling Methods 0.000 claims description 29
- 239000000872 buffer Substances 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域 technical field
本发明有关图像处理,特别是关于一种分层运动估计(hierarchicalmotion estimation)。The present invention relates to image processing, in particular to a kind of hierarchical motion estimation (hierarchical motion estimation).
背景技术 Background technique
在执行运动估计(motion estimative,ME)以产生运动向量(motionvector,MV)时,需要从外部存储器装置撷取参考帧(例如前一帧)的像素数据。然而,受限于存储器装置的传输带宽,像素数据并无法即时由存储器装置(例如双倍数据速率同步动态随机存取存储器(double data ratesynchronous dynamic random access memory,DDR SDRAM))直接提取。When performing motion estimation (ME) to generate a motion vector (MV), pixel data of a reference frame (such as a previous frame) needs to be retrieved from an external memory device. However, due to the limitation of the transmission bandwidth of the memory device, the pixel data cannot be directly retrieved by the memory device (such as double data rate synchronous dynamic random access memory (DDR SDRAM)) in real time.
为了解决上述问题,可使用集成电路的内部存储器(例如高速缓存),以暂时储存参考帧的一部份(例如搜寻范围)。然而,对于高解析(high-definition,以下简称HD)影像(其分辨率可为1920x1080)而言,内部存储器的容量则又产生不足。例如,以HD影像的1/10大小作为搜寻范围时,需要108(也即,1080*(1/10))条扫描线的存储器容量,或相当于1658880(也即,108*1920*8)位的容量。In order to solve the above problems, an internal memory (such as cache memory) of the integrated circuit can be used to temporarily store a part of the reference frame (such as the search range). However, for high-definition (hereinafter referred to as HD) images (the resolution of which can be 1920×1080), the capacity of the internal memory is insufficient. For example, when the search range is 1/10 of an HD image, a memory capacity of 108 (ie, 1080*(1/10)) scanning lines is required, or equivalent to 1658880 (ie, 108*1920*8) bit capacity.
鉴于传统的运动估计系统或方法并无法有效地适用于较高分辨率的影像,因此,亟需提出一种新颖的机制,以适用于解析较高的影像,例如HD影像。Since traditional motion estimation systems or methods cannot be effectively applied to images with higher resolution, it is urgent to propose a novel mechanism applicable to images with higher resolution, such as HD images.
发明内容 Contents of the invention
鉴于上述,本发明实施例的目的之一在于提供一种分层运动估计系统与方法,其可在外部存储器的限制带宽下,减少对内部存储器的需求且不会影响运动估计的精密度。In view of the above, one of the objectives of the embodiments of the present invention is to provide a system and method for hierarchical motion estimation, which can reduce the demand for internal memory without affecting the precision of motion estimation under the limited bandwidth of external memory.
根据本发明实施例,第一降低取样单元降低取样参考帧,且第二降低取样单元降低取样目前帧,其中降低取样参考帧储存于粗略线缓冲器。粗略运动向量(MV)估计器根据降低取样参考帧与降低取样目前帧,以产生粗略运动向量图。精细线缓冲器撷取且储存相邻于中央扫描线的扫描线,其中该中央扫描线对应于降低取样参考帧的降低取样扫描线。精细运动向量估计器根据粗略运动向量(MV)图、目前帧与相邻于中央扫描线的储存扫描线,以产生精细运动估计(MV)图。According to an embodiment of the present invention, the first downsampling unit downsamples the reference frame, and the second downsampling unit downsamples the current frame, wherein the downsampling reference frame is stored in the coarse line buffer. A coarse motion vector (MV) estimator generates a coarse MV map based on the downsampled reference frame and the downsampled current frame. The fine line buffer fetches and stores the scanlines adjacent to the central scanline corresponding to the downsampled scanlines of the downsampled reference frame. The fine motion vector estimator generates a fine motion estimation (MV) map based on the coarse motion vector (MV) map, the current frame and the stored scanlines adjacent to the central scanline.
附图说明 Description of drawings
图1的方块图显示本发明实施例的分层运动估计(ME)系统。FIG. 1 is a block diagram showing a hierarchical motion estimation (ME) system according to an embodiment of the present invention.
图2的流程图显示本发明实施例的分层运动估计方法。FIG. 2 is a flowchart showing a hierarchical motion estimation method according to an embodiment of the present invention.
图3显示降低取样帧的一部分。Figure 3 shows a portion of a downsampled frame.
图4例示本发明实施例的群组运动估计。FIG. 4 illustrates group motion estimation according to an embodiment of the present invention.
【主要元件符号说明】[Description of main component symbols]
10 第一降低取样单元10 first downsampling unit
11 第二降低取样单元11 Second downsampling unit
12 粗略线缓冲器12 coarse line buffers
13 粗略运动向量(MV)估计器13 Coarse motion vector (MV) estimator
14 精细线缓冲器14 fine line buffers
15 精细运动向量(MV)估计器15 Fine motion vector (MV) estimator
21-25 步骤21-25 steps
具体实施方式 Detailed ways
图1的方块图显示本发明实施例的分层运动估计(ME)系统。图2的流程图显示本发明实施例的分层运动估计方法。本发明实施例可适用于高解析影像(例如分辨率为1920x1080)的编码,但并不受限于此。虽然本实施例显示二阶段的分层运动估计(ME)方法,但是本发明实施例也可适用于二阶段以上的分层运动估计(ME)。FIG. 1 is a block diagram showing a hierarchical motion estimation (ME) system according to an embodiment of the present invention. FIG. 2 is a flowchart showing a hierarchical motion estimation method according to an embodiment of the present invention. The embodiments of the present invention are applicable to encoding of high-resolution images (for example, the resolution is 1920×1080), but are not limited thereto. Although the present embodiment shows a two-stage hierarchical motion estimation (ME) method, the embodiments of the present invention are also applicable to more than two-stage hierarchical motion estimation (ME).
在本实施例的分层运动估计(ME)的第一阶段,在步骤21,以第一降低取样单元10对前一帧(一般为参考帧)进行降低取样(或次取样)。一般而言,使用降低取样因子N对帧的高度作降低取样,且使用降低取样因子M对帧的宽度作降低取样。本实施例则是采用相同降低取样因子N来取样帧的高度与宽度。在一特定实施例中,选择前一帧的搜寻范围作降低取样。此搜寻范围为原始帧的一部分(例如占原始帧的1/10)。图3显示使用降低取样因子4对帧的一部分作降低取样。在此例子中,在帧的搜寻范围的水平与垂直方向上,每4个像素选取一像素。因此,数据的容量将减少为原始搜寻范围的1/16(也即,(1/4)*(1/4),或一般为(1/N)*(1/M))。在同一步骤中,对于即将进行编码的目前帧则使用第二降低取样单元11以进行降低取样。接下来,在步骤22,将已降低取样的前一帧储存于粗略线缓冲器(coarse linebuffer)12。举例来说,如果高解析帧的搜寻范围包含108条扫描线,则可将已降低取样的前一帧储存在具有108*(1/4)*(1/4)容量的粗略线缓冲器12。需注意的是,虽然本实施例所采用的向前(forward)运动估计使用前一帧作为参考帧,但是本实施例也可应用于向后(backward)运动估计,其使用后一帧作为参考帧。In the first stage of hierarchical motion estimation (ME) in this embodiment, in
接下来,在步骤23,粗略(coarse)运动向量(MV)估计器13根据已降低取样的前一帧与已降低取样的目前帧产生粗略运动向量图(MV map)。所产生的粗略运动向量图显示目前帧对应于前一帧(或参考帧)的运动或位移。其中,对于以区块为基础的运动估计而言,在运动向量图内的每个宏区块包含一运动向量(MV)(包含有运动向量的水平分量,运动向量的垂直分量),以表示目前帧内的宏区块相应于前一帧内的宏区块的运动或位移。可使用传统的度量,例如(但不限定为)绝对差和(sum of absolute differences,SAD),以产生粗略运动向量。Next, in
关于本实施例的分层运动估计(ME)的第二阶段,在步骤24,撷取前一帧内与已降低取样扫描线相邻的扫描线(可由外部存储器撷取,例如双倍数据速率同步动态随机存取存储器(DDR SDRAM)),并且将撷取出的扫描线储存在精细线缓冲器(refine line buffer)14。在本实施例中,如果高度的降低取样因子为N,则撷取已降低取样扫描线(也称为中央扫描线)向上与向下各N条扫描线,并连同中央扫描线。换句话说,总共储存(2*N+1)条扫描线于精细线缓冲器14中。图3显示当N=4时的(2*4+1)条相邻扫描线。Regarding the second stage of layered motion estimation (ME) in this embodiment, at
接下来,在步骤25,精细(refine)运动向量(MV)估计器15根据粗略运动向量(MV)图、目前帧与储存在精细线缓冲器14的扫描线,以产生精细运动向量(MV)图。藉此,可将粗略运动向量(MV)估计器13所产生的运动向量(MV)的精确度由N像素精细为1像素。可使用传统的度量,例如(但不限定为)绝对差和(SAD),以产生精细运动向量(MV)。Next, in
鉴于目前帧中,相邻宏区块的运动向量(MV)的垂直分量通常是相异的,使得对应于不同垂直分量的各组相邻扫描线必须重新载入至精细线缓冲器14,因而造成外部存储器装置带宽的负担。因此,本实施例对于相邻宏区块并非重新载入各组相邻扫描线,而是采用群组(group)运动估计方式,使得目前帧中,对应至精细线缓冲器14的同一中央扫描线(也即,对应至前一帧的相同垂直位置)的一群宏区块得以同时处理。换句话说,群组内每一宏区块的决定相关于宏区块的垂直MV分量。图4例示群组的运动估计。如图4所示,目前帧的三个宏区块相关于前一帧的相同垂直分量(如个别箭头所指),因此将这三个宏区块归于同一群组,根据精细线缓冲器14的同一扫描线组,以同时进行运动估计。当同一群组的所有宏区块都已处理完成,则撷取另一扫描线组并储存于精细线缓冲器14。在一特定实施例中,仅目前帧的搜寻范围(如图4所示的搜寻范围)内的宏区块才进行处理,因此得以加速运动的估计。值得注意的是,搜寻范围的中央位置由中央扫描线所决定。换句话说,不同的中央扫描线将对应至不同搜寻范围的中央位置。In view of the fact that in the current frame, the vertical components of the motion vectors (MV) of adjacent macroblocks are usually different, so that each group of adjacent scan lines corresponding to different vertical components must be reloaded into the
根据上述实施例,线缓冲器(12与14)的容量将减少为SR*(1/N)*(1/M)+(2*N+1),其中SR为搜寻范围,N为高度的降低取样因子,M为宽度的降低取样因子。上述实施例可使用硬件、软件或其组合来实施。再者,实施例也可使用管线(pipelining)来实施。例如,第n个帧的分层运动估计的第二阶段可以和第(n+1)个帧的分层运动估计的第一阶段同时进行。According to the above embodiment, the capacity of the line buffers (12 and 14) will be reduced to SR*(1/N)*(1/M)+(2*N+1), where SR is the search range and N is the height The downsampling factor, where M is the downsampling factor for the width. The above-described embodiments can be implemented using hardware, software, or a combination thereof. Furthermore, embodiments may also be implemented using pipelining. For example, the second stage of hierarchical motion estimation for the nth frame can be performed concurrently with the first stage of the hierarchical motion estimation for the (n+1)th frame.
以上所述仅为本发明的优选实施例,并非用以限定本发明的权利要求;凡其它未脱离发明所公开的精神下所完成的等效改变或修饰,均应包含在所附权利要求内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the claims of the present invention; all other equivalent changes or modifications that do not deviate from the disclosed spirit of the invention should be included in the appended claims .
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010168223 CN102238380B (en) | 2010-04-22 | 2010-04-22 | Method and system for layered motion estimation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010168223 CN102238380B (en) | 2010-04-22 | 2010-04-22 | Method and system for layered motion estimation |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102238380A CN102238380A (en) | 2011-11-09 |
| CN102238380B true CN102238380B (en) | 2013-07-17 |
Family
ID=44888532
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201010168223 Expired - Fee Related CN102238380B (en) | 2010-04-22 | 2010-04-22 | Method and system for layered motion estimation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102238380B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106780677B (en) * | 2016-12-15 | 2020-01-10 | 南京偶酷软件有限公司 | Method for simulating three-dimensional animation visual effect through lens motion background layering processing |
| CN108769682B (en) * | 2018-06-20 | 2022-08-16 | 腾讯科技(深圳)有限公司 | Video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, computer device, and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040032907A1 (en) * | 2002-08-13 | 2004-02-19 | Lowell Winger | System and method for direct motion vector prediction in bi-predictive video frames and fields |
| CN101010962A (en) * | 2004-08-31 | 2007-08-01 | 皇家飞利浦电子股份有限公司 | Method and device for motion estimation |
| CN101189870A (en) * | 2005-04-28 | 2008-05-28 | 德州仪器公司 | Motion stabilization |
| CN101355698A (en) * | 2008-06-10 | 2009-01-28 | 西南交通大学 | A Layered Coding Framework for Stereo Video |
| US20090086821A1 (en) * | 2007-10-01 | 2009-04-02 | Canon Kabushiki Kaisha | Image processing apparatus and method thereof |
-
2010
- 2010-04-22 CN CN 201010168223 patent/CN102238380B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040032907A1 (en) * | 2002-08-13 | 2004-02-19 | Lowell Winger | System and method for direct motion vector prediction in bi-predictive video frames and fields |
| CN101010962A (en) * | 2004-08-31 | 2007-08-01 | 皇家飞利浦电子股份有限公司 | Method and device for motion estimation |
| CN101189870A (en) * | 2005-04-28 | 2008-05-28 | 德州仪器公司 | Motion stabilization |
| US20090086821A1 (en) * | 2007-10-01 | 2009-04-02 | Canon Kabushiki Kaisha | Image processing apparatus and method thereof |
| CN101355698A (en) * | 2008-06-10 | 2009-01-28 | 西南交通大学 | A Layered Coding Framework for Stereo Video |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102238380A (en) | 2011-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4472986B2 (en) | Motion estimation and / or compensation | |
| US7667773B2 (en) | Apparatus and method of motion-compensation adaptive deinterlacing | |
| US8542741B2 (en) | Image processing device and image processing method | |
| US20130287304A1 (en) | Image processing device, image processing method, and program | |
| US8126281B2 (en) | Image processing apparatus, method, and computer-readable medium for generating motion compensation images | |
| JP2006217644A (en) | Motion estimation system and method | |
| EP2161687B1 (en) | Video signal processing device, video signal processing method, and video signal processing program | |
| US11146746B2 (en) | Image processing device, image capturing device, image processing method, and storage medium | |
| TWI812932B (en) | Image processing apparatus using artificial intelligence super-resolution circuit and follow-up resize circuit | |
| JP4714038B2 (en) | Method and apparatus for increasing image resolution | |
| JP5216984B2 (en) | Motion information acquisition apparatus and image processing apparatus | |
| US8199824B2 (en) | Spatial resolution conversion of image signal based on motion compensation | |
| CN102238380B (en) | Method and system for layered motion estimation | |
| US6243140B1 (en) | Methods and apparatus for reducing the amount of buffer memory required for decoding MPEG data and for performing scan conversion | |
| US8243804B2 (en) | Hierarchical motion estimation for images with varying horizontal and/or vertical dimensions | |
| CN102656604B (en) | Image processing device, image processing method, and image processing program | |
| US8861605B2 (en) | Image processing method with motion estimation and image processing arrangement | |
| US11146762B2 (en) | Methods and systems for reconstructing a high frame rate high resolution video | |
| JP2012004710A (en) | Motion vector detection circuit, moving image encoding apparatus, and motion vector detection method | |
| TWI404422B (en) | Method and system of hierarchical motion estimation | |
| US8200032B2 (en) | Image processing method and related apparatus for performing image processing operation according to image blocks in horizontal direction | |
| US10015513B2 (en) | Image processing apparatus and image processing method thereof | |
| US8368809B2 (en) | Frame rate conversion with motion estimation in a plurality of resolution levels | |
| US20240331089A1 (en) | Video super-resolution method, program, and device | |
| KR101428531B1 (en) | A Multi-Frame-Based Super Resolution Method by Using Motion Vector Normalization and Edge Pattern Analysis |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130717 |