CN101951464A - Real-time video image stabilizing method based on integral image characteristic block matching - Google Patents

Real-time video image stabilizing method based on integral image characteristic block matching Download PDF

Info

Publication number
CN101951464A
CN101951464A CN2010101792813A CN201010179281A CN101951464A CN 101951464 A CN101951464 A CN 101951464A CN 2010101792813 A CN2010101792813 A CN 2010101792813A CN 201010179281 A CN201010179281 A CN 201010179281A CN 101951464 A CN101951464 A CN 101951464A
Authority
CN
China
Prior art keywords
piece
integrogram
block
sigma
motion
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.)
Pending
Application number
CN2010101792813A
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.)
SHANGHAI WENXIANG INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI WENXIANG INFORMATION TECHNOLOGY 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 SHANGHAI WENXIANG INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI WENXIANG INFORMATION TECHNOLOGY Co Ltd
Priority to CN2010101792813A priority Critical patent/CN101951464A/en
Publication of CN101951464A publication Critical patent/CN101951464A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a real-time video image stabilizing method based on integral image characteristic block matching, which enhances the capability of preventing illumination and image noise shooting equipment, improves the robustness of global motion parameter estimation and further improves the video image stabilizing capability of the shooting equipment in a complex environment. The method comprises the following steps of: 1. carrying out block division on the current frame; 2. describing each block content by utilizing integral image characteristics; 3. carrying out block matching motion estimation on each block by using an integral image characteristic error minimum as a matching criterion; 4. calculating a motion vector of the block to obtain a global motion parameter of the current frame relative to the previous frame; 5. carrying out motion filter processing on the global motion parameter; and 6. carrying out motion compensation according to a filter result.

Description

