Image processing method and associated image processing circuit

Information

  • Patent Grant
  • 10965905
  • Patent Number
    10,965,905
  • Date Filed
    Thursday, August 15, 2019
    5 years ago
  • Date Issued
    Tuesday, March 30, 2021
    3 years ago
Abstract
The present invention provides an image processing method, wherein the method includes the steps of: receiving an image signal including a first frame and a second frame; determining edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame; determining an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame; and directly using one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame.
Description
BACKGROUND OF THE INVENTION
1. Field of the Invention

The present invention is related to image processing, and more particularly, to an image processing method and an associated image processing circuit.


2. Description of the Prior Art

For the purpose of increasing a frame rate to obtain a better display effect, an interpolated frame between two frames may be generated. Motion vector(s) and related image contents may be generated by motion estimation and motion compensation (MEMC). The motion estimation may cause a halo effect when an object moves fast in the image, however. A common MEMC process for eliminating the halo effect has the following problems: a width of the halo is too large; edges of the halo are misaligned; and strength of halo reduction is too strong and thereby introduces edge flicker.


SUMMARY OF THE INVENTION

Thus, an objective of the present invention is to provide an image processing method, which can effectively alleviate the halo effect caused by an interpolated frame, to solve the problems of the related art.


In an embodiment of the present invention, an image processing method is disclosed. The image processing method comprises the following steps: receiving an image signal, wherein the image signal comprises a first frame and a second frame; determining edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame; determining an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame; and directly using one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame.


In another embodiment of the present invention, an image processing circuit is disclosed, which comprises a receiving circuit and a motion estimation and motion compensation (MEMC) circuit. In operations of the image processing circuit, the receiving circuit is configured to receive an image signal, wherein the image signal comprises a first frame and a second frame; the MEMC circuit is configured to determine edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame, determine an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame, and directly use one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame.


These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram illustrating an image processing circuit according to an embodiment of the present invention.



FIG. 2 is a diagram illustrating modification of motion vectors of an outer region of an edge of a foreground in an interpolated frame according to an embodiment of the present invention.



FIG. 3 is a flowchart illustrating an image processing method according to an embodiment of the present invention.





DETAILED DESCRIPTION


FIG. 1 is a diagram illustrating an image processing circuit 100 according to an embodiment of the present invention. As shown in FIG. 1, the image processing circuit 100 comprises a receiving circuit 110 and a motion estimation and motion compensation (MEMC) circuit 120. In this embodiment, the image processing circuit 100 may perform operations of increasing frame rates, for example, the image processing circuit 100 receives an image signal Din and generates a plurality of interpolated frames according to a plurality of frames of the image signal Din, where the plurality of frames and the plurality of interpolated frames are transmitted to a display panel 104 through a backend processing circuit 102 for displaying.


Regarding detailed operations of the image processing circuit 100, the receiving circuit 110 receives the image signal Din, where the image signal Din comprises a first frame T1 and a second frame t2 shown in FIG. 2. The MEMC circuit 120 then generates an interpolated frame T_I according to contents of the first frame T1 and the second frame T2, where those skilled in the art should understand operations of generating the interpolated frame T_I, which is therefore omitted for brevity. Additionally, since a foreground object in the first frame T1 and the second frame T2 may move relative to the background, a conventional motion estimation manner may make motion vector(s) of a junction of the foreground object and the background in the interpolated frame T_I inaccurate, thereby causing the halo effect mentioned in the related art. Thus, after the motion vector(s) and related image information of the interpolated frame T_I are generated in this embodiment, motion vector(s) of an outer region of a foreground (such as the foreground object) in the interpolated frame T_I is further modified according to motion vector(s) of the first frame T1 and the second frame T2, to prevent the first frame T1, the interpolated frame T_I and the second frame T2 from the halo effect when being displayed on the display panel 104.


