[go: up one dir, main page]

CN201374785Y - Image processing device for determining motion vectors of interpolated frames - Google Patents

Image processing device for determining motion vectors of interpolated frames Download PDF

Info

Publication number
CN201374785Y
CN201374785Y CN 200920005185 CN200920005185U CN201374785Y CN 201374785 Y CN201374785 Y CN 201374785Y CN 200920005185 CN200920005185 CN 200920005185 CN 200920005185 U CN200920005185 U CN 200920005185U CN 201374785 Y CN201374785 Y CN 201374785Y
Authority
CN
China
Prior art keywords
image
block
interpolation
vector
candidate
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
CN 200920005185
Other languages
Chinese (zh)
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.)
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D Shenzhen Ltd
Original Assignee
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D 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 MSTAR SEMICONDUCTOR CO Ltd, MStar Software R&D Shenzhen Ltd filed Critical MSTAR SEMICONDUCTOR CO Ltd
Priority to CN 200920005185 priority Critical patent/CN201374785Y/en
Application granted granted Critical
Publication of CN201374785Y publication Critical patent/CN201374785Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)

Abstract

本实用新型公开了一种用以决定插补画面的移动向量的影像处理装置,有助于提升执行画面更新频率转换运作的影像质量。该影像处理装置包含有:一储存单元,用于至少储存该插补画面的一前一原始画面与一后一原始画面以及一前一插补画面的一起始位置;以及一计算单元,耦接至该储存单元,包含有:一候选向量产生模块,用于决定该插补画面的复数区块的复数第一候选向量与复数第二候选向量;以及一移动向量决定模块,依据该插补画面的该些区块的该些第一候选向量、该些第二候选向量与该前一插补画面的该起始位置,决定位于该插补画面的影像覆盖区/影像显露区的一区块的一移动向量。

Figure 200920005185

The utility model discloses an image processing device for determining a moving vector of an interpolated image, which helps to improve the image quality of performing image update frequency conversion operation. The image processing device includes: a storage unit for at least storing a previous original picture and a subsequent original picture of the interpolation picture and a starting position of a previous interpolation picture; and a calculation unit coupled to To the storage unit, including: a candidate vector generation module, used to determine the plurality of first candidate vectors and the plurality of second candidate vectors of the plurality of blocks of the interpolation picture; and a motion vector determination module, based on the interpolation picture The first candidate vectors of the blocks, the second candidate vectors and the start position of the previous interpolation frame determine a block located in the image coverage area/image exposure area of the interpolation frame A moving vector of .

Figure 200920005185

Description

用以决定插补画面的移动向量的影像处理装置 Image processing device for determining motion vectors of interpolated frames

技术领域 technical field

本实用新型涉及一种影像处理机制,尤指一种用以决定一插补区块的一移动向量的影像处理装置。The utility model relates to an image processing mechanism, in particular to an image processing device for determining a moving vector of an interpolation block.

背景技术 Background technique

目前传统影像插补机制在决定一插补画面中一插补区块的移动向量时,系直接以区块比对算法(block matching algorithm)的运算结果来决定其移动向量,并据此产生该插补区块的影像。请参考图1,其系为区块比对算法的操作示意图。如图1所示,影像画面F2、F3系为输入影像中前、后两张的画面,而画面Finter系为传统影像插补机制所产生的一插补画面,A’~L’系代表影像画面F2、F3中的背景影像,图中的虚线箭头系表示背景影像移动的方向,而实线箭头则表示一前景物体移动的方向,在影像画面F2中F’~I’的背景影像被该前景物体所遮盖住,而在下一张影像画面F3中则是C’~F’的背景影像被该前景物体所遮盖住;由于区块比对算法可在前、后两张影像画面F2、F3中皆可找到背影影像A’、B’、J’、K’、L’,所以,可决定出相对应区块的正确目标移动向量,并将背景影像A’、B’、J’、K’、L’呈现于画面Finter上(如图1所示);另外,区块比对算法亦可在前、后两张影像画面F2、F3中找到前景物体的影像,因此,可决定出相对应区块的正确目标移动向量,并将前景物体的影像呈现于画面Finter上。At present, when the traditional image interpolation mechanism determines the motion vector of an interpolation block in an interpolation frame, it directly determines the motion vector based on the operation result of the block matching algorithm, and generates the motion vector accordingly. The image of the interpolated block. Please refer to FIG. 1 , which is a schematic diagram of the operation of the block comparison algorithm. As shown in Figure 1, the image frames F2 and F3 are the front and rear frames of the input image, and the frame Finter is an interpolation frame generated by the traditional image interpolation mechanism, and A'~L' represent the images For the background images in screens F2 and F3, the dotted arrows in the figure indicate the moving direction of the background images, while the solid arrows indicate the moving direction of a foreground object. In the image screen F2, the background images of F'~I' are drawn by the The foreground object is covered, and in the next image frame F3, the background image of C'~F' is covered by the foreground object; due to the block comparison algorithm, the front and rear two image frames F2, F3 The background image A', B', J', K', L' can be found in all of them, so the correct target moving vector of the corresponding block can be determined, and the background image A', B', J', K ', L' are presented on the screen Finter (as shown in Figure 1); in addition, the block comparison algorithm can also find the image of the foreground object in the front and rear two image frames F2, F3, therefore, can determine the corresponding The correct target movement vector corresponding to the block, and the image of the foreground object is presented on the screen Finter.

然而,在决定区域Rinter与Rinter’内的插补区块的目标移动向量时,理想上区域Rinter与Rinter’内的插补区块的目标移动向量应系为背景移动向量以使得区域Rinter与Rinter’内可呈现出背景影像,例如,区域Rinter理想上应呈现背景影像C’、D’,而区域Rinter’理想上应呈现背景影像H’、I’,然而,实际上,由于区块比对算法在影像画面F3中找不到背景影像C’、D’(已被前景物体所盖住),而在影像画面F2中找不到背景影像H’、I’(原本被前景物体所盖住),所以,区块比对算法并无法以一般影像比对的方式决定出正确的移动向量,造成插补区域Rinter、Rinter’实际所呈现的影像失真,当应用于画面更新频率(frame rate)转换时,传统影像插补机制将会大幅降低输出影像的质量。However, when determining the target motion vectors of the interpolation blocks in the regions Rinter and Rinter', ideally the target motion vectors of the interpolation blocks in the regions Rinter and Rinter' should be background motion vectors so that the regions Rinter and Rinter The background image can be presented in ', for example, the area Rinter should ideally present the background image C', D', and the area Rinter' should ideally present the background image H', I', however, in practice, due to block comparison The algorithm cannot find background images C', D' (covered by foreground objects) in image frame F3, and cannot find background images H', I' (covered by foreground objects) in image frame F2 ), therefore, the block comparison algorithm cannot determine the correct motion vector in the way of general image comparison, resulting in the distortion of the actual image presented by the interpolation area Rinter and Rinter'. When applied to the frame rate When converting, the traditional image interpolation mechanism will greatly reduce the quality of the output image.

实用新型内容Utility model content

本实用新型所要解决的技术问题是提供一种用以决定插补画面的移动向量的影像处理装置,有助于提升执行画面更新频率转换运作的影像质量。The technical problem to be solved by the utility model is to provide an image processing device for determining the motion vector of the interpolated image, which helps to improve the image quality of the image update frequency conversion operation.

为了解决以上技术问题,本实用新型提供了如下技术方案:In order to solve the above technical problems, the utility model provides the following technical solutions:

本实用新型提供一种影像处理装置。该影像处理装置用于进行运动画面插补时决定一插补画面的影像覆盖区/影像显露区的移动向量,其中该插补画面由复数个区块所组成,而该影像处理装置包含有一储存单元与一计算单元,以及该计算单元更包括一候选向量产生模块及一移动向量决定模块。该储存单元系用于至少储存该插补画面的一前一原始画面与一后一原始画面以及一前一插补画面的一起始位置;该候选向量产生模块系用于决定该插补画面的复数区块的复数第一候选向量与复数第二候选向量;该移动向量决定模块系依据该插补画面的该些区块的该些第一候选向量、该些第二候选向量与该前一插补画面的该起始位置,决定位于该插补画面的影像覆盖区/影像显露区的一区块的移动向量。The utility model provides an image processing device. The image processing device is used to determine the motion vector of the image coverage area/image revealing area of an interpolation frame when interpolating the moving image, wherein the interpolation frame is composed of a plurality of blocks, and the image processing device includes a storage The unit and a calculation unit, and the calculation unit further includes a candidate vector generation module and a motion vector determination module. The storage unit is used to at least store a previous original picture and a subsequent original picture of the interpolated picture and a starting position of a previous interpolated picture; the candidate vector generation module is used to determine the interpolated picture A plurality of first candidate vectors and a plurality of second candidate vectors of a plurality of blocks; the motion vector determining module is based on the first candidate vectors, the second candidate vectors and the previous one of the blocks of the interpolation frame The starting position of the interpolation frame determines the motion vector of a block located in the image coverage area/image revealing area of the interpolation frame.