Real-time video image stabilization method based on integrogram characteristic block coupling
Technical field
The present invention relates to is a kind of consumer electronics series products such as mobile phone, digital camera, video camera that are widely used in, also can be widely used in simultaneously shooting that aircraft, naval vessel, satellite, guided missile etc. are equipped and the real-time video image stabilization method in the surveillance, specifically be a kind of real-time video image stabilization method based on integrogram characteristic block coupling.
Background technology
The video sequence that video camera is taken in moving process, the active movement part that has not only comprised video camera, also introduced simultaneously irregular random motion, the existence of this random motion, can cause the shake of video and fuzzy, had a strong impact on people's visual experience, the purpose of the steady picture of video is exactly to eliminate or weaken this random motion to damaging influence that video pictures caused.The realization of the steady picture of video comprises estimation, motion filtering and three modules of inactive area compensation, and at these three modules, Chinese scholars has proposed a lot of methods.Aspect estimation, have based on piece, based on characteristic point, based on methods such as bit planes; Aspect motion filtering, weighted mean filtering, Kalman filtering (Kalman Filter) etc. are arranged; Aspect the inactive area compensation, have based on the image amplification, based on video reparation methods such as (Video Inpaint).Although proposed so multi-method, the good compromise but these methods still fail to accomplish on speed and effect, such as: aspect estimation, block-based method, speed is fast, but be subjected to illumination effect bigger,, have anti-preferably lighting effect based on the characteristic point method, but it is responsive to local motion, based on the bit plane method, to illumination-insensitive, but speed is slow and memory data output is bigger.
In addition aspect motion filtering, substantially all be to adopt legacy card Kalman Filtering or weighted mean filtering, the response of filtering is bad, and the filtering method that has utilizes future frame information to carry out the forward direction smoothing processing, although filter effect is better, owing to utilize future frame information not handle in real time; Inactive area compensation aspect, a kind of preferably at present method are to utilize video to repair thought to realize, still the fatal shortcoming of this method is the slow and dependence future frame information of speed, can't handle in real time.Therefore,, design one group of real-time and effective estimation, motion filtering and inactive area compensation method and seem extremely important surely as for the device for the video of a robust.
At last, find that by prior art documents Marius Tico is at " IEEEInternational Conference on Image Processing " (pp569-572,2005) deliver " Constraint motion filtering for videostabilization " on (based on the video image stabilization method of constrained motion filtering, the image processing ieee international conference), this article has adopted Kalman's motion filtering method of feature point tracking method and belt restraining restriction, result of the test shows that this method has and surely looks like effect preferably, but the estimation in the literary composition has adopted the characteristic matching based on both full-pixel, the precision height, but speed is slow, with having adopted in the eight-legged essay based on Kalman's motion filtering method of model at the uniform velocity, when motion model mates, filter effect is better, in case but model changes, then filter effect can be subjected to very big influence, and actual camera does not often meet the uniform motion rule in shooting process.
Summary of the invention
Technical problem to be solved by this invention provides a kind of real-time video image stabilization method based on integrogram characteristic block coupling, it has strengthened the anti-illumination of picture pick-up device and the ability of picture noise, improved the robustness of global motion parameter Estimation, and then improved picture pick-up device the video under the complex environment is surely looked like ability.
In order to solve above technical problem, the invention provides a kind of real-time video image stabilization method based on integrogram characteristic block coupling, it comprises the steps: the first step, present frame is carried out piece to be cut apart, second step, utilize each piece content of integrogram feature description, the 3rd step, with integrogram characteristic error minimum is that matching criterior is carried out the block matching motion estimation to each piece, and in the 4th step, the motion vector of adding up described obtains the global motion parameter of present frame with respect to former frame, the 5th step, the global motion parameter is carried out motion filtering handle, in the 6th step, carry out motion compensation according to the filtering result.
In addition, described the 4th step comprises: the 4-1 step, whether the decision block motion is unusual, if not unusually then be labeled as active block, in the 4-2 step, the mean value of adding up described active block translational movement estimates the global translation parameter, the 4-3 step, estimate rotation and the amount of zoom of each active block according to described global translation amount, in the 4-4 step, add up rotation and amount of zoom that described rotation and amount of zoom estimate the overall situation with respect to the match block in the former frame.
Wherein, described the 5th step Filtering Processing is to adopt particle filter method to carry out motion filtering to handle, and the importance sampling in described the 5th step particle filter method obtains by method for adaptive kalman filtering.
The present invention has adopted the piece method for estimating based on the integrogram feature, and this piece method for estimating, at first current frame image is divided into some, as 8x8 or 16x16, every is mated in the particular search scope in reference frame, matching criterior between piece and the piece, conventional method adopts absolute error, mean square error etc., these criterions are easy to calculate, but it is responsive to picture noise and illumination variation, the present invention has adopted the integrogram characteristic error as matching criterior, this feature has fast operation, and have picture noise and the insensitive advantage of illumination variation, strengthened the anti-illumination of picture pick-up device and the ability of picture noise, improved the robustness of global motion parameter Estimation.In addition, after obtaining the piece kinematic parameter, need estimate the global motion parameter of present frame based on these kinematic parameters with respect to former frame, in order to estimate the global motion parameter exactly, need judge the movement tendency of each piece, and need reject the unusual piece of those movement tendencies, generally speaking, the movement tendency of several piece is consistent mostly, but the piece that has meeting is unusual owing to movement tendency appears in factors such as object local motion or interference, the present invention is based on most piece movement tendency agreement principles, think that the motion vector of most several piece obeys a Gaussian Profile, and near pairing of the motion vector that is positioned at the Gaussian Profile average is only active block, and all the other are the abnormal motion piece.Then, after judging active block, need utilize the kinematic parameter of these pieces to estimate the global motion parameter, classical way is to adopt least square method to find the solution an overdetermined equation group, promptly
Figure GSA00000133217600031
Wherein
Figure GSA00000133217600032
Be the global motion parameter, X is the coordinate of piece in the former frame, X ' is the coordinate of corresponding blocks in the present frame, when finding the solution this equation, need ask matrix inversion, the dimension of this matrix is generally all higher, therefore computing is complicated, and might matrix to occur irreversible owing to the computer numerical problem, causes obtaining the global motion parameter, and utilization of the present invention estimates the translation that each piece of present frame is produced with respect to the former frame piece, rotation and amount of zoom, then, adopt the method for average statistical to obtain the global motion parameter, this method realizes simple, avoided complicated higher dimensional matrix inversion operation, and estimated accuracy is higher.At last, the present invention designs a kind of probability particle filter method based on adaptive Kalman filter (Particle Filter), by regulating the observation noise variance, improve the response speed of Kalman filtering, come the state estimation error of correction card Kalman Filtering when motion model does not match by the probability particle filter method simultaneously.
Description of drawings
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Fig. 1 (a)-1 (h) is a processing method The general frame of the present invention.
Wherein Fig. 1 (a) is integrogram feature description figure; Fig. 1 (b) is the integrogram feature description figure of moving mass; Fig. 1 (c) is a piece estimation flow chart; Fig. 1 (d) is abnormal motion piece and lost motion piece mark figure; Fig. 1 (e) is the anglec of rotation tolerance of single active block and the estimation schematic diagram of amount of zoom; Fig. 1 (f) is the global motion parameter Estimation flow chart based on active block; Fig. 1 (g) is motion filtering implementation procedure figure; Fig. 1 (h) is the The general frame of the steady picture of video.
Fig. 2 (a)-2 (b) is two kinds of motion filtering effect comparison diagrams among the present invention.
Wherein Fig. 2 (a) is Kalman's motion filtering method design sketch of belt restraining restriction, and Fig. 2 (b) is the probability particle filter method design sketch based on adaptive Kalman filter.
Fig. 3 (a)-(f) surely looks like design sketch for video among the present invention.
Wherein Fig. 3 (a) is an original video sequence, Fig. 3 (b) is a steady picture back sequence, Fig. 3 (c) is the motion filtering design sketch of x direction displacement, Fig. 3 (d) is the motion filtering design sketch of y direction displacement, Fig. 3 (e) is the motion filtering design sketch of anglec of rotation tolerance, and Fig. 3 (f) is the motion filtering design sketch of amount of zoom.
Embodiment
The The general frame of a kind of real-time video image stabilization method based on integrogram characteristic block coupling that Fig. 1 (a)-1 (h) proposes for the present invention.The concrete implementation detail of each several part is as follows:
Fig. 1 (a) is integrogram feature description figure
1. integrogram feature (corresponding English be Integral Image Feature)
Shown in Fig. 1 (a), so-called integrogram feature, in the drawings in the white rectangle zone in grey scale pixel value sum and the black rectangle zone difference of grey scale pixel value sum be the integrogram feature, adopted 5 kinds of integrogram features among the figure, certainly can need in the reality to set.The benefit of this feature is embodied in: the influence that the pixel value sum in (1) zone can effectively resist picture noise, (2) in the adjacent rectangle zone pixel and the effective customer service illumination effect of difference, so this feature all has better anti-jamming capability to picture noise and illumination.In order to calculate these features fast, need to convert original image to integral image, conversion formula is:
ii ( x , y ) = Σ x ′ ≤ x , y ′ ≤ y i ( x ′ , y ′ ) - - - ( 1 )
Wherein, x and y are the pixel coordinate in the integral image, and x ' and y ' are the pixel coordinate in the original image, ii is an integral image, i is an original image, and integral image has been arranged, and the computational short cut of integrogram feature is the simple plus-minus to rectangle summit locational integrogram pixel value so.
Fig. 1 (b) is the integrogram feature description figure of moving mass
1. piece integrogram feature and piece matching criterior
The content of piece can be described by one group of size single integrogram feature different with the position, piece for a 16x16, integrogram feature in it has thousands of, if come the content of description block with whole integrogram features, the precision height, but real-time is poor, just can describe out the content of a piece well by about 100 the integrogram features of test discovery.Behind good each piece of integrogram feature description, then the matching error criterion of two pieces can design as follows:
ISAD ( Δ x , Δ y ) = Σ k = 0 M | F B ( i , j ) ( k ) - F B ( i + Δ x , j + Δ y ) ( k ) | - - - ( 2 )
Wherein, k is the call number of integrogram feature, and M is an integrogram feature sum, Δ xAnd Δ yBe displacement, (i is (i, piece j), B (i+ Δ for the present frame center j) to B x, the j+ Δ y) for the former frame center be (i+ Δ x, the j+ Δ y) piece, F B (i, j)(k) and
Figure GSA00000133217600062
Be respectively piece B (i, j) and B (i+ Δ x, the j+ Δ y) last k integrogram feature, if this error is minimum, then show this two piece couplings in search procedure.
Fig. 1 (c) is a piece estimation flow chart
1. piece estimation
After having determined the matching error criterion, searching algorithm searches out corresponding blocks with present frame block-matching error minimum according to this criterion in the former frame image.In order to ensure the accuracy of coupling, in search procedure, select the piece of feature rich to go to search for as far as possible, and, directly carry out the invalid block mark the not abundant piece of those features, do not participate in motion match.The feature rich degree can be calculated by following formula:
T = Σ k = 1 M F B ( k ) - - - ( 3 )
Wherein, F B(k) be k integrogram feature on the piece B, M is an integrogram feature sum.Generally speaking, the texture information in the piece is relevant with T value size, and the T value is big more, and this piece texture information is obvious more, and feature is abundant more, otherwise, otherwise.If T is less than a minimum threshold, then the feature of this piece cannot not be defined as abundantly, and Direct Mark is an invalid block.Equally, the piece bigger to those matching errors in estimation also carries out the invalid block mark, because error is bigger than normal, illustrates that coupling may be inaccurate.The part piece is carried out invalid mark, can improve the precision of global motion parameter Estimation.On searching method, the present invention has adopted traditional diamond search (ds), and this method speed is fast, search precision is high.
Fig. 1 (d) is abnormal motion piece and lost motion piece mark figure
1. the abnormal motion piece is rejected
The rejecting abnormalities moving mass is the same with the purpose of mark invalid block, all be in order to estimate the global motion parameter more accurately, generally speaking, the movement tendency of several piece all is consistent mostly, but the piece that has can be because the local motion or the interference of object, it is unusual movement tendency to occur, must find out these pieces and also be rejected.In the present invention, adopted a kind of statistical method to realize rejecting to the abnormal motion piece, at first, add up the average and the variance of the motion vector of all pieces, then with this average and gauss of distribution function of variance structure, if the motion vector distribution of certain piece then is labeled as the abnormal motion piece with this piece beyond 3 times of variances of this Gaussian Profile average.The piece that indicates the canescence line among Fig. 1 (d) is the dyskinesia piece, and the piece of no lines mark is the bigger piece of error in the abundant or matching process of feature, and the piece that indicates the black line is an active block.The judgement performing step of abnormal motion piece is as follows:
Step 1: the average of statistics block kinematic parameter and variance
The average of piece kinematic parameter and variance computing formula are as follows:
U x = 1 L Σ l = 1 L V x ( l ) - - - ( 4 )
S x 2 = 1 L - 1 Σ l = 1 L [ V x ( l ) - U x ] 2 - - - ( 5 )
U y = 1 L Σ l = 1 L V y ( l ) - - - ( 6 )
S y 2 = 1 L - 1 Σ l = 1 L [ V y ( l ) - U y ] 2 - - - ( 7 )
Wherein, l is the index value of piece, and L is the total quantity of piece, V x(l) be the moving displacement of l piece on the x direction, V y(l) be moving displacement on the y direction, U xBe the moving displacement average of all pieces on the x direction,
Figure GSA00000133217600075
Be the moving displacement variance on the x direction, U yBe the moving displacement average of all pieces on the y direction,
Figure GSA00000133217600076
Be the moving displacement variance on the y direction.
Step 2: the dyskinesia of checking each piece
For k piece, if its x and y direction displacement V x(k) and V y(k) satisfy following any one formula, then this piece is the abnormal motion piece, needs to reject, and does not participate in average and variance calculating next time, and formula is as follows:
[ V x ( k ) - U x ] 2 > T * S x 2 [ V y ( k ) - U y ] 2 > T * S y 2 - - - ( 8 )
Wherein, T is a threshold value, generally gets 2.5-4.
Step 3: circulation step 1 and step 2, when iteration satisfies a maximum iteration time, or the current average that counts compares variation when very little with previous average, stops iteration.
Fig. 1 (e) is the anglec of rotation tolerance of single active block and the estimation schematic diagram of amount of zoom
1. the anglec of rotation of single active block tolerance and amount of zoom are estimated
After judging active block, need to estimate the global motion parameter based on the kinematic parameter of these pieces.Present frame, then can be described by the piece motion process among Fig. 1 (e) if be reacted on the piece with respect to the global motion process of former frame, that is: the piece of former frame is from O 1Point moves to the O of present frame 2Point then, rotates to O 3Point, last, zoom to O 4The point.Before the anglec of rotation tolerance of estimating single active block and amount of zoom, need count the global translation amount earlier, the global translation amount can be calculated by following formula:
G x = 1 M Σ m = 1 M V x ( m ) - - - ( 9 )
G y = 1 M Σ m = 1 M V y ( m ) - - - ( 10 )
Wherein, G xAnd G yBe the global translation amount of present frame with respect to former frame, M is the sum of active block, and m is the index of active block, V x(m) and V y(m) be respectively the moving displacement amount of m active block on x direction and y direction.
Piece is at O 1G has been passed through in the position xAnd G yAfter the translation, arrive O 2Point rotates to O then 3Point, anglec of rotation θ (m) can calculate by following formula:
θ ( m ) = ∠ O 2 OO 4
= ∠ BOO 4 - ∠ BOO 2
= a tan ( O 4 x O 4 y ) - a tan ( O 2 x O 2 y ) - - - ( 11 )
= a tan ( O 4 x O 4 y ) - a tan ( O 1 x + G x O 1 y + G y )
Wherein, O 4yAnd O 4xFor the present frame center is (O 4y, O 4x) piece, O 1yAnd O 1xBe the best matching blocks center that in former frame, searches, G xAnd G yBe the global translation amount of estimating.
In like manner, can derive the amount of zoom of each active block:
S ( m ) = r oo 4 r oo 3 = r oo 4 r oo 2
= O 4 y 2 + O 4 x 2 O 2 y 2 + O 2 x 2 - - - ( 12 )
= O 4 y 2 + O 4 x 2 ( O 1 y + G y ) 2 + ( O 1 x + G x ) 2
Fig. 1 (f) estimates flow chart based on the global parameter of active block
1. global motion parameter Estimation
After the translational movement that obtains each active block, anglec of rotation tolerance and amount of zoom, then the global motion parameter also can be obtained by this tittle statistics, wherein, the global translation amount is estimated by formula (9) and formula (10), and overall anglec of rotation tolerance and amount of zoom can be estimated by following formula:
G θ = 1 M Σ m = 1 M θ ( m ) - - - ( 13 )
G S = 1 M Σ m = 1 M S ( m ) - - - ( 14 )
Wherein, G θBe overall rotation amount, G SBe overall amount of zoom, θ (m) is the anglec of rotation tolerance of m active block, and S (m) is the amount of zoom of m active block.
Fig. 1 (g) is motion filtering implementation procedure figure.
So-called motion filtering is exactly the filtering jittering component, makes processed video become steady.Because the method for amplifying based on image has been adopted in the compensation of the inactive area among the present invention, therefore need carry out amplitude limit to the output of filtering algorithm, promptly compensation rate can not be greater than certain threshold value.The present invention has used for reference the Kalman filtering thought of belt restraining in the Marius Tico paper, but the method in this paper exists filter response bad, and motion model is not when matching, state estimation error problem bigger than normal, at these two problems, the present invention has designed a kind of probability particle filter method based on adaptive Kalman filter, regulate the fast-response that the observation noise variance improves Kalman filtering, state estimation error problem bigger than normal when coming the customer service motion model not match by the probability particle filter algorithm simultaneously by self adaptation.
Particle filter is a kind of probability filtering algorithm based on Monte Carlo method, and it can effectively solve the state estimation problem under non-linear, non-Gauss's situation.Particle filter algorithm distributes by the posteriority that the heavy particle of one group of cum rights approaches state, and when the number of particle was tending towards infinity, then these particles can approach the true posteriority distribution of state in theory.Particle filter algorithm generally comprises importance sampling, resampling and three steps of state estimation.In the importance sampling step, at first, t-1 particle constantly
Figure GSA00000133217600101
Pass through motion model
Figure GSA00000133217600102
Be delivered to next constantly; Then, at given measured value Z t, the particle that each is transmitted
Figure GSA00000133217600103
Be endowed weights At last, these weights of normalization
Figure GSA00000133217600105
Resampling the step particle Will be by resampling, the selecteed number of times of each particle is directly proportional with its weights size, and the selecteed possibility of the particle that weights are big more is big more.After the posteriority of the state of estimating distributed, the state of target can utilize lowest mean square root error estimation (MMSE) to estimate.Probability particle filter method performing step based on adaptive Kalman filter is as follows:
Step 1: importance sampling
In the importance sampling step, by the sample states of method for adaptive kalman filtering acquisition probability particle filter, the specific implementation process is as follows:
X t | t - 1 ( i ) = AX t - 1 ( i ) , i = 1 , . . . , N - - - ( 15 )
P t | t - 1 ( i ) = AP t - 1 ( i ) A T + σ e 2 BB T - - - ( 16 )
G = P t | t - 1 ( i ) C ( C T P t | t - 1 ( i ) C + σ t , u 2 ) - 1 - - - ( 17 )
P t ( i ) = ( I - GC T ) P t | t - 1 ( i ) - - - ( 18 )
X t ( i ) = X t | t - 1 ( i ) + G [ Z t - C T X t | t - 1 ( i ) ] - - - ( 19 )
X ~ t ( i ) = X t ( i ) + N ( 0 , P t ( i ) ) - - - ( 20 )
Wherein, i is the index value of particle, and N is a total number of particles,
Figure GSA00000133217600115
B=[1 1] T, C=[1 0] T,
Figure GSA00000133217600116
Figure GSA00000133217600117
Be i particle t-1 state constantly,
Figure GSA00000133217600118
Be i particle in t predicted state constantly,
Figure GSA00000133217600119
Be i particle t-1 state covariance matrix constantly, Be that i particle predicted battle array in t state covariance constantly, G is the gain battle array of Kalman filtering,
Figure GSA000001332176001111
Be that i particle estimated battle array in t state covariance constantly,
Figure GSA000001332176001112
Be the estimated state of i particle in t moment Kalman filtering,
Figure GSA000001332176001113
Be the state after i particle resamples, Z tBe measured value,
Figure GSA000001332176001114
Be the state-noise variance,
Figure GSA000001332176001115
Be t observation noise variance constantly, this value is to utilize prior information to set a fixed value in traditional kalman filter method, but be difficult to obtain this prior information in the real system, and the size that should be worth directly influences the response speed of Kalman filtering, among the present invention, designed the method that a kind of self adaptation is regulated the observation noise variance.
When shake is very serious, be reflected on the measured value bigger for its variance, at this moment, if also carry out Kalman filtering with fixing observation noise variance, the fast-response of filtering is affected, in order to improve the fast-response of filtering, the present invention has designed the strategy that following self adaptation is regulated the observation noise variance.At first, the measured value in statistics a period of time window changes severe degree, and the description formula of severe degree is as follows:
M z = 1 L Σ l = t - L - 1 t Z l - - - ( 21 )
S z = 1 L Σ l = t - L - 1 L | Z l - M z | - - - ( 22 )
Wherein, L is a time window length, Z lBe l measured value constantly, M zBe the measured value average in the time window, S zFor the measured value in the time window changes severe degree, work as S zBig more, then in this time window, it is strong that measured value changes Shaoxing opera, otherwise, otherwise.Secondly, change severe degree according to measured value, self adaptation is regulated the observation noise variance, regulates formula and is:
&sigma; t , u 2 = &alpha; &sigma; t - 1 , u 2 , if S z > S max &sigma; t , u 2 = &sigma; t - 1 , u 2 , if S min &le; S z &le; S max &sigma; t , u 2 = &beta; &sigma; t - 1 , u 2 , if S z < S min - - - ( 23 )
Wherein
Figure GSA00000133217600122
Be t observation noise variance constantly,
Figure GSA00000133217600123
Be t-1 observation noise variance constantly; S zFor the measured value in the time window changes severe degree and β is an adjustment factor, α generally gets 0.7-0.9, and β generally gets 1.1-1.3; S MaxBe the max-thresholds of measured value variation severe degree, S MinFor measured value changes the severe degree minimum threshold.That is to say and work as S zGreater than S MaxThe time, reduce t observation noise variance constantly; Work as S zLess than S MinThe time, increase t observation noise variance constantly.The purpose of formula (23) is exactly to change when violent in measured value, increases the gain of Kalman filtering by turning the observation noise variance down, thereby improves the response speed of state estimation.
Excessive or too small for the observation noise variance that prevents to adjust, adopt following formula to retrain, make the self adaptation adjustment between a minimum and maximum value of observation noise variance, it is as follows to regulate the formula design:
&sigma; t , u 2 = &sigma; max 2 , if &sigma; t , u 2 > &sigma; max 2 &sigma; t , u 2 = &sigma; min 2 , if &sigma; t , u 2 < &sigma; min 2 - - - ( 24 )
That is to say
Figure GSA00000133217600125
Adjustment process in worthwhile during greater than maximum set threshold value, get maximum set threshold value, when less than minimum setting threshold, get minimum setting threshold.Maximum set threshold value generally gets 40 2-50 2Between value, minimum setting threshold generally gets 5 2-10 2Between value.
Step 2: calculate the particle weights
w t ( i ) = 1 2 &pi;&sigma; t , u exp [ - ( X ~ t ( i ) - Z t ) 2 2 &sigma; t , u 2 ] - - - ( 25 )
Step 3: normalization particle weights
w ~ t ( i ) = w t ( i ) / &Sigma; i = 1 N w t ( i ) - - - ( 26 )
Step 4: resampling particle
{ X t ( i ) , 1 / N } i = 1 N = Resample [ { X ~ t ( i ) , w ~ t ( i ) } i = 1 N ] - - - ( 27 )
Step 5: state estimation
When state estimation, if the difference of selecteed particle state and actual observed value is too big, when promptly motion compensation quantity is too big, need retrain processing to compensation rate, the constraint process is achieved as follows:
X t ( i ) = X t ( i ) + sign ( Z n - C T X t ( i ) ) [ | Z t - C T X t ( i ) | - D ] P t ( i ) C [ C T P t ( i ) C ] - 1 , if | Z t - C T X t ( i ) | > D X t ( i ) , otherwise - - - ( 28 )
Wherein, Z tBe t measured value constantly, C=[1 0], Be that i particle estimated battle array in t state covariance constantly, D is the max-thresholds of compensation rate.
Step 6: state output
After each particle state carried out amplitude limiting processing, final output state was obtained by following formula:
X ^ t = 1 N X t ( i ) - - - ( 29 )
Wherein,
Figure GSA00000133217600136
Be t estimated state constantly,
Figure GSA00000133217600137
Be i particle state after resampling and the amplitude limiting processing.
Fig. 2 (a)-2 (b) switches between rapid movement and static two states back and forth for the effect comparison diagram of two kinds of motion filtering methods among the present invention, the dbjective state among this figure.Fig. 2 (a) is Kalman's motion filtering method design sketch of belt restraining restriction, Fig. 2 (b) is the probability particle filter method design sketch based on adaptive Kalman filter, dotted line 2 is filtered design sketch among two figure, solid line 1 is the design sketch before the filtering, the longitudinal axis is represented the displacement (Horizontal Position) of horizontal x direction, and transverse axis is represented frame number (Frame).From figure, can obviously find out, no matter on fast-response still is the state estimation of model when not matching, all be better than Kalman's motion filtering method of belt restraining restriction based on the probability particle filter method of adaptive Kalman filter.
Fig. 3 (a)-3 (f) surely looks like design sketch for video among the present invention.Wherein, Fig. 3 (a) is an original video sequence, Fig. 3 (b) is a steady picture back sequence, Fig. 3 (c) is the motion filtering design sketch of x direction displacement, Fig. 3 (d) is the motion filtering design sketch of y direction displacement, Fig. 3 (e) is the motion filtering design sketch of anglec of rotation tolerance, Fig. 3 (f) is the motion filtering design sketch of amount of zoom, Fig. 3 (c) wherein, (d), (e) and the dotted line (f) 2 be filtered design sketch, solid line 1 is the design sketch before the filtering, the longitudinal axis of Fig. 3 (c) is represented horizontal x direction displacement (Horizontal Position), transverse axis is represented frame number (Frame), the longitudinal axis of Fig. 3 (d) is represented the displacement (Vertical Position) of vertical y direction, transverse axis is represented frame number (Frame), and Fig. 3 (e) longitudinal axis is represented anglec of rotation tolerance (Rotation Angle), and transverse axis is represented frame number (Frame), Fig. 3 (f) longitudinal axis is represented amount of zoom (Scale), and transverse axis is represented frame number (Frame).From these as a result the figure as can be seen, the state estimation of the filtering method among the present invention when filter response and model do not match all has better effects.

