CN102665033A - Real time digital video image-stabilizing method based on hierarchical block matching - Google Patents

Real time digital video image-stabilizing method based on hierarchical block matching Download PDF

Info

Publication number
CN102665033A
CN102665033A CN2012101383416A CN201210138341A CN102665033A CN 102665033 A CN102665033 A CN 102665033A CN 2012101383416 A CN2012101383416 A CN 2012101383416A CN 201210138341 A CN201210138341 A CN 201210138341A CN 102665033 A CN102665033 A CN 102665033A
Authority
CN
China
Prior art keywords
motion vector
search
block
image
luminance component
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.)
Granted
Application number
CN2012101383416A
Other languages
Chinese (zh)
Other versions
CN102665033B (en
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.)
CHANGSHA JINGJIA MICROELECTRONICS Co Ltd
Original Assignee
CHANGSHA JINGJIA MICROELECTRONICS Co 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 CHANGSHA JINGJIA MICROELECTRONICS Co Ltd filed Critical CHANGSHA JINGJIA MICROELECTRONICS Co Ltd
Priority to CN 201210138341 priority Critical patent/CN102665033B/en
Publication of CN102665033A publication Critical patent/CN102665033A/en
Application granted granted Critical
Publication of CN102665033B publication Critical patent/CN102665033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a real time digital video image-stabilizing method based on hierarchical block matching. The method comprises the following steps: at first, a down-sampling processing on an input image is conducted; then full search of M number of search blocks in a down-sampling image is conducted in the setting range; the optimal motion vector is selected from the search blocks of the down-sampling image and output; further perfect and full search is further conducted in the original image according to the optimal motion vector of the down-sampling image, and a final motion vector of the original image is output; a motion trajectory of the original image is subjected to a low-pass smoothing filtering, and compensation for the image is calculated; a current image is compensated according to the compensation for the image. The real time digital video image-stabilizing method based on hierarchical block matching has the advantages that the method has high real-time property; overall motion and local motion can be distinguished effectively; and the method can adapt to various vibration frequencies and amplitudes, and is strong in robustness.

Description