More specifically, the MEMC circuit 120 may determine edges of the foreground in the first frame T1 and the second frame T2 according to at least one motion vector of the first frame T1 and the second frame T2, such as the edge PA of the foreground in the first frame T1 and the edge PB of the foreground in the second frame T2 shown in FIG. 2. In an embodiment, the foreground shown in FIG. 2 may comprise at least one block; taking the foreground as a block for illustrative purposes, a movement amount of the foreground of the first frame T1 to the second frame T2 may be regarded as a motion vector, and the edges PA, PB are edges of the block that is respectively in the first frame T1 and the second frame T2. The MEMC circuit 120 then determines an edge PC of the foreground in the interpolated frame T_I according to the edge PA of the foreground in the first frame T1 and the edge PB of the foreground in the second frame T2; for example, a center point between the edges PA and PB may be calculated to serve as the edge PC. Then, since an outer region 210 of the edge PC of the foreground in the interpolated frame T_I and the background adjacent to the foreground in the first frame T1 correspond to a same location (a same pixel location), the MEMC circuit 120 directly uses motion vector(s) of the background at the left-side of the foreground in the first frame T1 to serve as motion vector(s) of the outer region 210 of the edge PC of the foreground in the interpolated frame T_I. For example, assuming that a background region of the first frame T1 that is directly above the outer region 210 of the edge PC of the foreground in the interpolated frame T_I has a motion vector MV1 (i.e. a movement amount of a block of the background region relative to a reference frame), the motion vector(s) of the region 210 may be directly modified as MV1 (i.e. the movement amount of the block relative to the reference frame).


In another embodiment, the foreground further has edges PA′ and PB′ in the first frame T1 and the second frame T2, and the MEMC circuit 120 determines an edge PC′ of the foreground in the interpolated frame T_I according to an the edge PA′ of the foreground in the first frame T1 and the edge PB′ of the foreground in the second frame T2; for example, a center point of the edges PA′ and PB′ may be calculated to serve as the edge PC′. Then, since an outer region 220 of the edge PC′ of the foreground in the interpolated frame T_I and the background adjacent to the foreground in the second frame T2 correspond to a same location (a same pixel location), the MEMC circuit 120 directly uses motion vector(s) of the background at the right-side of the foreground in the second frame T2 to serve as motion vector(s) of the outer region 220 of the edge PC′ of the foreground in the interpolated frame T_I. For example, assuming that a background region of the second frame T2 that is directly below the outer region 220 of the edge PC′ of the foreground in the interpolated frame T_I has a motion vector MV2 (i.e. a movement amount of a block of the background region relative to a reference frame or the first frame T1), the motion vector(s) of the region 220 may be directly modified as MV2 (i.e. the movement amount of the block relative to the reference frame or the first frame T1).


As mentioned above, since the motion vector(s) of the outer region 210 of the edge PC and the outer region 220 of the edge PC′ of the foreground in the interpolated frame T_I are directly modified as the motion vector(s) of the background of the first frame T1 or the second frame T2, the halo effect can be effectively reduced.



FIG. 3 is a flowchart illustrating an image processing method according to an embodiment of the present invention. Referring to FIGS. 1-3 and the above disclosed description, the flow is as follows.


Step 300: the flow starts.


Step 302: receive an image signal, where the image signal comprises a first frame and a second frame.


Step 304: determine edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame.


Step 306: determine an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame.