Claims (14)

1. real-time video image stabilization method based on integrogram characteristic block coupling, it is characterized in that, the first step, present frame is carried out piece to be cut apart, second step, utilize each piece content of integrogram feature description, the 3rd step, with integrogram characteristic error minimum is that matching criterior is carried out the block matching motion estimation to each piece, and in the 4th step, the motion vector of adding up described obtains the global motion parameter of present frame with respect to former frame, the 5th step, the global motion parameter is carried out motion filtering handle, in the 6th step, carry out motion compensation according to the filtering result.
2. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 1 is characterized in that, also comprised before described the 3rd step described feature rich degree is judged, is calculated by following formula:
T = &Sigma; k = 1 M F B ( k ) - - - ( 1 )
Wherein, F B(k) be k integrogram feature on the piece B, M is an integrogram feature sum, the T representation feature enriches degree, the T value is big more, feature is abundant more, if T less than a minimum threshold, then the feature of this piece cannot not be defined as abundantly, Direct Mark is an invalid block, this piece is not carried out the block matching motion in described the 3rd step and estimates.
3. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 1 and 2, it is characterized in that, described the 3rd step comprises that also block-matching error determining step, this step are that the matching error of former and later two pieces is calculated according to following formula:
ISAD ( &Delta; x , &Delta; y ) = &Sigma; k = 0 M | F B ( i , j ) ( k ) - F B ( i + &Delta; x , j + &Delta; y ) ( k ) | - - - ( 2 )
Wherein, k is the call number of integrogram feature, and M is an integrogram feature sum, Δ xAnd Δ yBe displacement, (i is (i, piece j), B (i+ Δ for the present frame center j) to B x, the j+ Δ y) for the former frame center be (i+ Δ x, the j+ Δ y) piece, F B (i, j)(k) and
Figure FSA00000133217500013
Be respectively piece B (i, j) and B (i+ Δ x, the j+ Δ y) last k integrogram feature, ISAD (Δ x, Δ y) be the matching error value, if this matching error value then is labeled as invalid block greater than a maximum set value, this piece does not participate in the global motion parameter Estimation in described the 4th step.
4. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 1, it is characterized in that, described the 4th step comprises: the 4-1 step, whether the decision block motion is unusual, if not unusually then be labeled as active block, the 4-2 step, the mean value of adding up described active block translational movement estimates the global translation amount, the 4-3 step, estimate rotation and the amount of zoom of each active block according to described global translation amount with respect to the match block in the former frame, in the 4-4 step, add up rotation and amount of zoom that described rotation and amount of zoom estimate the overall situation.
5. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 4 is characterized in that, whether the decision block motion comprised the steps: unusually during described 4-1 went on foot
Step 1: statistics block is at x, the average of the kinematic parameter on the y direction and variance, and concrete computing formula is as follows:
U x = 1 L &Sigma; l = 1 L V x ( l ) - - - ( 3 )
S x 2 = 1 L - 1 &Sigma; l = 1 L [ V x ( l ) - U x ] 2 - - - ( 4 )
U y = 1 L &Sigma; l = 1 L V y ( l ) - - - ( 5 )
S y 2 = 1 L - 1 &Sigma; l = 1 L [ V y ( l ) - U y ] 2 - - - ( 6 )
Wherein, l is the index value of piece, and L is the total quantity of piece, V x(l) be the moving displacement of l piece on the x direction, V y(l) be moving displacement on the y direction, U xBe the moving displacement average of all pieces on the x direction,
Figure FSA00000133217500025
Be the moving displacement variance on the x direction, U yBe the moving displacement average of all pieces on the y direction,
Figure FSA00000133217500026
Be the moving displacement variance on the y direction;
Step 2: check the dyskinesia of each piece, for k piece, if its x and y direction displacement V x(k) and V y(k) satisfy following any one formula, then this piece is the abnormal motion piece, otherwise is labeled as active block, and formula is as follows:
[ V x ( k ) - U x ] 2 > T * S x 2 [ V y ( k ) - U y ] 2 > T * S y 2 - - - ( 7 )
Wherein, T is a threshold value, generally gets 2.5-4.As this piece is the abnormal motion piece, does not then participate in the statistics of next average and variance;
Step 3: circulation step 1 and step 2, when iteration satisfies a maximum iteration time, or the current average that counts compares variation when very little with previous average, stops iteration.
6. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 4, it is characterized in that, the mean value of the described active block translational movement of described 4-2 step statistics estimates the global translation amount, and described global translation amount is included in the global translation amount G on the x direction xWith the global translation amount G on the y direction y, concrete computing formula is as follows:
G x = 1 M &Sigma; m = 1 M V x ( m ) - - - ( 8 )
G y = 1 M &Sigma; m = 1 M V y ( m ) - - - ( 9 )
Wherein, M is the sum of active block, and m is the index of active block, V x(m) and V y(m) be respectively the moving displacement of m active block on x direction and y direction.
7. according to claim 4 or 5 described real-time video image stabilization methods, it is characterized in that the anglec of rotation tolerance θ (m) of m the active block in described 4-3 step calculates by following formula based on integrogram characteristic block coupling:
&theta; ( m ) = a tan ( O 4 x O 4 y ) - a tan ( O 1 x + G x O 1 y + G y ) - - - ( 10 )
Wherein, O 4yAnd O 4xFor the present frame center is (O 4y, O 4x) piece, O 1yAnd O 1xBe the best matching blocks center that in former frame, searches, G xAnd G yFor estimate described on x direction and y direction the global translation amount, m is from 1 to M, M is the sum of active block.
8. according to claim 4 or 5 described real-time video image stabilization methods, it is characterized in that the amount of zoom S (m) of m the active block in described 4-3 step calculates by following formula based on integrogram characteristic block coupling:
S ( m ) = O 4 y 2 + O 4 x 2 ( O 1 y + G y ) 2 + ( O 1 x + G x ) 2 - - - ( 11 )
Wherein, O 4yAnd O 4xFor the present frame center is (O 4y, O 4x) piece, O 1yAnd O 1xBe the best matching blocks center that in former frame, searches, G xAnd G yBe the global translation amount of estimating.
9. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 4 is characterized in that, the rotation and the amount of zoom of the described overall situation of described 4-4 step statistics can calculate by following formula:
G &theta; = 1 M &Sigma; m = 1 M &theta; ( m ) - - - ( 12 )
G S = 1 M &Sigma; m = 1 M S ( m ) - - - ( 13 )
G θBe overall rotation amount, G SBe overall amount of zoom, θ (m) is the anglec of rotation tolerance of m active block, and S (m) is the amount of zoom of m active block.
10. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 1 is characterized in that, described the 5th step Filtering Processing is to adopt particle filter method to carry out motion filtering to handle.
11. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 10 is characterized in that, the importance sampling in described the 5th step particle filter method obtains by method for adaptive kalman filtering.
12. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 11, it is characterized in that, described method for adaptive kalman filtering is to come self adaptation to regulate observation noise variance in the Kalman filtering by the variation severe degree of judging the global motion parameter, wherein regulates the observation noise variance and adopts following formula:
&sigma; t , u 2 = &alpha;&sigma; t - 1 , u 2 , if S z > S max &sigma; t , u 2 = &sigma; t - 1 , u 2 , if S min &le; S z &le; S max &sigma; t , u 2 = &beta;&sigma; t - 1 , u 2 , if S z < S min - - - ( 14 )
Wherein,
Figure FSA00000133217500052
Be t observation noise variance constantly, Be t-1 observation noise variance constantly; S zFor the measured value in the time window changes severe degree, work as S zBig more, then in this time window, it is strong that measured value changes Shaoxing opera, otherwise, otherwise; α and β are adjustment factor, and α generally gets 0.7-0.9, and β generally gets 1.1-1.3; S MaxBe the max-thresholds of measured value variation severe degree, S MinFor measured value changes the severe degree minimum threshold.
13. the real-time video image stabilization method based on integrogram characteristic block coupling according to claim 12 is characterized in that, and is described
Figure FSA00000133217500054
Adjustment process in worthwhile during greater than maximum set threshold value, get maximum set threshold value, when less than minimum setting threshold, get minimum setting threshold.
14., it is characterized in that described maximum set threshold value generally gets 40 according to claim 12 or 13 described real-time video image stabilization methods based on integrogram characteristic block coupling 2-50 2Between value, minimum setting threshold generally gets 5 2-10 2Between value.
CN2010101792813A 2010-05-19 2010-05-19 Real-time video image stabilizing method based on integral image characteristic block matching Pending CN101951464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101792813A CN101951464A (en) 2010-05-19 2010-05-19 Real-time video image stabilizing method based on integral image characteristic block matching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101792813A CN101951464A (en) 2010-05-19 2010-05-19 Real-time video image stabilizing method based on integral image characteristic block matching