Real-time digital video image stabilization method based on the hierarchical block coupling
Technical field
The present invention relates generally to a kind of image processing method, specifically refers to a kind of real-time digital video image stabilization method based on the hierarchical block coupling.
Background technology
Along with picture pick-up device use increasingly extensive, it is more and more diversified that platform for video camera becomes.The vision signal that obtains through vehicle-mounted pick-up system, hand-held photographic equipment, aircraft or naval vessel photography platform etc. tends to because the motion of video camera is shaken.Video jitter not only can influence visual effect, makes the beholder produce dizzy easily and then causes erroneous judgement and fail to judge, and bring difficulty for further image processing.How these vision signals are converted into high-quality stable video and have important significance for theories and practical value.
Surely divide as principle by video, commonly used surely can be divided three classes as device: mechanical type is picture surely, and optics surely looks like and electronic steady image.Electronic steady image is as a kind of novel steady picture technology, than the steady picture of traditional gyroscope, damping device surely as and optics surely have simple in structurely as waiting, equipment volume is little, price is low, the little grade of power consumption clear superiority.
The algorithm of electronic steady image system comprises block matching algorithm, representative point matching algorithm, Gray Projection algorithm, bit plane matching algorithm, optical flow field method, frequency domain estimation technique or the like.Wherein block matching algorithm is realized simple with algorithm; Complexity is low; The commercial Application degree extensively is celebrated; But there are following 2 subject matters in traditional block matching algorithm: at first being the contradiction between search precision and algorithm time complexity, is the differentiation problem of video image global motion and local motion secondly.
Summary of the invention
The present invention is directed to the problem of the steady picture of conventional block coupling algorithm, a kind of real-time digital video image stabilization method based on the hierarchical block coupling is provided.
It comprises the steps: that at first input luminance component image being carried out down-sampling handles; Then M search block in the luminance component down-sampled images carried out the full search of setting range, export each search block motion vector and SAD statistical information; Judge its motion vector validity according to each search block SAD statistical information of luminance component down-sampled images; To effective search block movable information statistics " direction of motion " and " motion size " similarity, choose the similarity soprano again as optimum movement vector and output; Luminance component down-sampled images optimum movement vector after luminance component original image equal proportion is amplified, is further done the setting range refinement and searched for entirely, and output luminance component original image final motion vector; To the at interval interior luminance component original image movement locus low pass smothing filtering of certain hour, and calculate output final image compensation rate; According to the final image compensation rate present image is compensated;
With the existing steady picture of coupling compared with techniques, the invention has the advantages that: 1, computation complexity is low.Adopt layering to mate soon, extensive search is operated in the down-sampled images carries out, and original image only carries out fine search among a small circle, significantly reduces computation complexity; 2, search precision is high.In down-sampled images and original image, all adopt full search, guarantee the motion vector accuracy; 3, effectively distinguish global motion and local motion, improve the subjective and objective performance of steady picture.Choose suitable search block size, and choose optimum down-sampled images motion vector through SAD statistical information and motion vector similarity degree.
Description of drawings
Fig. 1 is the real-time digital video image stabilization method overall flow figure based on the hierarchical block coupling,
Fig. 2 chooses flow chart for the down-sampled images optimum movement vector;
Fig. 3 is a FIR LPF sketch map;
Embodiment
Below will combine accompanying drawing and specific embodiment that the present invention is explained further details.As shown in Figure 1, the real-time digital video image stabilization method based on the hierarchical block coupling of the present invention may further comprise the steps:
The first step, the input picture preliminary treatment.
In level and vertical direction the input image lightness component is carried out N times of down-sampling processing respectively.
Second step, the down-sampled images motion search.
In down-sampled images, respectively M search block carried out the full search of setting range, in search procedure, add up the SAD relevant information, and export with motion vector.Concrete steps are following:
Step 1 is searched for each search block in reference to down-sampled images entirely.
If search window is wide is SW, and height is SH, and search block is wide to be BW, and height is BH, and total number of positions to be searched is SCAND, and the search block interior pixel is counted out and is PNUM, then
SCAND=SW×SH
PNUM=BW×BH。
Full search block matching criterior is SAD:
SAD = Σ i = 0 N Σ j = 0 M ( cur i , j - ref i , j )
N wherein, M is the wide height of search block, and cur is the present frame search block, and ref is the respective reference frame search block.
Step 2, statistics SAD information A VAIL in full search procedure i, i=0,1,2,3 ... M, i are the search block index.If T0 is a natural number, CURSAD is a search block current location sad value, and the minimum sad value of search block is MINSAD, then
MINSAD=PNUM×PNUM。
Before the full search of beginning, AVAIL iBe initialized as 0.Each search block when traversal reference picture SCAND searching position, as if current location CURSAD smaller or equal to MINSAD, then corresponding AVAIL iAdd fixed increment, otherwise, corresponding AVAIL iRemain unchanged.
The 3rd step, the down-sampled images extraction of motion information.
As shown in Figure 2; At first judge its motion vector validity according to M search block SAD of luminance component down-sampled images statistical information; To effective search block statistics motion vector similarity, choose the similarity soprano again as luminance component down-sampled images optimum movement vector and output.Concrete steps are following:
Step 1 is judged each search block movable information validity according to the SAD statistical information of luminance component down-sampled images motion search output.
If T1 is a natural number, and 0<=T1<=SCAND, if the AVAIL of search block i iThen this search block motion vector is effective less than T1, otherwise this search block motion vector is invalid.Search block with efficient motion-vector is called active block, otherwise, be called invalid block.
Step 2 is carried out motion vector correlation statistics to active block.
If the horizontal motion vector of active block i is Xi; The vertical motion vector of active block i is Yi; SIMXi is that the motion vector horizontal component is the active block number of Xi in M search block of luminance component down-sampled images; SIMYi is that the motion vector vertical component is the active block number of Yi in M search block of luminance component down-sampled images, and the motion vector similarity of active block i is SIMi, then
SIMi=SIMXi+SIMYi。
Ask for the motion vector similarity of all active blocks, getting the maximum active block block motion vector of similarity is luminance component down-sampled images optimal motion vector and output.
The 4th step, the original image fine search.
Luminance component down-sampled images optimum movement vector after luminance component original image equal proportion is amplified, is carried out the full search of refinement and the output original image final motion vector of setting range to the corresponding original image search block of luminance component image optimum motion vector active block.
The 5th step, movement locus filtering.
The at interval interior luminance component original image movement locus of certain hour is done the low pass smothing filtering, and calculate output final image compensation rate, as shown in Figure 3.Concrete steps are following:
Step 1: movement locus statistics.
If i; N is a natural number, expression input picture frame number, and the n frame original image terminal level motion vector of above-mentioned the 4th step output is Xn; The final vertical motion vector of n frame original image of above-mentioned the 4th step output is Yn; The i frame is SUMXi with respect to the horizontal-shift position of the 0th frame, and the i frame is SUMYi with respect to the vertical shift position of the 0th frame, then
SUMXi = Σ n = 0 i Xn
SUMYi = Σ n = 0 i Yn .
Step 2: movement locus filtering.
If T2 is a natural number, FIR T2For the rank umber of beats is the low pass filter of T2, i two field picture terminal level compensation rate is MCxi, and the final VCP amount of i two field picture is MCyi, then
MCxi=SUMXi-FIR T2(SUMX i-T2,SUMX i-T2+1,SUMX i-T2+2,......,SUMX i)
MCyi=SUMYi-FIR T2(SUMY i-T2,SUMY i-T2+1,SUMY i-T2+2,......,SUMY i)。
The 6th step, motion compensation.
According to horizontal compensation rate MCxi of final image and final image VCP amount MCyi current image frame is carried out the translation compensation.

