Motion detecting method and motion detector
AssigneeFaraday Technology Corp.
InventorWan-Ting Lee
Life of this patent
Estimating the term…
Abstract
A motion detecting method and a motion detector are provided. The motion detecting method includes the following steps. When the type of the current macro block (MB) is intra-type (I-type) or predictively-coded type (P-type), a first procedure or a second procedure is performed. The first procedure includes setting the active flag of the current MB according to the type of the previous MB. The second procedure includes setting the active flag of the current MB according to the motion vectors of the previous MB and the current MB. The present invention is capable of reducing the probability of erroneous motion judgments.
Claims13
A motion detecting method, comprising:
- receiving a type and a motion vector of a current macro block by a motion detector;
- judging the type of the current macro block;
- when the type of the current macro block is intra-type, performing a first procedure, wherein the first procedure comprises:
- setting an active flag of the current macro block as motion when the current macro block and a predetermined number of previous macro blocks prior to the current macro block on a time axis are all intra-type wherein the current macro block and the predetermined number of previous macro blocks have a same frame position;
- and
- when the type of the current macro block is predictively-coded type, performing a second procedure, wherein the second procedure comprises:
- calculating a scalar converted from an accumulated motion vector of the current macro block according to a first scalar converted from an accumulated motion vector of a first previous macro block and a second scalar converted from the motion vector of the current macro block;
- and
- checking if the scalar is greater than a first threshold;
- and
- setting the active flag of the current macro block as motion when the scalar is greater than the first threshold.
A motion detector, comprising:
- a macro block judgment unit, receiving a type and a motion vector of a Current macro block and comprising:
- an intra-type judgment unit, comprising:
- a first time-domain filter for setting an active flag of the current macro block as motion when the current macro block and a predetermined number of previous macro blocks prior to the current macro block on a time axis are all intra-type wherein the current macro block and the predetermined number of previous macro blocks have a same frame position;
- and
- a predictively-coded-type judgment unit, coupled to the intra-type judgment unit and comprising:
- a second time-domain filter for calculating a scalar converted from an accumulated motion vector of the current macro block according to a first scalar converted from an accumulated motion vector of a first previous macro block and a second scalar converted from the motion vector of the current macro block, checking if the scalar is greater than a first threshold, and setting the active flag of the current macro block as motion when the scalar is greater than the first threshold.
Dependencies are inferred from the claim text.