本实用新型采用的用以决定插补画面的移动向量的影像处理方法及其相关装置针对插补画面中属于影像覆盖区或影像显露区的区块,可正确地计算出该区块的目标移动向量,使得以该目标移动向量来进行影像插补时可得到较佳的影像,有助于提升执行画面更新频率转换运作的影像质量。The image processing method and related device used in the present invention to determine the motion vector of the interpolation screen can correctly calculate the target movement of the block for the block belonging to the image coverage area or image exposure area in the interpolation screen Vector, so that a better image can be obtained when performing image interpolation with the target motion vector, which is helpful to improve the image quality of performing the frame refresh rate conversion operation.

附图说明 Description of drawings

图1为传统区块比对算法的操作示意图。FIG. 1 is a schematic diagram of the operation of a traditional block comparison algorithm.

图2为本实用新型的影像处理装置的第一实施例的组件示意图。FIG. 2 is a schematic diagram of the components of the first embodiment of the image processing device of the present invention.

图3(a)为图2所示的影像处理装置的操作流程图。FIG. 3( a ) is an operation flowchart of the image processing device shown in FIG. 2 .

图3(b)为图2所示的影像处理装置的第二实施例的操作流程图。FIG. 3( b ) is an operation flowchart of the second embodiment of the image processing device shown in FIG. 2 .

图4为图2所示的计算单元进行画面更新频率转换时所产生的输出影像的示意图。FIG. 4 is a schematic diagram of an output image generated when the computing unit shown in FIG. 2 performs frame refresh rate conversion.

图5(a)为图2所示的计算单元计算代表移动向量变异程度的数值的范例示意图。FIG. 5( a ) is a schematic diagram of an example of the calculation unit shown in FIG. 2 calculating a value representing the variation degree of the motion vector.

图5(b)为包含有多个移动向量变异值的第一数值曲线CV的范例示意图。FIG. 5( b ) is a schematic diagram of an example of a first numerical curve CV including a plurality of motion vector variation values.

图6(a)为图2所示的计算单元使用候选向量MV1进行区块比对运算所分别计算出的区块比对差值曲线DCV的范例示意图。FIG. 6( a ) is a schematic diagram of an example of block comparison difference curves DCV respectively calculated by the calculation unit shown in FIG. 2 by using the candidate vector MV1 to perform a block comparison operation.

图6(b)为图2所示的计算单元使用候选向量MV2进行区块比对运算所分别计算出的区块比对差值曲线DCV’的范例示意图。FIG. 6( b ) is a schematic diagram of an example of the block comparison difference curve DCV' calculated by the calculation unit shown in FIG. 2 using the candidate vector MV2 to perform the block comparison operation.

图7为图2所示的计算单元所决定出的起始位置P1~P4与P1’~P4’的范例示意图。FIG. 7 is a schematic diagram of an example of initial positions P1-P4 and P1'-P4' determined by the calculation unit shown in FIG. 2 .

【主要组件符号说明】[Description of main component symbols]

200影像处理装置        205计算单元200 image processing devices 205 computing units

210储存单元            215候选向量产生模块210 storage unit 215 candidate vector generation module

220移动向量决定模块    225影像产生模块220 Motion Vector Decision Module 225 Image Generation Module

2151影像差异值产生模块 2152候选向量决定模块2151 Image difference value generation module 2152 Candidate vector decision module

2201起始位置决定模块   2202向量选择模块2201 Starting position determination module 2202 Vector selection module

具体实施方式 Detailed ways

首先,为方便阅读,以下系将前一张影像画面中并未被前景物体遮住但却在下一张影像画面中被前景物体所遮住的背景影像区域,称作影像覆盖区(covered area),并将前一张影像画面中被前景物体遮住但却在下一张影像画面中出现(未被前景物体所遮住)的背景影像区域,称作影像显露区(uncovered area);举例来说,图1所示的背景影像C’、D’、E’系为影像覆盖区,而背景影像G’、H’、I’系为影像显露区;请注意,以上定义仅用以方便说明本实用新型的实施例的操作,并非本实用新型的限制。First of all, for the convenience of reading, the background image area that is not covered by the foreground object in the previous image frame but is covered by the foreground object in the next image frame is called the image coverage area (covered area) , and the background image area that is covered by the foreground object in the previous image frame but appears in the next image frame (not covered by the foreground object) is called the image revealing area (uncovered area); for example , the background images C', D', and E' shown in Figure 1 are image coverage areas, while the background images G', H', and I' are image exposure areas; please note that the above definitions are only used to facilitate the description of this The operation of the embodiments of the utility model is not a limitation of the utility model.

请搭配参照图2与图3(a),其分别绘示本实用新型第一实施例的影像处理装置200及其相关操作步骤的流程;为了方便说明,以下系搭配图3(a)的步骤来说明图2的影像处理装置200的操作,需注意的是,倘若大体上可达到相同的结果,并不需要一定照图3(a)所示的流程中的步骤顺序来进行,且图3(a)所示的步骤不一定要连续进行,亦即其它步骤亦可插入其中。如图2所示,影像处理装置200包含有一计算单元205与一储存单元210,影像处理装置200用于进行运动画面插补时决定一插补画面的至少影像覆盖区/影像显露区的移动向量,而该插补画面系由复数个区块所组成;其中储存单元210系用于至少储存一插补画面的前一张原始画面与其后一张原始画面以及前一张插补画面中影像覆盖区/影像显露区的一起始位置(starting position/point),计算单元205则耦接至储存单元210,并包含一候选向量产生模块215、一移动向量决定模块220与一影像产生模块225,候选向量产生模块215用于决定该插补画面的复数区块的复数第一候选向量(亦称为左移动向量)与复数第二候选向量(亦称为右移动向量),而移动向量决定模块220系依据该插补画面的该些区块的该些左移动向量、右移动向量与该前一张插补画面的该起始位置,来决定位于该插补画面的影像覆盖区/影像显露区的每一区块的相对应移动向量,以及影像产生模块225系依据移动向量决定模块220所决定的移动向量来产生该插补画面的影像覆盖区/影像显露区中每一区块的影像。Please refer to FIG. 2 and FIG. 3(a), which respectively illustrate the flow of the image processing device 200 and its related operating steps in the first embodiment of the present utility model; for the convenience of description, the following are the steps in conjunction with FIG. 3(a) To illustrate the operation of the image processing device 200 in FIG. 2, it should be noted that, if substantially the same result can be achieved, it is not necessary to follow the sequence of steps in the flow shown in FIG. 3(a), and FIG. 3 The steps shown in (a) do not have to be performed consecutively, ie other steps can also be interposed therein. As shown in FIG. 2, the image processing device 200 includes a calculation unit 205 and a storage unit 210. The image processing device 200 is used to determine the motion vector of at least the image coverage area/image revealing area of an interpolation frame when interpolating the moving image. , and the interpolation picture is composed of a plurality of blocks; wherein the storage unit 210 is used to at least store the previous original picture and the next original picture of an interpolation picture and the image overlay in the previous interpolation picture A starting position (starting position/point) of the area/image revealing area, the calculation unit 205 is then coupled to the storage unit 210, and includes a candidate vector generation module 215, a motion vector determination module 220 and an image generation module 225, the candidate The vector generation module 215 is used to determine the plurality of first candidate vectors (also referred to as left motion vectors) and the plurality of second candidate vectors (also referred to as right motion vectors) of the plurality of blocks of the interpolated picture, and the motion vector determination module 220 The image coverage area/image revealing area located in the interpolation frame is determined according to the left movement vectors, right movement vectors of the blocks of the interpolation frame and the initial position of the previous interpolation frame The corresponding motion vector of each block, and the image generation module 225 generates the image of each block in the image coverage area/image exposure area of the interpolation frame according to the motion vector determined by the motion vector determination module 220 .

详细来说,候选向量产生模块215更包含一影像差异值产生模块2151与一候选向量决定模块2152,影像差异值产生模块2151系依据一区块的复数个邻近区块的复数原始移动向量来决定该区块的一影像差异值(步骤305),候选向量决定模块2152则依据一维空间复数连续区块的复数影像差异值分别决定该复数连续区块的该些左移动向量与该些右移动向量(步骤310)。此外,移动向量决定模块220则包含一起始位置决定模块2201与一向量选择模块2202,起始位置决定模块2201系利用该插补画面的该复数个区块的该些左移动向量及该些右移动向量的其中之一,来计算该复数个区块所对应的复数个区块比对差值,并依据该些复数个区块比对差值的数值变化来决定该插补画面的该起始位置(步骤315),以及向量选择模块2202系依据该插补画面的该起始位置与该前一插补画面的该起始位置来产生一参考向量,并比较该参考向量与该插补画面的影像覆盖区/影像显露区中每一区块的该相对应左、右移动向量,选取该相对应左、右移动向量与该参考向量较不相近的其中之一来作为该每一区块的目标移动向量(步骤320)。In detail, the candidate vector generation module 215 further includes an image difference value generation module 2151 and a candidate vector determination module 2152. The image difference value generation module 2151 is determined according to the complex original motion vectors of a plurality of adjacent blocks of a block An image difference value of the block (step 305), the candidate vector determination module 2152 respectively determines the left motion vectors and the right motion vectors of the multiple consecutive blocks according to the multiple image difference values of the multiple consecutive blocks in one-dimensional space vector (step 310). In addition, the motion vector determining module 220 includes a starting position determining module 2201 and a vector selecting module 2202. The starting position determining module 2201 utilizes the left moving vectors and the right moving vectors of the plurality of blocks of the interpolation frame. One of the moving vectors is used to calculate the comparison difference of the plurality of blocks corresponding to the plurality of blocks, and the starting point of the interpolation frame is determined according to the numerical change of the comparison difference of the plurality of blocks. start position (step 315), and the vector selection module 2202 generates a reference vector according to the start position of the interpolation frame and the start position of the previous interpolation frame, and compares the reference vector with the interpolation For the corresponding left and right motion vectors of each block in the image coverage area/image exposure area of the screen, select one of the corresponding left and right motion vectors that is less similar to the reference vector as the each area Target movement vector for the block (step 320).