Claims (4)

1. based on the real-time digital video image stabilization method of hierarchical block coupling, it may further comprise the steps:
Step (1): input picture preliminary treatment;
In level and vertical direction input luminance component image is done N times of down-sampling processing respectively;
Step (2): down-sampled images motion search;
Respectively M search block of luminance component down-sampled images carried out the full search of setting range, and output movement vector and SAD statistical information;
Step (3): down-sampled images extraction of motion information;
Judge its motion vector validity according to each search block SAD statistical information of luminance component down-sampled images, to effective search block statistics motion vector similarity, choose the similarity soprano and export again as luminance component down-sampled images optimum movement vector;
Step (4): original image fine search;
Luminance component down-sampled images optimum movement vector after luminance component original image equal proportion is amplified, is done the setting range refinement at the luminance component original image and searched for entirely, and output luminance component original image final motion vector;
Step (5): movement locus filtering;
The at interval interior luminance component original image movement locus of certain hour is done the low pass smothing filtering, and calculate output final image compensation rate;
Step (6): motion compensation;
According to the final image compensation rate present image is compensated.
2. according to the said real-time digital video image stabilization method based on the hierarchical block coupling of claim 1, it is characterized in that: said step (2) down-sampled images motion search specifically may further comprise the steps:
Step 1: each search block is searched for entirely;
If search window is wide is SW, and height is SH, and search block is wide to be BW, and height is BH, position to be searched add up to SACND, the search block interior pixel is counted out and is PNUM, then
SCAND=SW×SH
PNUM=BW×BH;
Step 2: statistics SAD information A VAIL in full search procedure i, i=0,1,2,3 ..., M, i is the search block index, and establishing T0 is natural number, and CURSAD is a search block current location sad value, and the minimum SAD threshold value of search block is MINSAD, then
MINSAD=PNUM×PNUM;
Each search block is in traversal during SCAND searching position, as if current location CURSAD smaller or equal to MINSAD, then corresponding AVAIL iAdd fixed increment, otherwise, corresponding AVAIL iRemain unchanged.
3. according to the said real-time digital video image stabilization method based on the hierarchical block coupling of claim 1, it is characterized in that: said step (3) down-sampled images extraction of motion information specifically may further comprise the steps:
Step 1: the SAD statistical information according to the output of luminance component down-sampled images motion search is judged each search block motion vector validity;
If T1 is a natural number, and 0<=T1<=SCAND, if the AVAIL of search block i iThen this search block motion vector is effective less than T1, otherwise this search block motion vector is invalid.Search block with efficient motion-vector is called active block, otherwise, be called invalid block;
Step 2: active block is carried out motion vector correlation statistics:
If the horizontal motion vector of active block i is Xi; The vertical motion vector of active block i is Yi; SIMXi is that the motion vector horizontal component is the active block number of Xi in M search block of luminance component down-sampled images; SIMYi is for being that the motion vector vertical component is the active block number of Yi in M search block of luminance component down-sampled images, and the motion vector similarity of active block i is SIMi, then
SIMi=SIMXi+SIMYi;
Ask for the motion vector similarity of whole active blocks, getting the maximum active block motion vector of motion vector similarity is luminance component down-sampled images optimal motion vector.
4. according to the said real-time digital video image stabilization method based on the hierarchical block coupling of claim 1, it is characterized in that: said step (5) movement locus filtering specifically may further comprise the steps:
Step 1: movement locus statistics;
If i; N is a natural number, expression input picture frame index, and the n frame original image terminal level motion vector of claim 1 step (4) output is Xn; The final vertical motion vector of n frame original image of claim 1 step (4) output is Yn; The i frame is SUMXi with respect to the horizontal-shift position of the 0th frame, and the i frame is SUMYi with respect to the vertical shift position of the 0th frame, then
Figure FDA00001609330000021
Step 2: movement locus filtering;
If T2 is a natural number, FIR T2For the rank umber of beats is the low pass filter of T2, i two field picture terminal level compensation rate is MCxi, and the final VCP amount of i two field picture is MCyi, then
MCxi=SUMXi-FIR T2(SUMX i-T2,SUMX i-T2+1,SUMX i-T2+2,......,SUMX i)
MCyi=SUMYi-FIR T2(SUMY i-T2,SUMY i-T2+1,SUMY i-T2+2,......,SUMY i)。
CN 201210138341 2012-05-07 2012-05-07 Real time digital video image-stabilizing method based on hierarchical block matching Active CN102665033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210138341 CN102665033B (en) 2012-05-07 2012-05-07 Real time digital video image-stabilizing method based on hierarchical block matching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210138341 CN102665033B (en) 2012-05-07 2012-05-07 Real time digital video image-stabilizing method based on hierarchical block matching