Publications (1)

Publication Number Publication Date
CN101951464A true CN101951464A (en) 2011-01-19

Family

ID=43454815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101792813A Pending CN101951464A (en) 2010-05-19 2010-05-19 Real-time video image stabilizing method based on integral image characteristic block matching

Country Status (1)

Country Link
CN (1) CN101951464A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102637295A (en) * 2012-03-31 2012-08-15 北京智安邦科技有限公司 Rapid electronic image-stabilizing method and device
CN102801982A (en) * 2012-09-07 2012-11-28 浙江外国语学院 Estimation method applied on video compression and based on quick movement of block integration
CN102915234A (en) * 2011-08-04 2013-02-06 中国移动通信集团公司 Method and device for realizing program interface in application program
CN103024247A (en) * 2011-09-28 2013-04-03 中国航天科工集团第二研究院二〇七所 Electronic image stabilization method based on improved block matching
CN103118221A (en) * 2012-07-09 2013-05-22 中国人民解放军国防科学技术大学 Real-time video electronic image stabilization method based on field treatments
US20140269923A1 (en) * 2013-03-15 2014-09-18 Nyeong-kyu Kwon Method of stabilizing video, post-processing circuit and video decoder including the same
CN106210448A (en) * 2016-07-22 2016-12-07 恒业智能信息技术(深圳)有限公司 A kind of video image dithering Processing for removing method
CN106454013A (en) * 2016-09-28 2017-02-22 湖南优象科技有限公司 Video stabilizing method based on particle filtering
CN107248168A (en) * 2013-03-18 2017-10-13 快图有限公司 Method and apparatus for motion estimation
CN110163937A (en) * 2019-04-03 2019-08-23 陈昊 A kind of plastic surgery elbow joint Demonstration Control System and control method
CN110956653A (en) * 2019-11-29 2020-04-03 中国科学院空间应用工程与技术中心 Satellite video dynamic target tracking method with fusion of correlation filter and motion estimation
CN115442522A (en) * 2022-08-10 2022-12-06 深圳市贝嘉技术有限公司 Microscope-based imaging adjustment method, device, equipment and storage medium

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915234A (en) * 2011-08-04 2013-02-06 中国移动通信集团公司 Method and device for realizing program interface in application program
CN103024247A (en) * 2011-09-28 2013-04-03 中国航天科工集团第二研究院二〇七所 Electronic image stabilization method based on improved block matching
CN102637295B (en) * 2012-03-31 2014-07-23 北京智安邦科技有限公司 Rapid electronic image-stabilizing method and device
CN102637295A (en) * 2012-03-31 2012-08-15 北京智安邦科技有限公司 Rapid electronic image-stabilizing method and device
CN103118221B (en) * 2012-07-09 2015-08-12 中国人民解放军国防科学技术大学 Based on the real-time video electronic image stabilization method of field process
CN103118221A (en) * 2012-07-09 2013-05-22 中国人民解放军国防科学技术大学 Real-time video electronic image stabilization method based on field treatments
CN102801982A (en) * 2012-09-07 2012-11-28 浙江外国语学院 Estimation method applied on video compression and based on quick movement of block integration
CN102801982B (en) * 2012-09-07 2015-03-18 浙江外国语学院 Estimation method applied on video compression and based on quick movement of block integration
US9674547B2 (en) * 2013-03-15 2017-06-06 Samsung Electronics Co., Ltd. Method of stabilizing video, post-processing circuit and video decoder including the same
US20140269923A1 (en) * 2013-03-15 2014-09-18 Nyeong-kyu Kwon Method of stabilizing video, post-processing circuit and video decoder including the same
CN107248168A (en) * 2013-03-18 2017-10-13 快图有限公司 Method and apparatus for motion estimation
CN106210448A (en) * 2016-07-22 2016-12-07 恒业智能信息技术(深圳)有限公司 A kind of video image dithering Processing for removing method
CN106210448B (en) * 2016-07-22 2020-08-18 深圳市智慧城市建设运行管理有限公司 Video image jitter elimination processing method
CN106454013A (en) * 2016-09-28 2017-02-22 湖南优象科技有限公司 Video stabilizing method based on particle filtering
CN106454013B (en) * 2016-09-28 2019-04-05 湖南优象科技有限公司 A kind of video stabilizing method based on particle filter
CN110163937A (en) * 2019-04-03 2019-08-23 陈昊 A kind of plastic surgery elbow joint Demonstration Control System and control method
CN110956653A (en) * 2019-11-29 2020-04-03 中国科学院空间应用工程与技术中心 Satellite video dynamic target tracking method with fusion of correlation filter and motion estimation
CN115442522A (en) * 2022-08-10 2022-12-06 深圳市贝嘉技术有限公司 Microscope-based imaging adjustment method, device, equipment and storage medium
CN115442522B (en) * 2022-08-10 2023-11-21 深圳市贝嘉技术有限公司 Imaging adjustment method, device, equipment and storage medium based on microscope