请注意,第一实施例的原始移动向量系依据前一张原始画面及后一张原始画面进行区块比对所获得,而决定该插补画面的该起始位置的步骤(亦即步骤315)可先利用该些左移动向量及该些右移动向量其中之一,来计算该复数个区块所对应的复数个区块比对差值,接着再依据所计算的该些区块比对差值的数值变化来决定该起始位置,详细操作将于后续说明。值得注意的是,在第一实施例中影像处理装置200并未决定前一插补画面的影像覆盖区/影像显露区的起始位置,换言之,其系假设在已得知前一插补画面的影像覆盖区/影像显露区的起始位置的状况下,仅计算目前该张插补画面中影像覆盖区/影像显露区的起始位置,而不需额外计算前一插补画面的影像覆盖区/影像显露区的起始位置。Please note that the original motion vector in the first embodiment is obtained by comparing the blocks of the previous original frame and the next original frame, and the step of determining the starting position of the interpolated frame (that is, step 315 ) can first use one of the left movement vectors and the right movement vectors to calculate the comparison difference of the plurality of blocks corresponding to the plurality of blocks, and then compare the calculated blocks according to The starting position is determined by the numerical change of the difference, and the detailed operation will be explained later. It is worth noting that in the first embodiment, the image processing device 200 does not determine the initial position of the image coverage area/image revealing area of the previous interpolation frame, in other words, it assumes that the previous interpolation frame In the case of the initial position of the image coverage area/image exposure area, only the initial position of the image coverage area/image exposure area in the current interpolation frame is calculated, without additional calculation of the image coverage of the previous interpolation frame The starting position of the region/image revealing region.

