CN102932581B - Image processing circuit and image processing method - Google Patents
Image processing circuit and image processing method Download PDFInfo
- Publication number
- CN102932581B CN102932581B CN201110225703.0A CN201110225703A CN102932581B CN 102932581 B CN102932581 B CN 102932581B CN 201110225703 A CN201110225703 A CN 201110225703A CN 102932581 B CN102932581 B CN 102932581B
- Authority
- CN
- China
- Prior art keywords
- absolute error
- error sum
- frequency
- block
- frequency absolute
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- VJTAZCKMHINUKO-UHFFFAOYSA-M chloro(2-methoxyethyl)mercury Chemical compound [Cl-].COCC[Hg+] VJTAZCKMHINUKO-UHFFFAOYSA-M 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Picture Signal Circuits (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
一种图像处理电路及图像处理方法。图像处理电路包括区块匹配单元、多工器、仲裁器及移动补偿电路。区块匹配单元根据目前画面的目前区块及参考画面的参考区块计算高频绝对误差和及低频绝对误差和。仲裁器根据仲裁规则控制多工器选择性地输出高频绝对误差和或低频绝对误差和,仲裁规则相关于目前画面的场景特性。移动补偿电路根据多工器输出的高频绝对误差和或低频绝对误差和进行移动补偿。
An image processing circuit and an image processing method. The image processing circuit includes a block matching unit, a multiplexer, an arbitrator and a motion compensation circuit. The block matching unit calculates a high-frequency absolute error sum and a low-frequency absolute error sum according to a current block of a current picture and a reference block of a reference picture. The arbitrator controls the multiplexer to selectively output a high-frequency absolute error sum or a low-frequency absolute error sum according to an arbitration rule, and the arbitration rule is related to the scene characteristics of the current picture. The motion compensation circuit performs motion compensation according to the high-frequency absolute error sum or the low-frequency absolute error sum output by the multiplexer.
Description
技术领域 technical field
本发明涉及一种图像处理电路及图像处理方法,且特别涉及一种能根据高频绝对误差和或低频绝对误差和进行移动补偿的图像处理电路及图像处理方法。The invention relates to an image processing circuit and an image processing method, and in particular to an image processing circuit and an image processing method capable of performing motion compensation according to the sum of high-frequency absolute errors or the sum of low-frequency absolute errors.
背景技术 Background technique
请参照图1,图1绘示为移动估计和移动补偿装置的示意图。移动估计和移动补偿(MotionEstimateandMotionCompensation,MEMC)装置1包括移动估计引擎11和移动补偿电路12。移动估计引擎11根据目前画面及参考画面进行移动估测,使得移动补偿电路根据移动估测结果插补出补偿画面。Please refer to FIG. 1 , which is a schematic diagram of a motion estimation and motion compensation device. A motion estimation and motion compensation (MotionEstimateandMotionCompensation, MEMC) device 1 includes a motion estimation engine 11 and a motion compensation circuit 12 . The motion estimation engine 11 performs motion estimation according to the current frame and the reference frame, so that the motion compensation circuit interpolates the compensated frame according to the motion estimation result.
移动估计引擎11包括区块匹配单元(BlockMatchingUnit)111。区块匹配单元(BlockMatchingUnit)111会将目前画面切割成大小相等的区块,每一个区块在参考画面中都有相对应的搜索区域。区块匹配单元111会计算目前区块与参考区块的低频绝对误差和以在搜索区域中找出与自己最相似的区块。The motion estimation engine 11 includes a block matching unit (BlockMatchingUnit) 111 . The block matching unit (BlockMatchingUnit) 111 will divide the current picture into blocks of equal size, and each block has a corresponding search area in the reference picture. The block matching unit 111 calculates the sum of low-frequency absolute errors between the current block and the reference block to find the block most similar to itself in the search area.
请同时参照图1、图2、图3及图4,图2绘示为参考画面的示意图,图3为目前画面的示意图,图4绘示为插补画面的示意图。然而,当播放画面出现闪烁的场景时,区块匹配单元111即无法根据低频绝对误差和找出与自己最相似的区块。举例来说,图2的局部区域21及图3的局部区域31例如为车灯。局部区域21为全暗,而局部区域31为全亮。由于局部区域31与局部区域21的像素差异值过大,因此区块匹配单元111即无法根据低频绝对误差和找出与自己最相似的区块。如此一来,移动补偿电路12会因为区块匹配单元111的区块比对不正确而导致移动补偿电路12插补出如图4绘示的插补画面。其中局部区域41对应于局部区域31与局部区域21。而局部区域41会因区块比对不正确而导致形状产生畸变。Please refer to FIG. 1 , FIG. 2 , FIG. 3 and FIG. 4 at the same time. FIG. 2 is a schematic diagram of a reference screen, FIG. 3 is a schematic diagram of a current screen, and FIG. 4 is a schematic diagram of an interpolation screen. However, when a flickering scene appears on the playing screen, the block matching unit 111 cannot find out the block most similar to itself according to the low-frequency absolute error sum. For example, the partial area 21 in FIG. 2 and the partial area 31 in FIG. 3 are vehicle lights. Partial area 21 is totally dark, while partial area 31 is fully bright. Since the pixel difference between the local area 31 and the local area 21 is too large, the block matching unit 111 cannot find the block most similar to itself according to the low-frequency absolute error sum. In this way, the motion compensation circuit 12 will interpolate the interpolated frame as shown in FIG. 4 due to the incorrect block comparison of the block matching unit 111 . The local area 41 corresponds to the local area 31 and the local area 21 . However, the shape of the local area 41 is distorted due to incorrect block comparison.
发明内容 Contents of the invention
本发明涉及一种图像处理电路及图像处理方法,能根据局部区域为闪烁或物体移动而正确地找出与自己最相似的区块以正确地进行移动补偿。The invention relates to an image processing circuit and an image processing method, which can correctly find out the block most similar to itself according to whether the local area is flickering or the object moves, so as to correctly perform motion compensation.
根据本发明,提出一种图像处理电路。图像处理电路包括区块匹配单元(BlockMatchingUnit)、多工器、仲裁器及移动补偿电路。区块匹配单元根据目前画面的目前区块及参考画面的参考区块计算高频绝对误差和(SumofAbsoluteDifference,SAD)及低频绝对误差和。仲裁器根据仲裁规则控制多工器选择性地输出高频绝对误差和或低频绝对误差和,仲裁规则相关于目前画面的场景特性。移动补偿电路根据多工器输出的高频绝对误差和或低频绝对误差和进行移动补偿。According to the invention, an image processing circuit is proposed. The image processing circuit includes a block matching unit (BlockMatchingUnit), a multiplexer, an arbiter and a motion compensation circuit. The block matching unit calculates a high frequency sum of absolute difference (Sum of Absolute Difference, SAD) and a low frequency sum of absolute difference according to the current block of the current frame and the reference block of the reference frame. The arbiter controls the multiplexer to selectively output the high-frequency absolute error sum or the low-frequency absolute error sum according to an arbitration rule, and the arbitration rule is related to the scene characteristics of the current picture. The movement compensation circuit performs movement compensation according to the high-frequency absolute error sum or the low-frequency absolute error sum output by the multiplexer.
根据本发明,提出一种图像处理方法。图像处理方法包括:根据目前画面的目前区块及参考画面的参考区块计算高频绝对误差和(SumofAbsoluteDifference,SAD)及低频绝对误差和;根据仲裁规则选择性地输出高频绝对误差和或低频绝对误差和,仲裁规则相关于目前画面的场景特性;以及根据高频绝对误差和或低频绝对误差和进行移动补偿。According to the present invention, an image processing method is proposed. The image processing method includes: calculating a high-frequency absolute error sum (Sum of Absolute Difference, SAD) and a low-frequency absolute error sum according to the current block of the current picture and the reference block of the reference picture; selectively outputting the high-frequency absolute error sum or the low-frequency absolute error sum according to arbitration rules The absolute error sum and the arbitration rule are related to the scene characteristics of the current picture; and motion compensation is performed according to the high-frequency absolute error sum or the low-frequency absolute error sum.
为了对本发明的上述及其他方面有更佳的了解,下文特举优选实施例,并配合附图,作详细说明如下:In order to have a better understanding of the above-mentioned and other aspects of the present invention, the preferred embodiments are specifically cited below, together with the accompanying drawings, and are described in detail as follows:
附图说明 Description of drawings
图1绘示为移动估计和移动补偿装置的示意图。FIG. 1 is a schematic diagram of a motion estimation and motion compensation device.
图2绘示为参考画面的示意图。FIG. 2 is a schematic diagram of a reference frame.
图3为目前画面的示意图。FIG. 3 is a schematic diagram of the current screen.
图4绘示为插补画面的示意图。FIG. 4 is a schematic diagram of an interpolation screen.
图5绘示为依照第一实施例的一种图像处理电路的示意图。FIG. 5 is a schematic diagram of an image processing circuit according to the first embodiment.
图6绘示为依照第一实施例的图像处理方法的流程图。FIG. 6 is a flow chart of the image processing method according to the first embodiment.
【主要元件符号说明】[Description of main component symbols]
10:10:
1:移动估计和移动补偿装置1: Motion Estimation and Motion Compensation Device
5:图像处理电路5: Image processing circuit
11、51:移动估计引擎11, 51: Motion Estimation Engine
12、52:移动补偿电路12, 52: Motion Compensation Circuit
21、31、41:局部区域21, 31, 41: local area
53:多工器53: multiplexer
54:仲裁器54: Arbiter
61~63:步骤61~63: Steps
511、111:区块匹配单元511, 111: block matching unit
20:20:
具体实施方式 detailed description
第一实施例first embodiment
请同时参照图5及图6,图5绘示为依照第一实施例的一种图像处理电路的示意图,图6绘示为依照第一实施例的图像处理方法的流程图。图像处理电路5包括移动估计引擎51、移动补偿电路52、多工器53及仲裁器54,且移动估计引擎51还包括区块匹配单元(BlockMatchingUnit)511。图像处理方法能应用于图像处理电路5且包括如下步骤:Please refer to FIG. 5 and FIG. 6 at the same time. FIG. 5 is a schematic diagram of an image processing circuit according to the first embodiment, and FIG. 6 is a flowchart of an image processing method according to the first embodiment. The image processing circuit 5 includes a motion estimation engine 51 , a motion compensation circuit 52 , a multiplexer 53 and an arbiter 54 , and the motion estimation engine 51 further includes a block matching unit (BlockMatchingUnit) 511 . The image processing method can be applied to the image processing circuit 5 and includes the following steps:
首先如步骤61所示,区块匹配单元511根据目前画面的目前区块及参考画面的参考区块输出高频绝对误差和(SumofAbsoluteDifference,SAD)AC_SAD及低频绝对误差和DC_SAD。区块匹配单元511根据目前区块的像素值与参考区块的像素值计算低频绝对误差和DC_SAD。低频绝对误差和(x,y)为目前区块与参考区块的位移量,而一个区块具有N×N个像素。First, as shown in step 61, the block matching unit 511 outputs a high-frequency sum of absolute difference (Sum of Absolute Difference, SAD) AC_SAD and a low-frequency sum of absolute difference DC_SAD according to the current block of the current frame and the reference block of the reference frame. Block matching unit 511 according to the pixel value of the current block and the pixel value of the reference block Compute the low frequency absolute error and DC_SAD. The low frequency absolute error sum (x, y) is the displacement between the current block and the reference block, and a block has N×N pixels.
高频绝对误差和可以有两种计算方式。第一种计算方式由区块匹配单元511根据低频绝对误差和DC_SAD及直流差异值DCdiff计算高频绝对误差和AC_SAD。高频绝对误差和AC_SAD=|DC_SAD-DCdiff|。第二种计算方式由区块匹配单元511根据目前区块的像素值目前区块的平均像素值DCavg1、参考区块的像素值及参考区块的平均像素值DCavg2计算高频绝对误差和AC_SAD。高频绝对误差和
接着如步骤62所示,仲裁器54根据仲裁规则控制多工器53选择性地输出高频绝对误差和AC_SAD或低频绝对误差和DC_SAD,仲裁规则相关于目前画面的场景特性。然后如步骤63所示,移动补偿电路52根据多工器53输出的高频绝对误差和AC_SAD或低频绝对误差和DC_SAD进行移动补偿。Next, as shown in step 62, the arbiter 54 controls the multiplexer 53 to selectively output the high-frequency absolute error sum AC_SAD or the low-frequency absolute error sum DC_SAD according to the arbitration rule, which is related to the scene characteristics of the current picture. Then, as shown in step 63 , the motion compensation circuit 52 performs motion compensation according to the high-frequency absolute error sum AC_SAD or the low-frequency absolute error sum DC_SAD output by the multiplexer 53 .
当局部区域为闪烁(flash)时,移动补偿电路52能根据高频绝对误差和AC_SAD正确地进行移动补偿。相反地,当局部区域为物体移动时,移动补偿电路52能根据低频绝对误差和DC_SAD正确地进行移动补偿。如此一来,不论局部区域为闪烁或物体移动,移动图像处理电路5都能正确地进行移动补偿。When the local area is flashing, the motion compensation circuit 52 can correctly perform motion compensation according to the high-frequency absolute error and AC_SAD. On the contrary, when the object moves in the local area, the motion compensation circuit 52 can correctly perform motion compensation according to the low-frequency absolute error and DC_SAD. In this way, the moving image processing circuit 5 can correctly perform motion compensation regardless of whether the local area is flickering or the object is moving.
前述目前画面还包括与目前区块相邻的数个相邻区块,而前述仲裁规则例如包括一相邻区块仲裁规则。相邻区块仲裁规则为若多工器53对应相邻区块输出高频绝对误差和AC_SAD,则多工器53对应目前区块输出高频绝对误差和AC_SAD,如果多工器53对应相邻区块输出低频绝对误差和DC_SAD,则多工器53对应该目前区块输出低频绝对误差和DC_SAD。The aforementioned current frame further includes several adjacent blocks adjacent to the current block, and the aforementioned arbitration rules include, for example, an adjacent block arbitration rule. Adjacent block arbitration rule is that if the multiplexer 53 outputs the high-frequency absolute error and AC_SAD corresponding to the adjacent block, then the multiplexer 53 outputs the high-frequency absolute error and AC_SAD corresponding to the current block; if the multiplexer 53 corresponds to the adjacent block The block outputs the low-frequency absolute error and DC_SAD, and the multiplexer 53 outputs the low-frequency absolute error and DC_SAD corresponding to the current block.
第二实施例second embodiment
第二实施例与第一实施例主要不同之处在于第二实施例的仲裁规则包括一差值仲裁规则。差值仲裁规则为若差值仲裁规则在高频绝对误差和AC_SAD与低频绝对误差和DC_SAD的差值大于差异临限值时,多工器53对应目前区块输出高频绝对误差和AC_SAD。这是因为当局部区域为闪烁时,高频绝对误差和AC_SAD很小,而低频绝对误差和DC_SAD很大,所以移动补偿电路52能根据高频绝对误差和AC_SAD正确地进行移动补偿。The main difference between the second embodiment and the first embodiment is that the arbitration rule of the second embodiment includes a difference arbitration rule. The difference arbitration rule is that if the difference between the high frequency absolute error sum AC_SAD and the low frequency absolute error sum DC_SAD is greater than the difference threshold, the multiplexer 53 outputs the high frequency absolute error sum AC_SAD corresponding to the current block. This is because when the local area flickers, the high-frequency absolute error and AC_SAD are small, while the low-frequency absolute error and DC_SAD are large, so the motion compensation circuit 52 can correctly perform motion compensation according to the high-frequency absolute error and AC_SAD.
相反地,差值仲裁规则为若高频绝对误差和AC_SAD与低频绝对误差和DC_SAD的差值不大于差异临限值时,则多工器53对应目前区块输出低频绝对误差和DC_SAD。On the contrary, the difference arbitration rule is that if the difference between the high-frequency absolute error sum AC_SAD and the low-frequency absolute error sum DC_SAD is not greater than the difference threshold, the multiplexer 53 outputs the low-frequency absolute error sum DC_SAD corresponding to the current block.
这是因为当局部区域为物体移动时,高频绝对误差和AC_SAD很小,且低频绝对误差和DC_SAD也很小,所以移动补偿电路52能根据低频绝对误差和DC_SAD正确地进行移动补偿。This is because when the object moves in the local area, the high-frequency absolute error and AC_SAD are small, and the low-frequency absolute error and DC_SAD are also small, so the motion compensation circuit 52 can correctly perform motion compensation according to the low-frequency absolute error and DC_SAD.
第三实施例third embodiment
第三实施例与第一实施例主要不同之处在于第三实施例的仲裁规则还包括一差值仲裁规则。仲裁器51根据相邻区块仲裁规则、相邻区块权重值、差值仲裁规则及差值权重值控制多工器53选择性地输出高频绝对误差和AC_SAD或低频绝对误差和DC_SAD。换句话说,仲裁器51能根据多个仲裁规则的组合来控制控制多工器53选择性地输出高频绝对误差和AC_SAD或低频绝对误差和DC_SAD,以供移动补偿电路52正确地进行移动补偿。The main difference between the third embodiment and the first embodiment is that the arbitration rule of the third embodiment further includes a difference arbitration rule. The arbiter 51 controls the multiplexer 53 to selectively output the high frequency absolute error sum AC_SAD or the low frequency absolute error sum DC_SAD according to the adjacent block arbitration rule, the adjacent block weight value, the difference arbitration rule and the difference weight value. In other words, the arbiter 51 can control and control the multiplexer 53 to selectively output the high-frequency absolute error and AC_SAD or the low-frequency absolute error and DC_SAD according to a combination of multiple arbitration rules, so that the motion compensation circuit 52 can correctly perform motion compensation .
综上所述,虽然本发明已以优选实施例公开如上,然其并非用以限定本发明。本领域技术人员在不脱离本发明的精神和范围内,当可作各种的更动与润饰。因此,本发明的保护范围当视所附权利要求书所界定者为准。In summary, although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be defined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110225703.0A CN102932581B (en) | 2011-08-08 | 2011-08-08 | Image processing circuit and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110225703.0A CN102932581B (en) | 2011-08-08 | 2011-08-08 | Image processing circuit and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102932581A CN102932581A (en) | 2013-02-13 |
CN102932581B true CN102932581B (en) | 2016-03-30 |
Family
ID=47647271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110225703.0A Active CN102932581B (en) | 2011-08-08 | 2011-08-08 | Image processing circuit and image processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102932581B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114257756B (en) * | 2020-09-25 | 2024-12-20 | 瑞昱半导体股份有限公司 | Video Processing Method for Correcting Motion Vectors |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025827A (en) * | 2006-02-21 | 2007-08-29 | 华晶科技股份有限公司 | Dynamic image processing method |
CN101309407A (en) * | 2007-05-14 | 2008-11-19 | 奇景光电股份有限公司 | motion estimation method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222604B (en) * | 2007-04-04 | 2010-06-09 | 晨星半导体股份有限公司 | Method for calculating motion estimation value and estimating motion vector of image |
US20090244388A1 (en) * | 2008-03-27 | 2009-10-01 | Siou-Shen Lin | Motion estimation method and related apparatus for determining target motion vector according to motion of neighboring image blocks |
-
2011
- 2011-08-08 CN CN201110225703.0A patent/CN102932581B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025827A (en) * | 2006-02-21 | 2007-08-29 | 华晶科技股份有限公司 | Dynamic image processing method |
CN101309407A (en) * | 2007-05-14 | 2008-11-19 | 奇景光电股份有限公司 | motion estimation method |
Also Published As
Publication number | Publication date |
---|---|
CN102932581A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100807B (en) | A kind of frame per second method for improving based on motion vector post-processing | |
CN100473119C (en) | Method and device for eliminating exposure flicker | |
WO2010140302A1 (en) | Image processing device, image processing method, program, recording medium, and integrated circuit | |
WO2013100791A1 (en) | Method of and apparatus for scalable frame rate up-conversion | |
CN106791279B (en) | Motion compensation method and system based on occlusion detection | |
TW200847778A (en) | Apparatus and method for frame rate up conversion | |
US20150187051A1 (en) | Method and apparatus for estimating image noise | |
CN102868879A (en) | Method and system for converting video frame rate | |
JP2015165385A (en) | Image processing method and image processor | |
CN102932581B (en) | Image processing circuit and image processing method | |
TWI449433B (en) | Image processing circuit and image processing method | |
CN111294545B (en) | Image data interpolation method and device, storage medium and terminal | |
US20120274845A1 (en) | Image processing device and method, and program | |
JP2005522107A (en) | Up-conversion by noise suppression diagonal direction correction | |
CN201222771Y (en) | High speed edge self-adapting de-interlaced interpolation device | |
US8665287B2 (en) | Color information interpolation method | |
CN107306346A (en) | Image processing method and device, player, electronic equipment | |
JP2011071632A (en) | Image processing apparatus and control method thereof | |
JP5114290B2 (en) | Signal processing device | |
JP2008245135A (en) | Interpolation frame generating method and interpolation frame generating device | |
JP2007243627A (en) | Video signal processor | |
US9008463B2 (en) | Image expansion apparatus for performing interpolation processing on input image data, and image expansion method thereof | |
US8531598B2 (en) | Image processing method and related apparatus for generating target image block | |
CN100479497C (en) | Method and device of vedio noise reduction | |
JP2010034724A (en) | Video processing apparatus |
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 |