Step 308: directly use one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame.


Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Claims
  • 1. An image processing method, comprising: receiving an image signal, wherein the image signal comprises a first frame and a second frame;determining edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame;determining an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame; anddirectly using one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame; wherein the one or more motion vectors of the background in the first frame or the second frame is/are movement amount of block(s) relative to a reference frame, and the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame is/are also the movement amount of the block(s) relative to the reference frame;wherein the second frame immediately follows the first frame, and the step of directly using the one or more motion vectors of the background adjacent to the foreground in the first frame or the second frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame comprises: when the outer region of the edge of the foreground and the background adjacent to the foreground in the first frame correspond to a same location, directly using the one or more motion vectors of the background adjacent to the foreground in the first frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame.
  • 2. The image processing method of claim 1, wherein said at least one motion vector comprises a motion vector of a block of the first frame to a block of the second frame, an edge of the block of the first frame serves as the edge of the foreground in the first frame, and an edge of the block of the second frame serves as the edge of the foreground in the second frame.
  • 3. The image processing method of claim 1, further comprising: generating the interpolated frame according to the first frame and the second frame; andthe step of directly using the one or more motion vectors of the background adjacent to the foreground in the first frame or the second frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame comprises: resetting the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame as the one or more motion vectors of the background adjacent to the foreground in the first frame.
  • 4. An image processing method, comprising: receiving an image signal, wherein the image signal comprises a first frame and a second frame;determining edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame;determining an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame; anddirectly using one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame; wherein the one or more motion vectors of the background in the first frame or the second frame is/are movement amount of block(s) relative to a reference frame, and the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame is/are also the movement amount of the block(s) relative to the reference frame;wherein the second frame immediately follows the first frame, and the step of directly using the one or more motion vectors of the background adjacent to the foreground in the first frame or the second frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame comprises: when the outer region of the edge of the foreground and the background adjacent to the foreground in the second frame correspond to a same location, directly using the one or more motion vectors of the background adjacent to the foreground in the second frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame.
  • 5. An image processing circuit, comprising: a receiving circuit, configured to receive an image signal, wherein the image signal comprises a first frame and a second frame;a motion estimation and motion compensation (MEMC) circuit, coupled to the receiving circuit, configured to determine edges of a foreground in the first frame and the second frame according to at least one motion vector of the first frame and the second frame, determine an edge of the foreground in an interpolated frame according to the edge of the foreground in the first frame and the edge of the foreground in the second frame, and directly use one or more motion vectors of a background adjacent to the foreground in the first frame or the second frame to serve as one or more motion vectors of an outer region of the edge of the foreground in the interpolated frame; wherein the one or more motion vectors of the background in the first frame or the second frame is/are movement amount of block(s) relative to a reference frame, and the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame is/are also the movement amount of the block(s) relative to the reference frame;wherein the second frame immediately follows the first frame, and when the outer region of the edge of the foreground and the background adjacent to the foreground in the first frame correspond to a same location, the MEMC directly uses the one or more motion vectors of the background adjacent to the foreground in the first frame to serve as the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame.
  • 6. The image processing circuit of claim 5, wherein said at least one motion vector comprises a motion vector of a block of the first frame to a block of the second frame, an edge of the block of the first frame serves as the edge of the foreground in the first frame, and an edge of the block of the second frame serves as the edge of the foreground in the second frame.
  • 7. The image processing circuit of claim 5, wherein the MEMC circuit generates the interpolated frame according to the first frame and the second frame, and resets the one or more motion vectors of the outer region of the edge of the foreground in the interpolated frame as the one or more motion vectors of the background adjacent to the foreground in the first frame.
Priority Claims (1)
Number Date Country Kind
201811532931.0 Dec 2018 CN national
US Referenced Citations (14)
Number Name Date Kind
5347311 Golin Sep 1994 A
5440350 Golin Aug 1995 A
5784114 Borer Jul 1998 A
20030206246 De Haan Nov 2003 A1
20070297513 Biswas Dec 2007 A1
20090290809 Yamada Nov 2009 A1
20100061462 Ichiki Mar 2010 A1
20100177974 Chen Jul 2010 A1
20100239019 Bock Sep 2010 A1
20130230107 Chen Sep 2013 A1
20140168040 Bastani Jun 2014 A1
20170094310 Dong Mar 2017 A1
20180007381 Solar Jan 2018 A1
20180374218 Avidor Dec 2018 A1
Foreign Referenced Citations (2)
Number Date Country
201023096 Jun 2010 TW
201027458 Jul 2010 TW
Related Publications (1)
Number Date Country
20200195881 A1 Jun 2020 US