Similar Documents

Publication Publication Date Title
CN101951464A (en) Real-time video image stabilizing method based on integral image characteristic block matching
CN101951463A (en) Real time video image stabilization method based on simple fast global motion parameter estimation
CN101916448A (en) Moving object detecting method based on Bayesian frame and LBP (Local Binary Pattern)
CN102142085B (en) Robust tracking method for moving flame target in forest region monitoring video
CN108492324B (en) Airplane tracking method based on full-connection network and Kalman filter
CN106683118A (en) Unmanned plane target tracking method based on hierarchical model
CN103077531A (en) Grayscale target automatic tracking method based on marginal information
CN113888461A (en) Method, system and equipment for detecting defects of hardware parts based on deep learning
CN101951465A (en) Probability motion filtration-based real-time video image stabilizing method
CN105427286A (en) Gray scale and gradient segmentation-based infrared target detection method
CN101339661A (en) Real time human-machine interaction method and system based on moving detection of hand held equipment
CN104156929A (en) Infrared weak and small target background inhibiting method and device on basis of global filtering
CN110827262A (en) Weak and small target detection method based on continuous limited frame infrared image
CN104717402A (en) Space-time domain joint noise estimation system
CN103106796A (en) Vehicle detection method and device of intelligent traffic surveillance and control system
CN106657803A (en) Automatic exposure method for high-speed camera applied to electro-optic theodolite
Xia et al. Automatic multi-vehicle tracking using video cameras: An improved CAMShift approach
CN102074000A (en) Tracking method for adaptively adjusting window width by utilizing optimal solution of variance rate
CN105303566A (en) Target contour clipping-based SAR image target azimuth estimation method
CN102663773A (en) Dual-core type adaptive fusion tracking method of video object
CN101127121A (en) Target tracking algorism based on self-adaptive initial search point forecast
Cong et al. A review of YOLO object detection algorithms based on deep learning
CN101877135B (en) Moving target detecting method based on background reconstruction
CN106447692A (en) Sampling self-adaptive immune genetic particle filter weak target tracking method
RongXin Research on safety helmet wearing YOLO-V3 detection technology improvement in mine environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110119