此外,在本实用新型的第二实施例中,搭配参照图3(b)的流程图,图2的候选向量产生模块215亦可被设计用来决定一第一插补画面的至少一第一插补区块的候选向量(分别称为左、右移动向量)MV1、MV2(步骤405),以及决定一第二插补画面的至少一第二插补区块的候选向量MV1’、MV2’(步骤410),实作上在本实施例中候选向量产生模块215对第一、第二插补画面中的每一插补区块皆产生相对应的两候选向量,每一区块的大小例如包含有8×8的像素范围;此外,移动向量决定模块220系被设计为至少分别使用第一插补区块的一候选向量(例如MV1)与第二插补区块的一候选向量(例如MV1’)来计算第一、第二插补画面的复数个插补区块所对应的复数个区块比对差值(步骤415与步骤420),并将该等区块比对差值储存至储存单元210中,接着再依据前述该等区块比对差值的数值变化来决定第一插补画面中至少一起始位置与第二插补画面中至少一起始位置(步骤425),其中该两起始位置系为一影像覆盖区或一影像显露区的边缘位置,移动向量决定模块220会依据第一插补画面中该起始位置与第二插补画面中该起始位置来决定第二插补区块的目标移动向量(步骤430),其中第一、第二插补画面之间至少存在一非影像插补所产生的画面,亦即,第一插补画面可以是第二插补画面前一张影像插补所产生的画面,举例来说,请参照图4,其所绘示为图2所示的计算单元205对多个输入影像(图框或图场,在此仅绘示Fn-1、Fn、Fn+1)进行画面更新频率转换(frame rate conversion)以产生多个输出影像,例如,图框Fn-1、Fn、Fn+1等系为60Hz的输入图框,计算单元205系将该等输入图框进行画面更新频率转换以产生具有120Hz的图框;频率60Hz与120Hz非本实用新型的限制。下述的操作虽以第二实施例为例进行说明,然其操作亦适用于第一实施例,为省略篇幅,不另赘述。In addition, in the second embodiment of the present utility model, with reference to the flowchart of FIG. 3(b), the candidate vector generation module 215 in FIG. 2 can also be designed to determine at least one first interpolation frame Candidate vectors (referred to as left and right motion vectors) MV1, MV2 of the interpolation block (respectively referred to as left and right motion vectors) (step 405), and candidate vectors MV1', MV2' of at least one second interpolation block of a second interpolation frame are determined (Step 410). In practice, in this embodiment, the candidate vector generation module 215 generates two corresponding candidate vectors for each interpolation block in the first and second interpolation frames. The size of each block is For example, it includes a pixel range of 8×8; in addition, the motion vector determination module 220 is designed to use at least one candidate vector (such as MV1) of the first interpolation block and one candidate vector of the second interpolation block ( For example, MV1') to calculate a plurality of block comparison differences corresponding to a plurality of interpolation blocks in the first and second interpolation frames (step 415 and step 420), and compare the difference values of these blocks Store in the storage unit 210, and then determine at least one starting position in the first interpolation frame and at least one starting position in the second interpolation frame according to the numerical changes of the above-mentioned block comparison differences (step 425), Wherein the two starting positions are edge positions of an image coverage area or an image revealing area, and the motion vector determination module 220 will determine according to the starting position in the first interpolation frame and the starting position in the second interpolation frame Determine the target motion vector of the second interpolation block (step 430), wherein there is at least one non-image interpolation frame between the first and second interpolation frames, that is, the first interpolation frame can be the second interpolation frame For example, please refer to FIG. 4, which shows the calculation unit 205 shown in FIG. 2 for a plurality of input images (frames or fields, in This only shows Fn-1, Fn, Fn+1) for frame rate conversion to generate multiple output images, for example, frame Fn-1, Fn, Fn+1, etc. are 60Hz input Frames, the calculation unit 205 converts the input frames to the frame update frequency to generate a frame with 120 Hz; the frequency of 60 Hz and 120 Hz is not limited by the present invention. Although the following operations are described by taking the second embodiment as an example, the operations are also applicable to the first embodiment, and will not be repeated for brevity.

实际上处理时,影像处理装置200系于画面Fn-1、Fn中产生一插补画面(第一插补画面F’),并于画面Fn、Fn+1中产生另一插补画面(第二插补画面F”),第二插补画面F”即是目前欲插补出的画面而第一插补画面F’是前一张影像插补所产生的画面;在另一实施例中,第一插补画面亦可以是第二插补画面F”后一张影像插补所产生的画面,此不违背本实用新型的技术精神。以图4的影像画面Fn-1、Fn、Fn+1为例子来说,前景物体的移动方向系由右至左水平移动,而背景影像系由左至右水平移动;需注意的是,在此为方便说明系仅以水平移动的例子作为说明,然而,任一特定方向(垂直方向或画面的对角方向等)的影像移动皆可使用本实用新型的实施例进行处理。In actual processing, the image processing device 200 generates an interpolation frame (the first interpolation frame F') among the frames Fn-1 and Fn, and generates another interpolation frame (the first interpolation frame F') among the frames Fn and Fn+1. Two interpolation frames F"), the second interpolation frame F" is the frame to be interpolated at present and the first interpolation frame F' is the frame produced by interpolation of the previous image; in another embodiment , the first interpolation picture also can be the second interpolation picture F " the picture produced by image interpolation after ", this does not violate the technical spirit of the present utility model. With the picture picture Fn-1, Fn, Fn of Fig. 4 +1 As an example, the moving direction of the foreground object is moving horizontally from right to left, while the background image is moving horizontally from left to right; it should be noted that, for the convenience of explanation, only the example of horizontal movement is used as an illustration However, image movement in any specific direction (vertical direction or diagonal direction of the screen, etc.) can be processed by the embodiments of the present invention.

以下叙述系先对候选向量产生模块215针对每一插补画面(包括F’、F”等)的每一插补区块产生两候选向量的实际运作来进行说明;于此,画面F’系指第一插补画面,而画面F”系指第二插补画面。首先,影像差异值产生模块2151会依据区块比对算法(block matching algorithm)计算所有插补区块的移动向量,再以每一个所计算出的移动向量与其复数个邻近区块的复数个移动向量,来计算移动向量的混乱程度,以算出一数值曲线,其中,以本实施例来说,该数值曲线系为沿某一插补区块水平方向的移动向量混乱程度的剖面所形成的曲线,该数值曲线即为一维空间复数个连续区块的差异值,而该混乱程度代表移动向量的变异值(motion vector variance),亦即,该数值曲线包含有沿着一特定方向上代表不同移动向量变异程度的复数个数值。请参照图5(a),图5(a)是本实用新型计算代表移动向量变异程度的数值的范例示意图;例如,若第一插补区块与其复数个邻近区块(如图5(a)所示,位于5×5的区块范围)依区块比对算法所计算出的复数个移动向量分别是MV00与MV-2-2~MV22,则根据该等移动向量可计算出一移动向量变异值MV_VAR,其算法是取该等移动向量中最大水平分量减去其中最小水平分量所得的绝对值,再加上该等移动向量中最大垂直分量减去其中最小垂直分量所得的绝对值,MV_VAR可利用以下的等式表示之:The following description first explains the actual operation of the candidate vector generating module 215 generating two candidate vectors for each interpolation block of each interpolation frame (including F', F", etc.); here, the frame F' is refers to the first interpolation frame, and frame F" refers to the second interpolation frame. First, the image difference value generation module 2151 calculates the motion vectors of all interpolated blocks according to the block matching algorithm, and then uses the multiple motions of each calculated motion vector and its multiple adjacent blocks vector to calculate the degree of confusion of the moving vector to calculate a numerical curve, wherein, in this embodiment, the numerical curve is a curve formed by the section of the degree of confusion of the moving vector along the horizontal direction of a certain interpolation block , the numerical curve is the difference value of a plurality of consecutive blocks in one-dimensional space, and the degree of confusion represents the variation value of the motion vector (motion vector variance), that is, the numerical curve contains a number representing different A plural number of values for the degree of variation of the motion vector. Please refer to Fig. 5(a), Fig. 5(a) is a schematic diagram of an example of calculating the value representing the degree of variation of the motion vector in the present invention; for example, if the first interpolation block and its multiple adjacent blocks (as shown in Fig. 5(a ), located in the block range of 5×5), the complex motion vectors calculated by the block comparison algorithm are MV00 and MV-2-2~MV22 respectively, and a motion vector can be calculated according to these motion vectors Vector variation value MV_VAR, its algorithm is to take the absolute value obtained by subtracting the smallest horizontal component from the largest horizontal component in the moving vectors, plus the absolute value obtained by subtracting the smallest vertical component from the largest vertical component in the moving vectors, MV_VAR can be represented by the following equation:

MV_VAR=|MAX(MVx)-MIN(MVx)|+|MAX(MVy)-MIN(MVy)|等式(1)MV_VAR=|MAX(MV x )-MIN(MV x )|+|MAX(MV y )-MIN(MV y )|equation (1)

其中MVx和MVy分别代表水平分量(x轴分量)与垂直分量(y轴分量)。需注意的是,5×5的区块范围并非是本实用新型的限制,其亦可利用N×N或是N×M的区块范围来实作之,其中参数N与M皆是正整数且N不等于M;此外,计算移动向量变异值MV_VAR的方式亦可改用等式(2)或等式(3)来实现:Where MVx and MVy respectively represent the horizontal component (x-axis component) and the vertical component (y-axis component). It should be noted that the block range of 5×5 is not a limitation of the present invention, and it can also be implemented by using a block range of N×N or N×M, wherein the parameters N and M are both positive integers and N is not equal to M; in addition, the method of calculating the motion vector variation value MV_VAR can also be realized by using equation (2) or equation (3):

MV_VAR=|MAX(MVx)-MIN(MVx)|+|MAX(MVy)-MIN(MVy)|+SADMV_VAR=|MAX(MV x )-MIN(MV x )|+|MAX(MV y )-MIN(MV y )|+SAD

等式(2)Equation (2)

MV_VAR=α×{|MAX(MVx)-MIN(MVx)|+|MAX(MVy)-MIN(MVy)|}+β×SADMV_VAR=α×{|MAX(MV x )-MIN(MV x )|+|MAX(MV y )-MIN(MV y )|}+β×SAD

等式(3)Equation (3)

其中数值SAD系为第一插补区块依照区块比对法所算出的一区块比对差值,参数α、β系为加权参数;凡可用以计算代表移动向量变异程度的数值的任一实施变化,皆属于本实用新型的范畴。由上所述,依据等式(1)、等式(2)或等式(3)其中之一,计算单元205逐一针对不同的插补区块进行计算,如此可得出第一数值曲线CV,如图5(b)所示。Among them, the numerical value SAD is a block comparison difference calculated by the first interpolation block according to the block comparison method, and the parameters α and β are weighting parameters; A change in implementation all belongs to the category of the present utility model. From the above, according to one of equation (1), equation (2) or equation (3), the calculation unit 205 performs calculations for different interpolation blocks one by one, so that the first value curve CV can be obtained , as shown in Figure 5(b).

图5(b)所绘示为是本实用新型包含有多个移动向量变异值的第一数值曲线CV。MB00系为第一插补区块,而在图5(b)中候选向量决定模块2152系决定出第一插补区块MB00的两候选向量MV1、MV2,首先,以背景或前景影像移动的方向(例如水平方向)来看,候选向量决定模块2152在空间上延着第一插补区块MB00的两侧复数个(例如两侧各六个,MB10~MB60与MB-10~MB-60)区块的相对应移动向量变异值,在该等相对应移动向量变异值范围内取出一极大值(例如图5(b)所示之VARmax),并在该等相对应移动向量变异值范围内找出该极大值VARmax左、右两侧的极小值所对应到的区块,例如,可找到区块MB-40与MB50,而此左、右两区块MB-40与MB50分别利用区块比对算法所计算的移动向量即作为第一插补区块MB00的两候选向量MV1、MV2,换句话说,第一插补区块MB00的候选向量MV1系对应至位于第一数值曲线CV的极大值VARmax的左侧的极小值VARmin,亦称候选向量MV1为第一插补区块MB00的左移动向量,而其候选向量MV2系对应至位于第一数值曲线CV的极大值VARmax的右侧的极小值VARmin’,亦称候选向量MV2为第一插补区块MB00的右移动向量,;而候选向量MV1、MV2的其中之一系对应至背景移动向量(background motionvector),而其另一则对应于前景移动向量(foreground motion vector),这是因为属于影像覆盖区或影像显露区的插补区块周围的移动向量变异值将会相当大,而左、右两侧的最小移动向量变异值所对应的影像区块,其会对应于一前景移动向量或一背景移动向量,视其位于影像覆盖区或影像显露区而定。因此,若第一插补区块MB00系位于影像覆盖区与影像显露区的其中之一,则其候选向量MV-1、MV2的其中之一对应于背景移动向量,而其另一对应于前景移动向量;需注意的是,本实用新型的实施例中的两候选向量(或称左、右移动向量)实质上分别是一前景向量与一背景向量,实际运算时一区块的两候选向量可能并非恰好是前景、背景向量,然本实用新型的影像处理装置200亦可适用于此一情况中。藉由上述的操作,候选向量决定模块2152可计算出第一插补画面F’中每一插补区块的相对应两候选向量MV1与MV2。FIG. 5( b ) shows the first numerical curve CV of the present invention including a plurality of motion vector variation values. MB00 is the first interpolation block, and in FIG. 5(b), the candidate vector determination module 2152 determines the two candidate vectors MV1 and MV2 of the first interpolation block MB00. From the perspective of the direction (for example, the horizontal direction), the candidate vector determination module 2152 spatially extends a plurality of two sides of the first interpolation block MB00 (for example, six on each side, MB10~MB60 and MB-10~MB-60) For the corresponding motion vector variation value of the block, a maximum value (such as VARmax shown in Figure 5(b)) is taken out within the range of the corresponding motion vector variation value, and within the range of the corresponding motion vector variation value Find the blocks corresponding to the minimum values on the left and right sides of the maximum value VARmax, for example, you can find blocks MB-40 and MB50, and the left and right blocks MB-40 and MB50 are respectively The motion vectors calculated by the block comparison algorithm are the two candidate vectors MV1 and MV2 of the first interpolation block MB00. In other words, the candidate vector MV1 of the first interpolation block MB00 corresponds to the first value The minimum value VARmin on the left side of the maximum value VARmax of the curve CV is also called the candidate vector MV1 as the left moving vector of the first interpolation block MB00, and its candidate vector MV2 corresponds to the pole located on the first value curve CV The minimum value VARmin' on the right side of the large value VARmax is also called the candidate vector MV2 as the right motion vector of the first interpolation block MB00; and one of the candidate vectors MV1 and MV2 corresponds to the background motion vector (background motionvector), and the other corresponds to the foreground motion vector (foreground motion vector), this is because the motion vector variation value around the interpolation block belonging to the image coverage area or image exposure area will be quite large, while the left and right The image block corresponding to the minimum motion vector variation value on both sides corresponds to a foreground motion vector or a background motion vector, depending on whether it is located in the image coverage area or the image exposure area. Therefore, if the first interpolation block MB00 is located in one of the image coverage area and the image exposure area, one of its candidate vectors MV-1 and MV2 corresponds to the background motion vector, and the other corresponds to the foreground Motion vector; it should be noted that the two candidate vectors (or called left and right motion vectors) in the embodiment of the present utility model are substantially a foreground vector and a background vector respectively, and the two candidate vectors of a block during actual operation It may not be exactly the foreground and background vectors, but the image processing device 200 of the present invention is also applicable to this situation. Through the above operations, the candidate vector determination module 2152 can calculate two corresponding candidate vectors MV1 and MV2 for each interpolation block in the first interpolation frame F'.

请参照图6(a),其所绘示为本实用新型的起始位置决定模块2201使用第一插补画面F’的每一插补区块的左候选向量MV1进行区块比对运算所分别计算出的对应于第一插补画面F’的复数个插补区块的复数个区块比对差值(以图6(a)所示的曲线DCV表示);依据该等区块比对差值DCV的数值变化,起始位置决定模块2201可决定出第一插补画面F’的复数个起始位置,而该等起始位置系位于影像覆盖区(或影像显露区)的边缘,因此可用于判断出影像覆盖区(或影像显露区)的实际影像区域。实作上,针对曲线DCV(包含有使用候选向量MV1所算出的复数个区块比对差值),起始位置决定模块2201系侦测其数值变化的大小,当曲线DCV(包含有使用候选向量MV1所算出的复数个区块比对差值)中一由左至右的数值变化由小至大改变且包含达到一预定值TH的一区块比对差值时,起始位置决定模块2201会以该区块比对差值所对应的区块位置来作为该第一插补画面中一起始位置,亦称为影像覆盖区(或影像显露区)的起始点;例如,以图6(a)来说,起始位置决定模块2201系将区块比对差值D1所对应的起始位置P1以及区块比对差值D2所对应的起始位置P2决定为可判断出影像覆盖区(或影像显露区)的边缘位置,这是因为以影像画面Fn-1、Fn中的水平方向来说,前景物体系由右至左移动,而背景影像系由左至右移动,使用影像范围R1内的区块的候选向量MV1(此时实际上系对应于背景移动向量)来计算其所对应到的一区块比对差值,系取第一插补画面F’之前、后两张影像画面Fn-1、Fn的影像范围R1’与R1”内的影像来计算,而因为影像范围R1’与R1”的影像系为相同/相似的背景影像,所以影像范围R1所对应到的计算出的区块比对差值皆相当小;当所计算的影像范围内的区块实际系位于影像覆盖区时(例如影像范围R2内的区块),则使用候选向量MV1(此时实际上仍对应于背景移动向量)所计算出的区块比对差值会开始变大,这是因为在前、后两张影像画面F1、F2的影像范围R2’与R2”内找不到相同或相似的影像,其中影像范围R2’内系背景影像,影像范围R2”内系前景影像;以影像范围R1与R2之间的一起始位置所对应的计算出的区块比对差值来说,其数值变化将由左至右、由小至大突然增加而大于预定值TH,因此区块比对差值D1所对应的起始位置P1即是影像覆盖区(或影像显露区)的一边缘位置,请注意,此时仅知起始位置P1系影像覆盖区或影像显露区的边缘位置,需待计算单元205后续进行其它运算始能得知起始位置P1实际系为影像覆盖区的边缘位置。Please refer to FIG. 6(a), which shows the block comparison operation performed by the starting position determination module 2201 of the present invention using the left candidate vector MV1 of each interpolation block in the first interpolation frame F' A plurality of block comparison differences (represented by the curve DCV shown in FIG. For the numerical change of the difference value DCV, the starting position determination module 2201 can determine a plurality of starting positions of the first interpolation frame F', and these starting positions are located at the edge of the image coverage area (or image revealing area) , so it can be used to determine the actual image area of the image coverage area (or image exposure area). In practice, for the curve DCV (including a plurality of block comparison differences calculated using the candidate vector MV1), the starting position determination module 2201 detects the magnitude of the value change, when the curve DCV (including the candidate vector MV1) When a value change from left to right among the multiple block comparison differences calculated by vector MV1 changes from small to large and includes a block comparison difference reaching a predetermined value TH, the starting position determination module 2201 will use the block position corresponding to the block comparison difference as a starting position in the first interpolation frame, which is also called the starting point of the image coverage area (or image revealing area); for example, as shown in FIG. 6 For (a), the starting position determination module 2201 determines the starting position P1 corresponding to the block comparison difference D1 and the starting position P2 corresponding to the block comparison difference D2 so that the image coverage can be determined. area (or image exposure area), this is because in the horizontal direction of the image frame Fn-1, Fn, the foreground object system moves from right to left, and the background image system moves from left to right, using the image The candidate vector MV1 of the block in the range R1 (actually corresponding to the background motion vector at this time) is used to calculate the comparison difference of a block corresponding to it, which is taken before and after the first interpolation frame F' The images in the image ranges R1' and R1" of the image frames Fn-1 and Fn are calculated. Since the images in the image ranges R1' and R1" are the same/similar background images, the image range R1 corresponds to. The calculated block comparison differences are quite small; when the calculated blocks in the image range are actually located in the image coverage area (for example, the blocks in the image range R2), then use the candidate vector MV1 (actually at this time Still corresponding to the background motion vector) the block comparison difference calculated will start to become larger, this is because no identical or Similar images, wherein the image range R2' is the background image, and the image range R2" is the foreground image; in terms of the calculated block comparison difference corresponding to a starting position between the image ranges R1 and R2, Its numerical value will suddenly increase from left to right, from small to large, and be greater than the predetermined value TH, so the initial position P1 corresponding to the block comparison difference D1 is an edge position of the image coverage area (or image exposure area) , please note that at this moment, it is only known that the starting position P1 is the edge position of the image coverage area or the image exposure area, and the calculation unit 205 needs to perform other calculations to know that the starting position P1 is actually the edge position of the image coverage area .

此外,使用影像范围R3内的区块的候选向量MV1(此时实际上系对应于前景移动向量)来计算其所对应到的一区块比对差值,会取影像画面Fn-1、Fn的影像范围R3’与R3”内的影像来计算,而因为影像范围R3’与R3”的影像系为相同/相似的前景影像,所以影像范围R3所对应到的计算出的区块比对差值皆相当小;当所计算的影像范围内的区块实际系位于影像显露区时(例如影像范围R4内的区块),则使用候选向量MV1(此时实际上仍对应于前景移动向量)所计算出的区块比对差值会开始变大,这是因为在影像画面F1、F2的影像范围R4’与R4”内找不到相同或相似的影像,其中影像范围R4’内系前景影像,影像范围R4”内系背景影像;以影像范围R3与R4之间的一起始位置所对应的计算出的区块比对差值来说,其数值变化将由左至右、由小至大突然增加而大于预定值TH,因此区块比对差值D2所对应的起始位置P2即是影像覆盖区(或影像显露区)的一边缘位置,请注意,此时仅知起始位置P2系影像覆盖区或影像显露区的边缘位置,需待计算单元205后续进行其它运算始能得知起始位置P2实际系为影像显露区的边缘位置。In addition, using the candidate vector MV1 of the block in the image range R3 (actually corresponding to the foreground motion vector at this time) to calculate the comparison difference of a block corresponding to it, the image frames Fn-1, Fn The images in the image range R3' and R3" are calculated, and because the images in the image range R3' and R3" are the same/similar foreground images, the calculated block ratio corresponding to the image range R3 is poor The values are quite small; when the calculated block in the image range is actually located in the image exposure area (for example, the block in the image range R4), then use the candidate vector MV1 (actually still corresponds to the foreground motion vector at this time) The calculated block comparison difference will start to increase, this is because the same or similar images cannot be found within the image ranges R4' and R4" of the image frames F1 and F2, and the image range R4' is the foreground image , the image range R4" is the background image; taking the calculated block ratio difference corresponding to a starting position between the image range R3 and R4, its numerical value will change suddenly from left to right, from small to large increase and be greater than the predetermined value TH, so the initial position P2 corresponding to the block comparison difference D2 is an edge position of the image coverage area (or image exposure area). Please note that only the initial position P2 is known at this time. The edge position of the image coverage area or the image revealing area needs to wait for the calculation unit 205 to perform other calculations to know that the starting position P2 is actually the edge position of the image revealing area.

同理,如图6(b)所示,起始位置决定模块2201可使用第一插补画面F’的每一插补区块的右候选向量MV2进行区块比对运算,以分别计算出的对应于第一插补画面F’的复数个插补区块的复数个区块比对差值(以图6(b)所示的曲线DCV’表示);依据该等区块比对差值DCV’的数值变化,起始位置决定模块2201可决定出第一插补画面F’中两起始位置P3、P4,而该等起始位置系位于影像覆盖区(或影像显露区)的边缘,因而可用于判断出影像覆盖区(或影像显露区)的实际影像区域。实作上,针对曲线DCV’,起始位置决定模块2201系侦测其数值变化的大小,当曲线DCV’(包含使用候选向量MV2所算出的复数个区块比对差值)中一由左至右的数值变化由大至小改变且包含达到一预定值TH’的一区块比对差值时,起始位置决定模块2201会以该区块比对差值所对应的区块位置来作为该第一插补画面中一起始位置,亦称为影像覆盖区(或影像显露区)的起始点;例如,以图6(b)来说,起始位置决定模块2201会将区块比对差值D3所对应的起始位置P3以及区块比对差值D4所对应的起始位置P4决定为可判断出影像覆盖区(或影像显露区)的边缘位置,这是因为当所计算的影像范围内的区块实际系位于影像覆盖区时(例如影像范围R5内的区块),使用影像范围R5内的区块的候选向量MV2(此时实际上系对应于前景移动向量)来计算其所对应到的一区块比对差值,系取影像画面Fn-1、Fn的影像范围R5’与R5”内的影像来计算,而因为影像范围R5’与R5”的影像系为不同的背景影像,所以影像范围R5所对应到的计算出的区块比对差值皆较大;而当所计算的影像范围内的区块位于前景物体影像区域时(例如影像范围R6内的区块),则使用候选向量MV2(此时实际上仍对应于前景移动向量)所计算出的一区块比对差值会变小,这是因为在两张影像画面F1、F2的影像范围R6’与R6”内的影像系为相同的前景物体影像;因此,对于影像范围R5与R6之间的一起始位置P3所对应的计算出的区块比对差值D3来说,其数值变化将由左至右、由大至小突然减少而小于预定值TH’,因此区块比对差值D3所对应的起始位置P3即是影像覆盖区(或影像显露区)的一边缘位置,请注意,此时仅知起始位置P3系影像覆盖区或影像显露区的边缘位置,需待计算单元205后续进行其它运算始能得知起始位置P3实际系为影像覆盖区的边缘位置。Similarly, as shown in FIG. 6(b), the starting position determination module 2201 can use the right candidate vector MV2 of each interpolation block in the first interpolation frame F' to perform a block comparison operation to calculate The plurality of block comparison differences corresponding to the plurality of interpolation blocks of the first interpolation frame F' (represented by the curve DCV' shown in FIG. 6(b)); As the value of DCV' changes, the starting position determining module 2201 can determine two starting positions P3 and P4 in the first interpolation frame F', and these starting positions are located in the image coverage area (or image revealing area) Therefore, the edge can be used to determine the actual image area of the image coverage area (or image exposure area). In practice, for the curve DCV', the initial position determination module 2201 is to detect the magnitude of the value change, when the curve DCV' (including the plurality of block comparison differences calculated using the candidate vector MV2) moves from left to right When the value to the right changes from large to small and includes a block comparison difference reaching a predetermined value TH', the starting position determination module 2201 will use the block position corresponding to the block comparison difference to determine As a starting position in the first interpolation frame, it is also called the starting point of the image coverage area (or image revealing area); for example, as shown in FIG. The starting position P3 corresponding to the difference D3 and the starting position P4 corresponding to the block comparison difference D4 are determined to determine the edge position of the image coverage area (or image exposure area), because when the calculated When the blocks in the image range are actually located in the image coverage area (such as the blocks in the image range R5), the candidate vector MV2 of the block in the image range R5 (actually corresponding to the foreground motion vector at this time) is used to calculate The corresponding block comparison difference is calculated by taking the images in the image ranges R5' and R5" of the image frames Fn-1 and Fn to calculate, and because the images in the image ranges R5' and R5" are different background image, so the calculated block comparison difference corresponding to the image range R5 is larger; and when the calculated block in the image range is located in the foreground object image area (for example, the block in the image range R6 ), then using the candidate vector MV2 (actually still corresponding to the foreground motion vector at this time), the difference value of a block comparison calculated will become smaller, because in the image range R6' of the two image frames F1 and F2 The image in R6" is the same foreground object image; therefore, for the calculated block comparison difference D3 corresponding to a starting position P3 between the image range R5 and R6, the value change will be from left to right. To the right, from large to small suddenly decreases and is less than the predetermined value TH', so the initial position P3 corresponding to the block comparison difference D3 is an edge position of the image coverage area (or image exposure area), please note that, At this moment, it is only known that the initial position P3 is the edge position of the image coverage area or the image exposure area, and the calculation unit 205 needs to perform other calculations to know that the initial position P3 is actually the edge position of the image coverage area.

此外,当所计算的影像范围内的区块实际系位于影像显露区时(例如影像范围R7内的区块),使用影像范围R7内的区块的候选向量MV2(此时实际上系对应于背景移动向量)来计算其所对应到的一区块比对差值,会取影像画面Fn-1、Fn的影像范围R7’与R7”内的影像来计算,而因为影像范围R7’与R7”的影像系为不同的影像,其中影像范围R7’内系为前景物体影像,而影像范围R7”内系为背景影像,所以影像范围R7所对应到的计算出的区块比对差值皆相当大;而当所计算的影像范围内的区块实际系位于背景影像区域时(例如影像范围R8内的区块),则使用候选向量MV2(此时实际上仍对应于背景移动向量)所计算出的一区块比对差值会开始变小,这是因为影像范围R8’与R8”内系为相同/相似的背景影像;因此,对于影像范围R7与R8之间的一起始位置P4所对应的计算出的区块比对差值D4来说,其数值变化将由左至右、由大至小突然减少而小于预定值TH’,因此区块比对差值D4所对应的起始位置P4即是影像覆盖区(或影像显露区)的一边缘位置,请注意,此时仅知起始位置P4系影像覆盖区或影像显露区的边缘位置,需待计算单元205后续进行其它运算始能得知起始位置P4实际系为影像显露区的边缘位置。In addition, when the calculated block in the image range is actually located in the image exposure area (for example, the block in the image range R7), use the candidate vector MV2 of the block in the image range R7 (in this case, it actually corresponds to the background moving vector) to calculate the comparison difference of a block corresponding to it, the images in the image ranges R7' and R7" of the image frames Fn-1 and Fn are used for calculation, and because the image ranges R7' and R7" The images are different images, in which the image range R7' is the foreground object image, and the image range R7" is the background image, so the calculated block comparison differences corresponding to the image range R7 are all the same and when the calculated block in the image range is actually located in the background image area (such as the block in the image range R8), the candidate vector MV2 (actually still corresponding to the background motion vector at this time) is used to calculate The comparison difference of a block will begin to decrease, this is because the same/similar background images are within the image ranges R8' and R8"; therefore, for a starting position P4 between the image ranges R7 and R8 corresponds to For the calculated block comparison difference D4, its numerical change will suddenly decrease from left to right, from large to small, and be smaller than the predetermined value TH', so the initial position P4 corresponding to the block comparison difference D4 That is, an edge position of the image coverage area (or image exposure area), please note that at this moment, only the starting position P4 is known to be the edge position of the image coverage area or image exposure area, and it needs to wait for the calculation unit 205 to perform other calculations to be able to It is known that the starting position P4 is actually the edge position of the image display area.

如上所述,起始位置决定模块2201系对第一插补画面中每一插补区块使用其左、右两候选向量MV1、MV2进行区块比对运算来得到该等区块比对差值(例如图6(a)所示的曲线DCV与图6(b)所示的曲线DCV’);起始位置决定模块2201亦可对第二插补画面中的每一插补区块使用其左、右两候选向量MV1’、MV2’进行区块比对运算来得到另外复数个区块比对差值,并同样利用该等另外的区块比对差值来得到影像覆盖区(或影像显露区)的边缘起始位置(或称起始点)P1’~P4’;由于其运算过程类似于前述的运算过程,因此在此不另赘述。As mentioned above, the starting position determination module 2201 uses its left and right candidate vectors MV1 and MV2 to perform a block comparison operation for each interpolation block in the first interpolation frame to obtain the block comparison difference value (such as the curve DCV shown in Figure 6(a) and the curve DCV' shown in Figure 6(b)); the starting position determination module 2201 can also be used for each interpolation block in the second interpolation frame The left and right candidate vectors MV1', MV2' perform a block comparison operation to obtain a plurality of other block comparison differences, and also use these other block comparison differences to obtain image coverage areas (or The starting positions (or starting points) P1 ′˜P4 ′ of the edge of the image exposure area); since the calculation process is similar to the above-mentioned calculation process, it will not be repeated here.

在起始位置决定模块2201计算出起始位置P1~P4以及P1’~P4’后,向量选择模块2202依据起始位置P1~P4以及P1’~P4’已可得知第一插补画面与第二插补画面中一影像覆盖区(或一影像显露区)实际存在的区域,例如,向量选择模块2202依据起始位置P1(或P1’)往右侧并依据起始位置P3(或P3’)往左侧所找到的影像区域,即是第一插补画面(或第二插补画面)中的影像覆盖区或影像显露区,而依据起始位置P2(或P2’)往右侧并依据起始位置P4(或P4’)往左侧所找到的影像区域,即是第一插补画面(或第二插补画面)中的影像覆盖区或影像显露区,值得注意的是,此处所找到的影像区域尚未被确认为一影像覆盖区或一影像显露区,仅知其为影像覆盖区与影像显露区的其中之一,需另依据所找到的影像区域内的区块的候选向量MV1’、MV2’的向量差来进一步地判断该影像区域系为影像覆盖区或系为影像显露区,其详细运作于稍后描述;此外,当候选向量MV1’、MV2’的向量差愈大时,影像覆盖区(或影像显露区)的实际影像区域亦会愈大,反之亦然。After the initial position determination module 2201 calculates the initial positions P1~P4 and P1'~P4', the vector selection module 2202 can already know the first interpolation frame and the The area where an image coverage area (or an image exposure area) actually exists in the second interpolation frame, for example, the vector selection module 2202 goes to the right according to the initial position P1 (or P1') and according to the initial position P3 (or P3 ') to the left is the image coverage area or image exposure area in the first interpolation frame (or the second interpolation frame), and to the right according to the starting position P2 (or P2') And the image area found to the left according to the starting position P4 (or P4') is the image coverage area or image exposure area in the first interpolation frame (or the second interpolation frame). It is worth noting that, The image area found here has not yet been confirmed as an image coverage area or an image exposure area. It is only known to be one of the image coverage area and image exposure area, depending on the candidates of the blocks in the image area found The vector difference of vector MV1', MV2' is used to further judge whether the image area is an image coverage area or an image exposure area, and its detailed operation will be described later; in addition, when the vector difference of candidate vectors MV1', MV2' is more When is larger, the actual image area of the image coverage area (or image exposure area) will also be larger, and vice versa.

承上所述,起始位置决定模块2201在计算出起始位置P1~P4与P1’~P4’后,向量选择模块2202可依据起始位置P1~P4与P1’~P4’来决定上述第二插补区块的目标移动向量,该目标移动向量系用来决定/产生第二插补区块的实际影像。具体来说,请参照图7,其系为起始位置决定模块2201所决定的起始位置P1~P4与P1’~P4’的范例示意图;向量选择模块2202会分别参考P1与P1’、P2与P2’、P3与P3’以及P4与P4’来算出参考向量V1~V4,以依据参考向量V1~V4中至少其一从第二插补区块的候选向量MV1’、MV2’中选取其中之一来决定该目标移动向量,其中参考向量V1~V4皆对应或相近于前景移动向量,而实作上,向量选择模块2202系比较参考向量V1~V4中至少其一与候选向量MV1’、MV2’,当参考向量V1~V4其中之一相近于候选向量MV1’、MV2’的其中之一时,向量选择模块2202会选取候选向量MV1’、MV2’的另一来作为该目标移动向量,因此,若第二插补区块实际位于影像覆盖区或影像显露区,则所决定出的目标移动向量会对应或相近于背景移动向量,例如,若第二插补区块系为图7所示的MB,则候选向量MV1’系对应或相近于背景移动向量而候选向量MV2’则对应或相近于前景移动向量,如此,向量选择模块2202会选取对应或相近于背景移动向量的候选向量MV1’作为目标移动向量,并依此所决定的目标移动向量来产生插补区块MB的影像;而若第二插补区块系为图7所示的MB’,则候选向量MV1’系对应或相近于前景移动向量而候选向量MV2’则对应或相近于背景移动向量,向量选择模块2202会选取对应或相近于背景移动向量的候选向量MV2’作为目标移动向量,并依此所决定的目标移动向量来产生插补区块MB’的影像。As mentioned above, after the initial position determination module 2201 calculates the initial positions P1~P4 and P1'~P4', the vector selection module 2202 can determine the above-mentioned first position according to the initial positions P1~P4 and P1'~P4'. A target motion vector of the second interpolation block, the target motion vector is used to determine/generate the actual image of the second interpolation block. Specifically, please refer to FIG. 7, which is a schematic diagram of an example of the initial positions P1~P4 and P1'~P4' determined by the initial position determination module 2201; the vector selection module 2202 will refer to P1, P1', and P2 respectively and P2', P3 and P3', and P4 and P4' to calculate reference vectors V1-V4, so as to select one of them from the candidate vectors MV1' and MV2' of the second interpolation block according to at least one of the reference vectors V1-V4 One of the reference vectors V1-V4 is used to determine the target motion vector, wherein the reference vectors V1-V4 all correspond to or are close to the foreground motion vector. In practice, the vector selection module 2202 compares at least one of the reference vectors V1-V4 with the candidate vectors MV1', MV2', when one of the reference vectors V1-V4 is close to one of the candidate vectors MV1', MV2', the vector selection module 2202 will select another of the candidate vectors MV1', MV2' as the target motion vector, so , if the second interpolation block is actually located in the image coverage area or image exposure area, the determined target motion vector will correspond to or be close to the background motion vector, for example, if the second interpolation block is as shown in Figure 7 MB, then the candidate vector MV1' corresponds to or is close to the background motion vector and the candidate vector MV2' corresponds to or is close to the foreground motion vector. In this way, the vector selection module 2202 will select the candidate vector MV1' corresponding to or close to the background motion vector As the target motion vector, the image of the interpolation block MB is generated according to the determined target motion vector; and if the second interpolation block is MB' shown in FIG. 7, the candidate vector MV1' corresponds to or It is close to the foreground motion vector and the candidate vector MV2' is corresponding to or close to the background motion vector. The vector selection module 2202 will select the candidate vector MV2' corresponding to or close to the background motion vector as the target motion vector, and the target motion determined accordingly vector to generate the image of the interpolated block MB'.

此外,若第二插补区块实际并非位于影像覆盖区或影像显露区,则向量选择模块2202仍可决定出正确的移动向量,例如,若第二插补区块系为图7所示的MB”,则其候选向量MV1’、MV2’皆系对应或相近于背景移动向量,因此,无论是否依据参考向量V1~V4来决定插补区块MB”的目标移动向量,向量选择模块2202任意挑选其两第二候选向量MV1’、MV2’其中之一作为其目标移动向量,实际上对于插补区块MB”来说皆是得以产生较佳背景影像画面的移动向量;另外,若第二插补区块系为图7所示的MB”’,则其候选向量MV1’、MV2’皆系对应或相近于前景移动向量,向量选择模块2202任意挑选两候选向量MV1’、MV2’其中之一作为其目标移动向量,实际上对于插补区块MB”’来说皆是得以产生较佳前景物体影像画面的移动向量。In addition, if the second interpolation block is not actually located in the image coverage area or the image exposure area, the vector selection module 2202 can still determine the correct motion vector, for example, if the second interpolation block is as shown in FIG. 7 MB", the candidate vectors MV1' and MV2' are all corresponding to or close to the background motion vector. Therefore, no matter whether the target motion vector of the interpolation block MB" is determined based on the reference vectors V1~V4, the vector selection module 2202 arbitrarily Selecting one of the two second candidate vectors MV1', MV2' as its target motion vector is actually a motion vector that can generate a better background image frame for the interpolation block MB"; in addition, if the second The interpolation block is MB"' shown in FIG. 7, and its candidate vectors MV1' and MV2' are both corresponding to or similar to the foreground motion vector. The vector selection module 2202 randomly selects one of the two candidate vectors MV1' and MV2' One is the target motion vector, which is actually a motion vector for generating a better foreground object image frame for the interpolation block MB"'.

在另一实施例中,亦可仅藉由单一参考向量从第二插补区块的候选向量MV1’、MV2’中选取其中之一来决定该目标移动向量,而此亦落入本实用新型的范畴;需注意的是,在此实施例中,例如若仅藉由参考向量V1来决定目标移动向量,则向量选择模块2202不需计算出参考向量V2~V4,然而,仍需决定出起始位置P1~P4与P1’~P4’,以便判断影像覆盖区与影像显露区的实际影像区域,换言之,本实用新型的实施例仅藉由决定两起始位置(P1与P1’、P2与P2’、P3与P3’及P4与P4’其中一组),即可决定出第二插补区块的目标移动向量。In another embodiment, the target motion vector can also be determined by selecting one of the candidate vectors MV1' and MV2' of the second interpolation block only by a single reference vector, which also falls within the scope of the present invention It should be noted that in this embodiment, for example, if the target moving vector is determined only by the reference vector V1, the vector selection module 2202 does not need to calculate the reference vectors V2~V4, however, the starting point still needs to be determined Start positions P1~P4 and P1'~P4', so as to judge the actual image area of the image coverage area and the image exposure area, in other words, the embodiment of the present utility model only determines the two start positions (P1 and P1', P2 and A group of P2', P3 and P3', and P4 and P4') can determine the target motion vector of the second interpolation block.

产生第二插补区块的影像的实际运作则详述于下。首先,由于本实用新型的实施例主要系以水平移动影像的例子作为说明,因此以移动向量由左至右的方向为正,反之,其相对的方向(由右至左)则为负;然而,此非本实用新型的限制,凡在二维平面空间上以某一特定方向为正,再以其相对方向为负的例子,皆符合本实用新型的精神。计算单元205系以第二插补区块的一候选向量减去其另一候选向量所得到的向量差,来判断第二插补区块系落于影像覆盖区或系落于影像显露区,请再次参考图7,举例来说,对于图7中插补区块MB而言,计算单元205内的影像产生模块225将插补区块MB的候选向量MV1’减去其候选向量MV2’,所得到的向量差为正,因此判断插补区块MB系属于影像覆盖区,接着依照所决定的目标移动向量至第二插补画面的前一张非插补画面Fn中取得相对应区块的影像来作为插补区块MB的影像;另外,对于图7中插补区块MB’,影像产生模块225将插补区块MB’的候选向量MV1’减去其候选向量MV2’,所得到的向量差为负,因此判断区块MB系属于影像显露区,接着依照所决定的目标移动向量至第二插补画面之后一张非插补画面Fn+1中取得一相对应区块的影像来作为插补区块MB’的影像;换言之,由于可利用第二插补区块的两候选向量的向量差来判断第二插补区块系落入一影像覆盖区或系落入一影像显露区,所以,影像产生模块225可利用判断的结果,自第二插补画面之前一张非插补画面的影像与后一张非插补画面的影像中择一作为第二插补区块的影像。The actual operation of generating the image of the second interpolation block is described in detail below. First of all, since the embodiment of the present invention mainly takes the example of moving the image horizontally as an illustration, the direction of the moving vector from left to right is positive, otherwise, its relative direction (from right to left) is negative; however , this is not a limitation of the utility model, and any example in which a certain direction is positive in a two-dimensional plane space, and its relative direction is negative, all conform to the spirit of the utility model. The calculation unit 205 determines whether the second interpolation block is located in the image coverage area or in the image exposure area by subtracting a vector difference obtained by subtracting another candidate vector from one candidate vector of the second interpolation block, Please refer to FIG. 7 again. For example, for the interpolation block MB in FIG. 7, the image generation module 225 in the calculation unit 205 subtracts the candidate vector MV2' from the candidate vector MV1' of the interpolation block MB, The obtained vector difference is positive, so it is judged that the interpolated block MB belongs to the image coverage area, and then the corresponding block is obtained from the previous non-interpolated frame Fn of the second interpolated frame according to the determined target motion vector The image of the interpolation block MB is used as the image of the interpolation block MB; in addition, for the interpolation block MB' in FIG. The obtained vector difference is negative, so it is judged that the block MB belongs to the image exposure area, and then according to the determined target moving vector to obtain a corresponding block in a non-interpolation frame Fn+1 after the second interpolation frame The image is used as the image of the interpolation block MB'; Therefore, the image generation module 225 can use the judgment result to select one of the images of the non-interpolation frame before the second interpolation frame and the image of the next non-interpolation frame as the second interpolation area block image.

综上所述,针对插补画面中属于影像覆盖区或影像显露区的区块,本实用新型的实施例中的影像处理装置200可正确地计算出该区块的目标移动向量,使得以该目标移动向量来进行影像插补时可得到较佳的影像,有助于提升执行画面更新频率转换运作的影像质量。To sum up, for the block belonging to the image coverage area or the image exposure area in the interpolation frame, the image processing device 200 in the embodiment of the present invention can correctly calculate the target motion vector of the block, so that the When the target moving vector is used for image interpolation, a better image can be obtained, which is helpful to improve the image quality of performing the frame refresh rate conversion operation.

以上所述仅为本实用新型的较佳实施例,凡依本实用新型申请专利范围所做的均等变化与修饰,皆应属本实用新型的涵盖范围。The above descriptions are only preferred embodiments of the present utility model, and all equivalent changes and modifications made according to the patent scope of the present utility model shall fall within the scope of the present utility model.

Claims (3)

1.一种影像处理装置,用于进行运动画面插补时,决定一插补画面的影像覆盖区/影像显露区的移动向量,该插补画面由复数个区块所组成,其特征在于,该影像处理装置包含有:1. An image processing device, used for determining a motion vector of an image coverage area/image exposure area of an interpolation image when interpolating a moving image, the interpolation image is composed of a plurality of blocks, characterized in that, The image processing device includes: 一储存单元,用于至少储存该插补画面的一前一原始画面与一后一原始画面以及一前一插补画面的一起始位置;以及a storage unit for at least storing a previous original picture and a subsequent original picture of the interpolated picture and a starting position of a previous interpolated picture; and 一计算单元,耦接至该储存单元,包含有:A computing unit, coupled to the storage unit, includes: 一候选向量产生模块,用于决定该插补画面的复数区块的复数第一候选向量与复数第二候选向量;以及A candidate vector generation module, used to determine the plurality of first candidate vectors and the plurality of second candidate vectors of the plurality of blocks of the interpolated picture; and 一移动向量决定模块,依据该插补画面的该些区块的该些第一候选向量、该些第二候选向量与该前一插补画面的该起始位置,决定位于该插补画面的影像覆盖区/影像显露区的一区块的一移动向量。A motion vector determination module, based on the first candidate vectors, the second candidate vectors and the initial position of the previous interpolation frame of the blocks of the interpolation frame, determines the location of the interpolation frame A motion vector for a block of the image footprint/image reveal area. 2.如权利要求1所述的影像处理装置,其特征在于,该候选向量产生模块包含有:2. The image processing device according to claim 1, wherein the candidate vector generating module comprises: 一影像差异值产生模块,依据该区块的复数个邻近区块的复数原始移动向量,决定该区块的一影像差异值;以及An image difference value generating module, which determines an image difference value of the block according to the plurality of original motion vectors of the plurality of neighboring blocks of the block; and 一候选向量决定模块,依据一维空间复数连续区块的复数影像差异值,分别决定该些连续区块的复数第一候选向量与复数第二候选向量。A candidate vector determination module determines the plurality of first candidate vectors and the plurality of second candidate vectors of the plurality of continuous blocks respectively according to the complex image difference values of the plurality of continuous blocks in one-dimensional space. 3.如权利要求1所述的影像处理装置,其特征在于,该移动向量决定模块包含有:3. The image processing device according to claim 1, wherein the motion vector determination module comprises: 一起始位置决定模块,利用该插补画面中该些区块的该些第一候选向量及该些第二候选向量的其中之一,来计算该些区块所对应的复数个区块比对差值,并依据该些区块比对差值的数值变化来决定该插补画面的一起始位置;以及A starting position determination module, using one of the first candidate vectors and the second candidate vectors of the blocks in the interpolation frame to calculate a plurality of block comparisons corresponding to the blocks difference, and determine a starting position of the interpolation frame according to the numerical change of the block comparison difference; and 一向量选择模块,依据该插补画面的该起始位置与该前一插补画面的该起始位置来产生一参考向量,并比较该参考向量与该插补画面的影像覆盖区/影像显露区中该区块的该第一、第二候选向量,选取该第一、第二候选向量与该参考向量较不相近的其中之一作为该区块的该移动向量。A vector selection module generates a reference vector according to the initial position of the interpolation frame and the initial position of the previous interpolation frame, and compares the reference vector with the image coverage area/image exposure of the interpolation frame The first and second candidate vectors of the block in the region, and one of the first and second candidate vectors that is less similar to the reference vector is selected as the motion vector of the block.
CN 200920005185 2009-03-04 2009-03-04 Image processing device for determining motion vectors of interpolated frames Expired - Lifetime CN201374785Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200920005185 CN201374785Y (en) 2009-03-04 2009-03-04 Image processing device for determining motion vectors of interpolated frames

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200920005185 CN201374785Y (en) 2009-03-04 2009-03-04 Image processing device for determining motion vectors of interpolated frames

Publications (1)

Publication Number Publication Date
CN201374785Y true CN201374785Y (en) 2009-12-30

Family

ID=41500866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200920005185 Expired - Lifetime CN201374785Y (en) 2009-03-04 2009-03-04 Image processing device for determining motion vectors of interpolated frames

Country Status (1)

Country Link
CN (1) CN201374785Y (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753795B (en) * 2008-12-16 2012-05-16 晨星软件研发(深圳)有限公司 Image processing method for determining motion vector of interpolation image and related device
CN109327669A (en) * 2017-08-01 2019-02-12 联咏科技股份有限公司 Frame rate up-conversion device and method
CN113726980A (en) * 2020-05-25 2021-11-30 瑞昱半导体股份有限公司 Image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753795B (en) * 2008-12-16 2012-05-16 晨星软件研发(深圳)有限公司 Image processing method for determining motion vector of interpolation image and related device
CN109327669A (en) * 2017-08-01 2019-02-12 联咏科技股份有限公司 Frame rate up-conversion device and method
CN113726980A (en) * 2020-05-25 2021-11-30 瑞昱半导体股份有限公司 Image processing method

Similar Documents

Publication Publication Date Title
TWI408620B (en) Image processing method for determining motion vector of interpolation picture and related device
Kang et al. Motion compensated frame rate up-conversion using extended bilateral motion estimation
TWI455588B (en) Bi-directional, local and global motion estimation based frame rate conversion
CN104915966B (en) Frame rate up-conversion method for estimating and system based on Kalman filtering
TWI398159B (en) Apparatus and method of frame rate up-conversion with dynamic quality control
CN108134939B (en) Motion estimation method and device
JP2010288110A (en) Image processing apparatus and method
TWI490819B (en) Image processing method and apparatus thereof
KR20070069615A (en) Motion Estimator and Motion Estimation Method
CN102123283A (en) Interpolated frame acquisition method and device in video frame rate conversion
CN102065263B (en) Image interpolation processing apparatus and method thereof
WO2015085922A1 (en) Method and apparatus for frame rate up-conversion
CN201374785Y (en) Image processing device for determining motion vectors of interpolated frames
CN103152566B (en) A kind of video frame rate method for improving
Huang et al. Algorithm and architecture design of multirate frame rate up-conversion for ultra-HD LCD systems
CN107124617B (en) Method and system for generating random vector in motion estimation motion compensation
US8305500B2 (en) Method of block-based motion estimation
CN101753795A (en) Image processing method for determining motion vector of interpolation image and related device
CN101778292B (en) Image processing method and device thereof
US8405767B2 (en) Image processing device
CN201509247U (en) Image processing device for determining pixel values at interpolation positions
CN105915835A (en) Frame frequency lifting method realized by hardware
CN101459761B (en) Image processing method and related device
CN201444658U (en) Image processing device
JP5824937B2 (en) Motion vector deriving apparatus and method

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned

Granted publication date: 20091230

Effective date of abandoning: 20090304