Publications (2)

Publication Number Publication Date
CN102665033A true CN102665033A (en) 2012-09-12
CN102665033B CN102665033B (en) 2013-05-22

Family

ID=46774437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210138341 Active CN102665033B (en) 2012-05-07 2012-05-07 Real time digital video image-stabilizing method based on hierarchical block matching

Country Status (1)

Country Link
CN (1) CN102665033B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349039A (en) * 2013-07-31 2015-02-11 展讯通信(上海)有限公司 Video anti-jittering method and apparatus
CN103237156B (en) * 2013-04-02 2016-08-10 哈尔滨工业大学 It is applied to the improvement block matching algorithm of electronic steady image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316368A (en) * 2008-07-18 2008-12-03 西安电子科技大学 Full view stabilizing method based on global characteristic point iteration
CN101924874A (en) * 2010-08-20 2010-12-22 北京航空航天大学 Matching block-grading realtime electronic image stabilizing method
CN102055884A (en) * 2009-11-09 2011-05-11 深圳市朗驰欣创科技有限公司 Image stabilizing control method and system for video image and video analytical system
US20110150093A1 (en) * 2009-12-22 2011-06-23 Stephen Mangiat Methods and apparatus for completion of video stabilization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316368A (en) * 2008-07-18 2008-12-03 西安电子科技大学 Full view stabilizing method based on global characteristic point iteration
CN102055884A (en) * 2009-11-09 2011-05-11 深圳市朗驰欣创科技有限公司 Image stabilizing control method and system for video image and video analytical system
US20110150093A1 (en) * 2009-12-22 2011-06-23 Stephen Mangiat Methods and apparatus for completion of video stabilization
CN101924874A (en) * 2010-08-20 2010-12-22 北京航空航天大学 Matching block-grading realtime electronic image stabilizing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237156B (en) * 2013-04-02 2016-08-10 哈尔滨工业大学 It is applied to the improvement block matching algorithm of electronic steady image
CN104349039A (en) * 2013-07-31 2015-02-11 展讯通信(上海)有限公司 Video anti-jittering method and apparatus
CN104349039B (en) * 2013-07-31 2017-10-24 展讯通信(上海)有限公司 Video anti-fluttering method and device

Also Published As

Publication number Publication date
CN102665033B (en) 2013-05-22

Similar Documents

Publication Publication Date Title
US7605845B2 (en) Motion stabilization
CN1992789B (en) Motion estimator and motion method
CN103079037B (en) Self-adaptive electronic image stabilization method based on long-range view and close-range view switching
CN105611116B (en) A kind of global motion vector method of estimation and monitor video digital image stabilization method and device
CN103402098B (en) A kind of video frame interpolation method based on image interpolation
CN105872345A (en) Full-frame electronic image stabilization method based on feature matching
CN107749987B (en) Digital video image stabilization method based on block motion estimation
CN106101566A (en) Video stabilization
CN110009675B (en) Method, apparatus, medium, and device for generating disparity map
CN109859126A (en) A kind of vedio noise reduction method, apparatus, electronic equipment and storage medium
CN101511024A (en) Movement compensation method of real time electronic steady image based on motion state recognition
CN108307118B (en) Inertial navigation parameter manifold optimization-based low-delay video image stabilization method
CN105100807A (en) Motion vector post-processing based frame rate up-conversion method
CN105100546A (en) Movement estimation method and device
CN110992395B (en) Image training sample generation method and device and motion tracking method and device
CN106534833B (en) A kind of double vision point three-dimensional video-frequency antihunt means of joint space time shaft
CN103227888A (en) Video stabilization method based on empirical mode decomposition and multiple evaluation criteria
CN107360377B (en) Vehicle-mounted video image stabilization method
CN105721776A (en) Sports camera device with digital image stabilization function and digital image stabilization method
CN107197121A (en) A kind of electronic image stabilization method based on on-board equipment
CN110401796A (en) A kind of jitter compensation method and device of image collecting device
CN103489201B (en) Method for tracking target based on motion blur information
CN102665033B (en) Real time digital video image-stabilizing method based on hierarchical block matching
Ejaz et al. Video stabilization by detecting intentional and unintentional camera motions
CN111583305A (en) Neural network training and motion trajectory determination method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 410205 Hunan province Changsha Hexi Valley base Lu Jing Road No. 2 Changsha Productivity Promotion Center

Applicant after: Changsha Jingjia Microelectronic Co., Ltd.

Address before: 410205 Hunan province Changsha Hexi Valley base Lu Jing Road No. 2 Changsha Productivity Promotion Center

Applicant before: Changsha Jingjia Microelectronics Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant