CN101038672A - Image tracking method and system thereof - Google Patents

Image tracking method and system thereof Download PDF

Info

Publication number
CN101038672A
CN101038672A CN 200710098970 CN200710098970A CN101038672A CN 101038672 A CN101038672 A CN 101038672A CN 200710098970 CN200710098970 CN 200710098970 CN 200710098970 A CN200710098970 A CN 200710098970A CN 101038672 A CN101038672 A CN 101038672A
Authority
CN
China
Prior art keywords
histogram
search window
target
matching
degree
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
CN 200710098970
Other languages
Chinese (zh)
Other versions
CN100472564C (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.)
Shanxi Vimicro Technology Co Ltd
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB200710098970XA priority Critical patent/CN100472564C/en
Publication of CN101038672A publication Critical patent/CN101038672A/en
Application granted granted Critical
Publication of CN100472564C publication Critical patent/CN100472564C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses an image tracking method comprising: calculating histograms of all regions, which use a predetermined corner of a whole tracking region as a starting point, in the whole tracking region by an integral operation, to obtain a region integral histogram; calculating histograms of every search windows, where a target may be appeared, in the whole tracking region, matching the calculated histograms of the search windows with a standard histogram of the target, obtaining a matching result, and determining a tracking position of the target according to the matching result. In addition, the invention also discloses an image tracking system. The image tracking method and system provided in the invention can ensure tracking effect and increase tracking speed.

Description

A kind of image tracking method and system
Technical field
The present invention relates to the image tracking technique, relate in particular to a kind of image tracking method and system.
Background technology
In the present image tracking technique, usually adopt based on the target tracking algorism of histogram coupling and realize tracking to target, i.e. the range searching that target may occur in a new two field picture corresponding target of mating most is as the reposition of target.Wherein, consider that each two field picture is in shooting process, because the distance of target moves, and may make the size of target in every two field picture different, be that the yardstick of target in every two field picture might be different, therefore, the zone of zone diverse location in comprising tracing area that target may occur in a new two field picture, also comprise same position is carried out the formed zone of different scale convergent-divergent.
In target tracking algorism based on the histogram coupling, it is the Meanshift target tracking algorism that a kind of algorithm is arranged, adopt the strategy of iterative search in this algorithm, can trace into target in the short period of time, but because iterative algorithm is based on the principle that the matching degree gradient descends, therefore can only find the local optimum position of matching degree in the search procedure, and can not find the global optimum position, make under the situation that the object that similar color is arranged exists, occur the situation of target following failure easily, can't guarantee tracking effect.
In addition, in target tracking algorism based on the histogram coupling, also have a kind of algorithm to be target tracking algorism based on global search, adopt the strategy of exhaustive search in this algorithm, each position that target may be occurred and the target image in yardstick zone all mate with target image to be tracked, obtain the tracing positional of target in the next frame image according to matching result.
As seen, target tracking algorism based on global search can guarantee tracking effect, but in this algorithm, in the process that the target image and the target image to be tracked in each position that may occur target and yardstick zone mates, need to calculate each zone, it is the histogram of the target image of each search window, in the prior art, when calculating the histogram of search window, after having determined histogrammic color range group number, need calculate the affiliated histogram group of each pixel one by one according to the brightness color range of each pixel in this search window, add up other pixel number of each set of histograms, obtain the histogram of this search window.Because window area of every search, all to repeat the histogrammic process of aforementioned calculation one time, again because in exhaustive search, there is the calculating of a lot of pixels all to repeat, therefore calculated amount is bigger, when in the search window of 100 * 100 sizes, searching for 20 * 20 target, if consider to have the words of three kinds of dimensional variation, then calculate 3 * 80 * 80 * 20 * 20=7680000 time at least about need, as seen calculated amount is bigger, therefore in the prior art, relatively poor based on the real-time follow-up of the target tracking algorism of global search.
Summary of the invention
In view of this, one aspect of the present invention provides a kind of image tracking method; A kind of image tracking system is provided on the other hand, can guarantees tracking effect, and improve tracking velocity.
Image tracking method provided by the present invention comprises: by integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtains the domain integral histogram;
Utilize the domain integral histogram, calculate the histogram of each search window that target may occur in the whole tracing area, the histogram of each search window of calculating and the standard histogram of target are mated, obtain matching result, determine the tracing positional of target according to matching result.
Wherein, described integration histogram comprises: the color integration histogram, and/or, the gradient direction integration histogram.
In the such scheme, the described domain integral histogram that utilizes, the histogram that calculates each search window that target may occur is: each search window that may occur target, domain integral histogram with four angle correspondences of this search window carries out plus and minus calculation, obtains the histogram of this search window.
Wherein, if predefined one jiao is the upper left corner, then described domain integral histogram with four angle correspondences of search window carries out plus and minus calculation and is specially: after the domain integral histogram addition that the domain integral histogram of this search window lower right corner correspondence is corresponding with this search window upper left corner, deduct the domain integral histogram of this search window upper right corner correspondence and the domain integral histogram of lower left corner correspondence, obtain the histogram of this search window.
In the such scheme, describedly comprise by calculating the domain integral histogram:
Determine the set of histograms number;
Calculate the histogram group under each pixel in the whole tracing area;
Add up in the whole tracing area with the All Ranges C of predefined one jiao of O as starting point I, jIn belong to other domain integral number of pixels of each set of histograms;
According to set of histograms number and each C I, jIn other domain integral number of pixels of each set of histograms, obtain each domain integral histogram.
Wherein, all C in the whole tracing area of described statistics I, jIn belong to other domain integral number of pixels of each set of histograms and be specially:
According to the histogram group information under each pixel, on the direction on a limit under the whole tracing area O, the pixel number in each group is carried out the addition recursion calculate, obtain the direction integral number of pixels of each group on this direction;
To the described direction integral number of pixels of each group of obtaining, on the direction on another limit under the whole tracing area O, carry out the addition recursion and calculate, obtain each C I, jIn the domain integral number of pixels of each group.
In the such scheme, when integration histogram comprised the gradient direction integration histogram, the histogram group under each pixel of described calculating comprised:
Determine the angular interval of gradient direction according to the set of histograms number;
Calculate the affiliated angular interval of gradient direction of each pixel, obtain the affiliated histogram group of this pixel.
Wherein, the angular interval under the gradient direction of described each pixel of calculating comprises:
Calculate the tangent value of the frontier point of angular interval, obtain the tangent value interval;
Calculate the ratio of each pixel,, obtain the angular interval under the gradient direction of each pixel according to the residing tangent value of this ratio interval at the Grad of the Grad of the y of coordinate axis direction and x direction.
In the such scheme, the standard histogram of described target comprises: the overall histogram of target; Then described the histogram of each search window of being calculated and the standard histogram of target are mated, obtain matching result and comprise:
The overall histogram of each search window of being calculated and the overall histogram of target are mated, obtain the global registration degree of search window, with the global registration degree of resulting search window as matching result.
Preferably, the standard histogram of described target also comprises: with the blocked histogram behind the target piecemeal; Then obtain after the global registration degree of search window, the global registration degree of this search window as before the matching result, further comprised:
According to the global registration degree of search window, obtain a plurality of global registration degree and satisfy pre-conditioned search window;
Described a plurality of search windows are carried out piecemeal according to the partitioned mode corresponding with target respectively, obtain the subwindow of each search window;
Utilize the domain integral histogram, calculate the histogram of each subwindow, the histogram of each subwindow of obtaining and the blocked histogram of target corresponding blocks are mated, obtain the piecemeal matching degree of each subwindow;
According to the piecemeal matching degree of each subwindow in the global registration degree of each search window and this search window, obtain the matching result of each search window.
Preferably, calculate before the integration histogram of whole tracing area, further comprise:
Each search window that utilizes sorter may occur target in the whole tracing area carries out degree of confidence to be described, if there is not degree of confidence to satisfy the search window of tracer request, then carries out the operation of the integration histogram of the whole tracing area of described calculating.
Preferably, this method further comprises: if exist degree of confidence to satisfy the search window of tracer request, then the search window that degree of confidence is satisfied tracer request carries out the histogram coupling, and it fails to match as if histogram, then carries out the operation of the integration histogram of the whole tracing area of described calculating; The match is successful as if histogram, and then general's search window that the match is successful is as the tracing positional of target.
Preferably, this method further comprises: search window that will the match is successful is stored, and according to the histogram of the search window of the predetermined number of storage, calculates the weight of each group of histogram in each feature passage;
The then described histogram and the standard histogram of target with search window mates and is: according to the weight of each group in each feature passage, the histogram of search window and the standard histogram of target are mated.
Image tracking system provided by the present invention comprises: tracing area is provided with unit, domain integral computing unit and histogram coupling tracking cell, wherein,
Tracing area is provided with the unit, is used for being provided with at current frame image the tracing area of target, and set tracing area is notified to domain integral computing unit and histogram coupling tracking cell;
The domain integral computing unit, be used to by integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtains the domain integral histogram, and the domain integral histogram that obtains is offered histogram coupling tracking cell;
Histogram coupling tracking cell, the domain integral histogram that utilizes the domain integral computing unit to provide is provided, calculate the histogram of each search window that target may occur in the whole tracing area, the histogram of each search window of calculating and the standard histogram of target are mated, obtain the tracing positional of target according to matching result.
Preferably, this system further comprises: target classification device tracking cell, each search window that is used for utilizing sorter may occur whole tracing area target carries out the degree of confidence description, if do not have degree of confidence to satisfy the search window of tracer request, then send the notice of following the tracks of failure to described domain integral computing unit;
Described domain integral computing unit according to the notice of failing from the tracking of target classification device tracking cell, is carried out the operation of described domain integral histogram calculation.
Preferably, this system further comprises: the histogram matching unit;
Then target classification device tracking cell is further used for: if exist degree of confidence to satisfy the search window of tracer request, the search window that then described degree of confidence is satisfied tracer request offers the histogram matching unit;
The histogram matching unit, the degree of confidence that being used to calculate target classification device tracking cell provides satisfies the histogram of the search window of tracer request, the search window histogram of calculating and the standard histogram of target are mated,, determine the tracing positional of target according to matching result.
Preferably, this system further comprises: histogram weight updating block;
Then the histogram matching unit is further used for: the search window that the match is successful is offered histogram weight updating block;
Histogram weight updating block is used for the histogram of search window according to the predetermined number of storage, calculates the weight of each group of histogram in each feature passage, and the weight of each group in each the feature passage that calculates is offered histogram coupling tracking cell;
Histogram coupling tracking cell is further used for: the weight of each group in each the feature passage that provides according to histogram weight updating block, carry out described histogram and the operation of mating of the standard histogram of target to search window.
In the such scheme, described histogram coupling tracking cell comprises: search window determination module, histogram calculation module, histogram matching module and tracing positional determination module, wherein,
The search window determination module is used for from tracing area the definite current search window of tracing area that the unit provides being set, and determined current search window is notified to the histogram calculation module;
The histogram calculation module is used to utilize the histogram of the domain integral histogram calculation current search window that the domain integral computing unit provides, and the histogram of the current search window that calculates is offered the histogram matching module; Notice search window determination module provides next current search window;
The histogram matching module is used for the histogram of current search window that the histogram calculation module is provided and the standard histogram of precalculated target and mates, and matching result is offered the tracing positional determination module;
The tracing positional determination module, the matching result of all search windows that the target that is used for providing according to the histogram matching module may occur, the search window zone that coupling is best is as the tracing positional of target.
Wherein, described tracing positional determination module comprises: search window is chosen submodule, search window and is determined that submodule, piece histogram calculation matched sub-block, search window comprehensive matching calculating sub module and tracing positional determine submodule, wherein,
Search window is chosen submodule, and the matching result of all search windows of providing according to the histogram matching module is provided, and therefrom chooses and satisfies pre-conditioned a plurality of search windows, offers search window and determines submodule;
Search window is determined submodule, is used for choosing the definite current search window of search window that submodule provides from search window, and determined current search window is notified to piece histogram calculation matched sub-block;
Piece histogram calculation matched sub-block is used for search window is determined that the current search window that submodule provides carries out piecemeal according to the method for partition corresponding with target, obtains subwindow; To the subwindow of each, utilize integration histogram to calculate the subwindow histogram, the subwindow histogram that calculated and the blocked histogram of target corresponding blocks are mated, obtain the piecemeal matching degree of each subwindow, resulting piecemeal matching degree is offered search window comprehensive matching calculating sub module; The notice search window determines that submodule provides next current search window;
Search window comprehensive matching calculating sub module, the piecemeal matching degree that all subwindows of the current search window that provides according to piece histogram calculation matched sub-block are provided, calculate the comprehensive matching degree of current search window, and the comprehensive matching degree of the current search window that calculates is offered tracing positional determine submodule;
Tracing positional is determined submodule, and the comprehensive matching degree of all search windows of providing according to search window comprehensive matching calculating sub module is provided, and will coupling best search window zone is as the tracing positional of target.
From said method and system schema as can be seen, at first calculate the domain integral histogram of whole tracing area among the present invention, utilize the domain integral histogram then, pass through plus and minus calculation, calculate each zone that target may occur one by one, i.e. the histogram of search window.Be among the present invention the histogram group under each pixel only to be calculated once when calculating integration histogram, the histogrammic calculating of each search window that may occur target afterwards only needs according to the histogrammic result of domain integral, carry out plus and minus calculation three times, after the domain integral histogram addition corresponding of the domain integral histogram of usefulness search window lower right corner correspondence with the search window upper left corner, deduct the domain integral histogram of search window upper right corner correspondence and the domain integral histogram of lower left corner correspondence, obtain the histogram of search window, under the situation that a large amount of windows are mated, this algorithm greatly reduces operand, as being example still in the search window of 100 * 100 sizes, to search for 20 * 20 target, if the same words of considering to have three kinds of dimensional variation, then only need calculate 3 * 80 * 80 * 3+100 * 100 * 2=77600 approximately, as seen reduced calculation times greatly, improve arithmetic speed, guaranteed the real-time of following the tracks of; Because be that the histogram of the target that will calculate each search window that may occur mates with the histogram of target among the present invention, obtain the predicted position of target according to matching result, so guaranteed tracking effect again.
In addition, carrying out histogram when coupling,, also comprise gradient orientation histogram among the present invention, thereby when in tracing area, having the object similar, can not be subjected to the interference of this object, further guaranteed tracking effect to color of object except comprising color histogram.
In addition, when carrying out the histogram coupling, mate among the present invention, thereby avoided further having guaranteed tracking effect owing to the spatial positional information of losing each pixel in statistic processes causes the situation of following the tracks of failure by adopting blocked histogram.
At last, when carrying out the histogram coupling, further adopt the method that combines with the target classification device among the present invention, thereby realize rough the tracking by the target classification device, further improve real-time performance of tracking, realized meticulous tracking by the histogram coupling afterwards, guaranteed tracking effect.
Description of drawings
Fig. 1 is the process flow diagram of image tracking method in the embodiment of the invention one;
Fig. 2 (a) is 7 * 7 tracing area picture element matrix synoptic diagram for size;
Fig. 2 (b) is the matrix diagram of histogram group information under each pixel in the picture element matrix shown in Fig. 2 (a);
Fig. 3 is other row integration number of pixels matrix diagram of each set of histograms;
Fig. 4 is other domain integral number of pixels matrix diagram of each set of histograms;
Fig. 5 (a) is that a kind of regional window of picture element matrix shown in Fig. 2 (a) is divided synoptic diagram;
Fig. 5 (b) is the synoptic diagram that calculates the search box pixel number in domain integral number of pixels matrix shown in Figure 4;
Fig. 6 (a) is the structural representation of image tracking system in the embodiment of the invention one;
Fig. 6 (b) is a kind of inner structure synoptic diagram of histogram coupling tracking cell in the system shown in Fig. 6 (a);
Fig. 7 is that the standard histogram of target in the embodiment of the invention three constitutes synoptic diagram;
Fig. 8 is the process flow diagram of specific implementation in the image tracking method step 107 in the embodiment of the invention three;
Fig. 9 is the inner structure synoptic diagram of tracing positional determination module in the image tracking system in the embodiment of the invention three;
Figure 10 is the process flow diagram of image tracking method in the embodiment of the invention four;
Figure 11 is the structural representation of image tracking system in the embodiment of the invention four;
Figure 12 is another structural representation of image tracking system in the embodiment of the invention four.
Embodiment
Basic thought of the present invention is: the domain integral histogram that calculates whole tracing area; Utilize the domain integral histogram,, calculate the histogram of each search window that target may occur, the histogram that calculated and the histogram of target are mated, obtain the tracing positional of target according to matching result by plus and minus calculation.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
Embodiment one:
Referring to Fig. 1, Fig. 1 is the process flow diagram of image tracking method in the embodiment of the invention one.As shown in Figure 1, this flow process comprises the steps:
Step 101 is provided with tracing area in current frame image.
In this step, the method to set up of tracing area can have a variety of.Wherein a kind of can for: obtain earlier the predicted position of target, on the predicted position basis of target, the whole tracing area of target be set according to the maximum movement speed of target then by position prediction.
For example: can adopt following position predicting method, obtain the predicted position of target:
If tracing into target is (x in the position of moment t t, y t), at moment t-Δ tThe position be (x T-1, y T-1), can estimate simply that then the speed of current goal is v x=(x t-x T-1)/Δ t, v y=(y t-y T-1)/Δ t
Consider the irregular movement of target or the deviation in the tracing process, stable inadequately for fear of above-mentioned estimation, can adopt wave filter to come level and smooth velocity vector, and obtain following velocity vector by multiple image:
v x ( t ) = k × ( x t - x t - 1 ) / Δ t + Σ n = 1 k - 1 ( k - n ) × v x ( t - n ) Σ n = 1 k n , v y ( t ) = k × ( y t - y t - 1 ) / Δ t + Σ n = 1 k - 1 ( k - n ) × v y ( t - n ) Σ n = 1 k n ,
Wherein, k carries out level and smooth required total number of image frames.
Velocity vector according to target is estimated, can target of prediction in next position constantly be:
x ^ t + 1 = x t + v x ( t ) , y ^ t + 1 = y t + v y ( t ) .
Wherein, when not only predict the position of the target of a pixel, (x t, y t) and
Figure A20071009897000175
All be the place-centric point of target, therefore, obtain target at next predicted position central point constantly
Figure A20071009897000176
Afterwards, determine that according to this central point target is at next predicted position (x constantly p, y p, w p, h p), wherein, (x p, y p) be the coordinate of target at the upper left angle point of next moment position, (w p, h p) be width and the height of target in next moment position.
Obtain after the above-mentioned predicted position, can as follows the whole tracing area of target be set according to the maximum movement speed of target:
If largest prediction error Δ Max=(Δ Xmax, Δ Ymax), then the target rectangular area that may occur is (x s, y s, w s, h s), wherein, x s=x pXmax, y s=y pYmax, w s=w p+ 2 Δs Xmax, h s=h p+ 2 Δs Ymax
With rectangular area (x s, y s, w s, h s) be set to whole tracing area.
Step 102, by integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtains the domain integral histogram.
In this step, during the integration histogram of zoning, be specifically as follows: the group of determining integration histogram is counted K, i.e. figure place, or title length; Calculate the group information f of the affiliated histogram group k of each pixel in the whole tracing area then k(i, j), k ∈ (0,1 ..., K-1), promptly calculate each pixel and belong to histogrammic which position.For the purpose of unification, all herein places that relates to starting point all are at 0 by starting point and handle; The one jiao of O that preestablishes whole tracing area adds up in the whole tracing area with the All Ranges C of O as starting point as starting point I, jIn belong to the number of pixels of each group k, with each C I, jIn belong to each group k number of pixels be referred to as each C I, jIn belong to the domain integral number of pixels II of each group k k(i, j); According to set of histograms number and each with the zone C of O as starting point I, jIn the domain integral number of pixels II of each group k k(i j), obtains each zone C I, jHistogram, and with each C I, jHistogram be referred to as the domain integral histogram.Wherein, for tracing area set in the step 101, C I, jMiddle i, the value of j is 0≤i<w s, 0≤j<h s, and II k ( i , j ) = &Sigma; m < i , n < j f k ( i , j ) .
During specific implementation, for each C of express statistic I, jIn number of pixels in each histogram group, can adopt the addition recursive operation, according to the histogram group information under each pixel, on the direction on a limit under the whole tracing area starting point O, pixel number in each group is carried out the addition recursion to be calculated, obtain the direction integral number of pixels of each group on this direction, direction integral number of pixels to each group of obtaining, on the direction on another limit under the whole tracing area O, carry out the addition recursion and calculate, obtain each C I, jIn the domain integral number of pixels of each group.
Wherein, O can be the upper left corner, or the upper right corner, or the lower left corner, or the lower right corner, and the direction on a limit under the O can be a line direction, also can be column direction, if line direction, then the direction on another limit under the O is a column direction; If column direction, then the direction on another limit under the O is a line direction.
Describing for the aspect, hereinafter all is the upper left corner with O, and the direction on a limit under the O is that the situation of line direction is an example.
Generally speaking, histogram is a color histogram all, so also adopts color histogram in the present embodiment, and the computation process to the above-mentioned zone integration histogram is described in detail below.
Color standard generally comprises RGB (RGB) graphics standard, or the YUV graphics standard etc.When calculating color histogram, can calculate the histogram of this feature passage with whole color as a feature passage, perhaps, in order to describe the color characteristic of target, also each Color Channel wherein can be calculated the histogram of each feature passage as a feature passage.As: if adopt the RGB graphics standard, then the feature passage can be red (R), green (G), blue (B) three Color Channels; If adopt the YUV graphics standard, then the feature passage can be Y, U, three Color Channels of V.
Because the brightness color range of pixel is distributed as 0~255, add up to 256, as if being example with one of them feature passage, (i, j) (i j) locates the color range value of pixel in this feature passage, and uses f in expression with I k(i, j), k ∈ (0,1 ..., K-1) expression (i j) locates group information under the pixel, then (i, j) locate the histogram group of pixel under in this feature passage calculate can for: f k ( i , j ) = 1 , I ( i , j ) 256 / K = k 0 , Wherein, be that 1 expression belongs to the k group, be 0 expression does not belong to the k group.Certainly, also can adopt interval computing method, promptly calculate the boundary value of each group respectively, according to the boundary value of group, judgement I (i, j) Suo Shu group interval, thus obtain I (i, j) Suo Shu group.Calculate all f k(i, j) after, obtain K group matrix F k, k ∈ (0,1 ..., K-1).
Referring to Fig. 2, Fig. 2 has provided affiliated other synoptic diagram of set of histograms of each pixel that a batch total obtains.Shown in Fig. 2 (a), Fig. 2 (a) is 7 * 7 tracing area picture element matrix synoptic diagram for size.Being convenient and describing, be that 7 * 7 situation is an example with whole tracing area size among Fig. 2, and the hypothesis set of histograms is counted K=8, the coordinate (x of starting point O s, y s) be (0,0), then in 7 * 7 picture element matrix tracing area, affiliated other situation of set of histograms of each pixel is 8 group matrix F as shown in Fig. 2 (b) respectively k, k ∈ (0,1 ..., 7), Fig. 2 (b) is the matrix diagram of histogram group information under each pixel in the picture element matrix shown in Fig. 2 (a).Shown in Fig. 2 (b), F 0Show pixel distribution of the 0th group in histogram ..., F 7Show pixel distribution of the 7th group in histogram, F kIn 1 expression belong to k group in the histogram, 0 expression does not belong to the k group in the histogram.As: F 0In the value of (1,2) position be 1, i.e. f 0The value of (1,2) is 1, and other F k, k ∈ (1 ..., 7) in the value of corresponding position all be 0, i.e. f k(i, j), k ∈ (1 ..., 7) be 0, the pixel of (1,2) position belongs to histogrammic the 0th group in the presentation graphs 2 (a), and the like, the group matrix F among Fig. 2 (b) kShow the affiliated histogrammic group information of each pixel.
After the histogram group information that has drawn under each pixel, the statistics to the number of pixels in each histogram group is described in detail below.
If use RI kRepresent the capable integration number of pixels matrix of k group, use RI k(i j) arrives point (i, the capable integration number of pixels of j) locating, then RI from picture element matrix x start of line point (i, 0) in the capable integration number of pixels matrix of expression k group k(i, computing formula j) can for: &Sigma; 0 &le; j &le; h s - 1 &Sigma; 0 &le; i &le; w s - 1 R I k ( i - 1 , j ) + f k ( i , j ) , Wherein, RI k(0, j)=f k(0, j).
During specific implementation, computation process can for:
for?j=0→h s-1
{RI k(0,j)=f k(0,j)
for?i=1→w s-1
RI k(i,j)=RI k(i-1,j)+f k(i,j)
}
Aforementioned calculation procedural representation: from the group matrix F kThe 0th the row to h s-1 row, i.e. j=0 → h s-1, the addition recursion is carried out in each provisional capital calculate, wherein the addition recursion is calculated as: with first value of this row initial value as this row integration number of pixels, i.e. RI k(0, j)=f k(0, j), second value addition of initial value and this row obtained second capable integration number of pixels value, second capable integration number of pixels value and the 3rd value addition are obtained the 3rd capable integration number of pixels value, recursion successively, up to obtaining this row last row integration number of pixels value, i.e. i=1 → w s-1, RI k(i, j)=RI k(i-1, j)+f k(i, j).
For the picture element matrix of 7 * 7 shown in Fig. 2 (a), h s=7, w s=7, then can obtain 87 * 7 capable integration number of pixels matrix RI as shown in Figure 3 k
To calculate the 0th group capable integration number of pixels matrix RI 0Be example, calculate initialize, i.e. RI since first row 0(0,0)=f 0(0,0)=0, recursion is calculated afterwards, RI 0(1,0)=RI 0(0,0)+f 0(1,0)=0+1=1, RI 0(2,0)=RI 0(1,0)+f 0(2,0)=1+0=1 ..., RI 0(6,0)=RI 0(5,0)+f 0(6,0)=3+0=3 begins to calculate second row then, and process is identical with first row, and up to having calculated the 6th row, the 0th group capable integration number of pixels is calculated and finished.
Capable integration number of pixels for other group is calculated according to the computation process identical with the 0th group capable integration number of pixels, obtains the capable integration number of pixels of each group at last, promptly obtains the direction integral number of pixels of each group on line direction.
Capable integration number of pixels RI to each group of obtaining k(i j), is to carry out the addition recursion on the column direction to calculate on the direction on another limit under the whole tracing area starting point O, if use II kRepresent the domain integral number of pixels matrix of k group, use II k(i j) arrives point (i, zone C j) from picture element matrix starting point (0,0) in the domain integral number of pixels matrix of expression k group I, jNumber of pixels, with II k(i j) is called point (i, j) Dui Ying domain integral number of pixels, then II k(i, computing formula j) can for: &Sigma; 0 &le; i &le; w s - 1 &Sigma; 0 &le; j &le; h s - 1 II k ( i , j - 1 ) + RI k ( i , j ) , Wherein, II k(i, 0)=RI k(i, 0).
During specific implementation, computation process can for:
for?i=0→w s-1
{II k(i,0)=RI k(i,0)
for?j=1→h s-1
II k(i,j)=II k(i,j-1)+RI k(i,j)
}
Aforementioned calculation procedural representation: from row integration number of pixels RI kThe 0th is listed as w s-1 row, i.e. i=0 → w s-1, each row is all carried out the addition recursion calculate, wherein the addition recursion is calculated as: first value that will be listed as is as the initial value of the domain integral number of pixels of this column element correspondence, i.e. II k(i, 0)=RI k(i, 0), second value addition of initial value and these row obtained second domain integral number of pixels value, second domain integral number of pixels value and the 3rd value addition are obtained the 3rd domain integral number of pixels value, recursion successively, up to last domain integral number of pixels value, i.e. j=1 → h of obtaining this column element correspondence s-1, II k(i, j)=II k(i, j-1)+RI k(i, j).
Wherein, the domain integral number of pixels value of element correspondence is: with starting point O and this element domain integral number of pixels value as cornerwise rectangular area.Wherein, under the extreme case, starting point and this element are positioned at delegation or same row, are that cornerwise rectangular area is the zone of i * 1 or 1 * j with starting point O and this element then.
For the picture element matrix of 7 * 7 shown in Fig. 2 (a), h s=7, w s=7, then can obtain 87 * 7 domain integral number of pixels matrix II as shown in Figure 4 k
To calculate the 0th group domain integral number of pixels matrix II 0Be example, calculate since first row, at first initialize, i.e. II 0(0,0)=RI 0(0,0)=0 is carried out recursion afterwards and is calculated II 0(0,1)=II 0(0,0)+RI 0(0,1)=0+0=0, II 0(0,2)=II 0(0,1)+RI 0(0,2)=0+0=0 ..., II 0(0,6)=II 0(0,5)+RI 0(0,6)=0+0=0 begins to calculate secondary series then, and process is identical with first row, and up to having calculated the 6th row, the 0th group domain integral number of pixels is calculated and finished.
Domain integral number of pixels for other group is calculated according to the computation process identical with the 0th group domain integral number of pixels, obtains the domain integral number of pixels of each group at last, promptly obtains each C I, jIn the domain integral number of pixels of each group.
Referring to Fig. 5 (a), Fig. 5 (a) is a kind of area dividing synoptic diagram of picture element matrix shown in Fig. 2 (a).Wherein, the corresponding domain integral number of pixels II of H point k(1,1) is the number of pixels in the area I that OAHG represents among the figure, the domain integral number of pixels II that the C point is corresponding k(5,1) are the number of pixels among the area I I that OBCG represents among the figure, the domain integral number of pixels II that the D point is corresponding k(5,4) are the number of pixels among the area I V that OBDF represents among the figure, the domain integral number of pixels II that the E point is corresponding k(1,4) is the number of pixels among the area I II that OAEF represents among the figure.Wherein, area I can be expressed as C 1,1, area I I can be expressed as C 5,1, area I V can be expressed as C 5,4, area I II can be expressed as C 1,4
According to set of histograms number and each zone C I, jIn the number of pixels of each group, can obtain each zone C I, jHistogram, i.e. domain integral histogram h I, jWherein, if adopt each Color Channel with color all as feature passage compute histograms, then each zone C I, jHistogram h I, jThe histogram that comprises each Color Channel, i.e. h I, j=[h r, h g, h b] I, j, or h I, j=[h y, h u, h y] I, jWherein, h r, h g, h bBe respectively the histogram of R, G, B feature passage; In like manner, h y, h u, h vBe respectively the histogram of Y, U, V feature passage.
Step 103 is determined the current search window in whole tracing area.
In the present embodiment, can adopt the exhaustive search method, the ferret out zone that may occur, i.e. search window one by one in whole tracing area.Wherein, the search window that target may occur also comprises the regional window under the possibility yardstick, the hypothetical target zone is w * h, possible yardstick c is 0.9 times, 1.0 times, 1.1 times etc., and then the target search window that may occur comprises the regional window of sizes such as 0.9w * 0.9h, w * h, 1.1w * 1.1h.
In this step, when definite current search window, can be under each yardstick, according to a certain direction, and as from left to right, direction from top to bottom, or from top to bottom, direction from left to right etc. are determined the current search window successively.
The specific implementation process can for: under each possible yardstick c, calculate yardstick c the width w of corresponding target area c=c * w and height h c=c * h determines according to a certain direction that afterwards (x y), obtains current search window (x, y, w in each possible position, the search window upper left corner c, h c).C ∈ C wherein, C be might yardstick set, as C={0.8,0.9,1.0,1.1,1.2} etc.
Step 104 is utilized the domain integral histogram, calculates the histogram of current search window.
In this step, when calculating the histogram of current search window, after the domain integral histogram addition that the domain integral histogram of this search window lower right corner correspondence is corresponding with this search window upper left corner, deduct the domain integral histogram of this search window upper right corner correspondence and the domain integral histogram of lower left corner correspondence, obtain the histogram of this search window.As: for the current search window is (x, y, w c, h c) time, then this search window is C X+wc, y+hc+ C X, y-C X+wc, y-C X, y+hc, the histogram of this search window is h X+wc, y+hc+ h X, y-h X+wc, y-h X, y+hc
Referring to Fig. 5, suppose the regional window that the current search window is represented for the HCDE shown in Fig. 5 (a), then during the histogram of zoning window HCDE, need to calculate the number of pixels that belongs to each group of histogram in this regional window, can utilize the domain integral number of pixels that calculates in the step 102 to carry out plus and minus calculation, be specially: II k(5,4)+II k(1,1)-II k(5,1)-II k(1,4).
Shown in Fig. 5 (b), the number of pixels that belongs to the 0th group of histogram in the regional window that HCDE represents is: II 0(5,4)+II 0(1,1)-II 0(5,1)-II 0(1,4)=9+1-5-2=3; The number of pixels that belongs to the 1st group of histogram is II 1(5,4)+II 1(1,1)-II 1(5,1)-II 1(1,4)=8+2-4-4=2; The number of pixels that belongs to the 7th group of histogram is II 7(5,4)+II 7(1,1)-II 7(5,1)-II 7(1,4)=4+0-0-0=4.
According to the number of pixels in each histogram group in set of histograms number and this search window, obtain the histogram h of this search window WinWherein, if adopt each Color Channel with color all as feature passage compute histograms, the histogram h of search window then WinThe histogram that comprises each Color Channel, i.e. h Win=[h r, h g, h b], or h Win=[h y, h u, h y].Wherein, h r, h g, h bBe respectively the histogram of R, G, B feature passage; In like manner, h y, h u, h vBe respectively the histogram of Y, U, V feature passage.
Step 105 is mated the histogram of the current search window that calculates and the standard histogram of target, the record matching result.
In this step, before the standard histogram of the histogram of the current search window that calculates and target mated, at first the histogram of different scale search window is converted to the histogram of standard scale search window, so that can mate with the standard histogram of target.Concrete transfer process is: each group pixel number in the different scale search window histogram is obtained the pixel number of each group of standard scale histogram divided by this scale-value, thereby obtain the histogram of standard scale search window.As in the step 103, when scale-value c is 0.9, only need pixel number in each group at this moment when being converted to standard scale then, thereby obtain the pixel number of each group of standard scale histogram divided by 0.9.
During specific implementation, also the histogram of different scale search window and the standard histogram of target all can be carried out normalization, wherein carry out normalized process can for: with all pixels in the histogram as radix, pixel in each group of histogram is removed radix as divisor, obtain the histogram after the normalization.
When specifically mating, can adopt the standard of Euclidean distance, if use h as the histogram coupling StdThe standard histogram of expression target is with M (h Win, h Std) expression h WinWith h StdMatching degree, suppose wherein h Win, h Std=[h r, h g, h b] (or h Win, h Std=[h y, h u, h v), M (h then Win, h Std) computation process can for: M ( h win , h std ) = &Sigma; d D ( h win . d , h std . d ) , Wherein, d ∈ D, D={r, g, b} (or D={y, u, v}); D ( h win . d , h std . d ) = &Sigma; k = 0 K - 1 ( h win . d ( k ) - h std . d ( k ) ) 2 . Wherein, K is a histogrammic group of number, and k is histogrammic group, D (h Win.d, h Std.d) be the deviation size between the standard histogram of search window histogram and target in the d feature passage, M (h Win, h Std) be h WinWith h StdComprehensive deviation.
Preferably, more accurate in the aforementioned calculation process in order to make calculating, can in computing formula, add weight, as D (h Win.d, h Std.d) can for: D ( h win . d , h std . d ) = &Sigma; k = 0 K - 1 w ( d , k ) ( h win . d ( k ) - h std . d ( k ) ) 2 , Wherein, (d k) is the weight of histogram k group in the d feature passage to w; M (h Win, h Std) also can for: M ( h win , h std ) = &Sigma; d w d D ( h win . d , h std . d ) , Wherein, w dWeight for d feature passage.
Wherein, and weight w (d, k) and w dCan obtain by empirical value or actual needs.
At last, with the search window matching degree M (h that obtains Win, h Std) carry out record.
Step 106 judges whether that target may occur in the whole tracing area all search windows have all mated to finish, if then execution in step 107; Otherwise, return execution in step 103.
Step 107 according to the matching result of record, obtains the tracing positional of target.
In the present embodiment, the matching result of record is h in the step 105 WinWith h StdBetween matching degree M (h Win, h Std), and M (h Win, h Std) that in fact obtain is h WinWith h StdBetween the deviation size, therefore, M (h Win, h Std) value more little, the expression h Win, with h StdMate more.M (the h of all search windows that may occur according to target in the whole tracing area of noting in the step 105 Win, h Std), therefrom choose M (h Win, h Std) the minimum search window zone of value is as the tracing positional of target.
If need to continue tracking target, then extract the next frame image, return execution in step 101.
Above-mentioned image tracking method in the embodiment of the invention one is described in detail, again image tracking system in the embodiment of the invention one is described in detail below.
Referring to Fig. 6 (a), Fig. 6 (a) is the structural representation of image tracking system in the embodiment of the invention one.Shown in Fig. 6 (a), this system comprises: tracing area is provided with unit 610, domain integral computing unit 620 and histogram coupling tracking cell 630.
Wherein, tracing area is provided with unit 610, is used for being provided with at current frame image the tracing area of target, and set tracing area is notified to domain integral computing unit 620 and histogram coupling tracking cell 630.
Domain integral computing unit 620, be used to by integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtain the domain integral histogram, and the domain integral histogram that obtains is offered histogram coupling tracking cell 630.
Histogram coupling tracking cell 630, the domain integral histogram that utilizes domain integral computing unit 610 to provide is provided, calculate the histogram of each search window that target may occur in the whole tracing area, the histogram of each search window of calculating and the standard histogram of target are mated, obtain the tracing positional of target according to matching result.
During specific implementation, histogram coupling tracking cell 630 can have multiple way of realization, can be an independent module, also can be to be made of several modules.Be example only below, the specific implementation of histogram coupling tracking cell 630 be described in detail with a kind of way of realization wherein, referring to Fig. 6 (b), Fig. 6 (b) be shown in Fig. 6 (a) in the system histogram mate a kind of inner structure synoptic diagram of tracking cell.Shown in Fig. 6 (b), histogram coupling tracking cell 630 can comprise: search window determination module 631, histogram calculation module 632, histogram matching module 633 and tracing positional determination module 634.
Wherein, search window determination module 631 is used for from tracing area the definite current search window of tracing area that unit 610 provides being set, and determined current search window is notified to histogram calculation module 632.
Histogram calculation module 632, be used to utilize the histogram of the domain integral histogram calculation current search window that domain integral computing unit 620 provides, the histogram of the current search window that calculates is offered histogram matching module 633, notify search window determination module 631 that next current search window is provided simultaneously.
Histogram matching module 633 is used for the histogram of current search window that histogram calculation module 622 is provided and the standard histogram of precalculated target and mates, and matching result is offered tracing positional determination module 634.
Tracing positional determination module 634, the matching result of all search windows that the target that is used for providing according to histogram matching module 633 may occur, the search window zone that coupling is best is as the tracing positional of target.
Wherein, the detailed implementation procedure of each functional unit and module can be consistent with the description in the method flow shown in Figure 1 in the system shown in Figure 6.
Embodiment two:
Image tracking method among image tracking method in the present embodiment and the embodiment one is roughly the same, and its difference is:
In the step 102 of method flow shown in Figure 1, what embodiment one adopted is color histogram, but in this case, when in tracing area, having the object similar to color of object, because color histogram is a kind of description to color, therefore be subjected to the interference of the object similar easily, make tracking inaccurate, for this reason to color of object, in the step 102 of present embodiment, on the basis of adopting color histogram, added a kind of histogram again, i.e. gradient orientation histogram.
Gradient orientation histogram is meant: the angular interval of determining gradient direction according to the set of histograms number; Calculate the affiliated angular interval of gradient direction of each pixel, obtain the affiliated histogram group of this pixel.
Concrete computation process is as follows:
Suppose that (i, j) (i j) locates gray values of pixel points, uses G in expression with I x(i, the j) Grad on the expression x direction, G y(i, the j) Grad on the expression y direction, G Dir(i, j) the expression gradient direction then has: G x(i, j)=I (i+1, j)-I (i-1, j), G y(i, j)=I (i, j+1)-I (i, j-1), G dir ( i , j ) = arctan G y ( i , j ) G x ( i , j ) . Because - &pi; 2 < arctan G y ( i , j ) G x ( i , j ) < &pi; 2 , Therefore gradient direction can be existed
Figure A20071009897000273
To the histogram grouping,, then will in the scope if the set of histograms number is K
Figure A20071009897000274
Be divided into K angular interval.As carrying out following interval division:
R 0 = [ - &pi; 2 , - ( 2 K - 1 ) &pi; 2 K ) &cup; [ ( 2 K - 1 ) &pi; 2 K , &pi; 2 ) R i = [ - &pi; 2 + i&pi; K - &pi; 2 K , - &pi; 2 + i&pi; K + &pi; 2 K ) , i = 1,2 . . . . . . , K - 1
Calculate the G of each pixel Dir(i, j), according to G Dir(i, the j) scope in interval of living in obtain the affiliated histogrammic group of this pixel.
In the practical application, for fear of carrying out arctangent cp cp operation, the tangent value b that puts on the computation interval border at first i, calculate then that (i j) locates the gradient ratio G of pixel y(i, j)/G x(i, j) residing interval (b I-1, b i), obtain the affiliated histogram group of this pixel then.If still use f k(i, j), k ∈ (0,1 ..., K-1) expression (i j) locates group information under the pixel, then concrete computation process can for:
f k ( i , j ) = 1 , b i - 1 < G y ( i , j ) / G x ( i , j ) < b i 0 .
Statistics to the number of pixels in each gradient orientation histogram group is identical with the statistical method of color histogram afterwards, repeats no more herein.
At last according to gradient orientation histogram group number and each zone C I, jIn number of pixels in each group, obtain each zone C I, jGradient orientation histogram h DirIf what adopt when calculating color histogram is to each Color Channel of color all compute histograms, then each zone C I, jTotal histogram h I, jFor: h i, j=[h r, h g, h b, h Dir] I, j, or h I, j=[h y, h u, h v, h Dir] I, j, promptly this moment, the feature passage also comprised the gradient direction passage.
Correspondingly, in step 104, the search window histogram h that calculates WinFor: h Win=[h r, h g, h b, h Dir], (or h Win=[h y, h u, h v, h Dir]), the standard histogram h of same precalculated target StdFor: h Std=[h r, h g, h b, h Dir], (or h Std=[h y, h u, h v, h Dir]).In step 105, D={r, g, b, G Dir(or D={y, u, v, G Dir).
The structure of image tracking system and annexation are identical with image tracking system among the embodiment one in the present embodiment, function is also similar, and the description in the image tracking method in the detailed implementation procedure that difference only is each functional unit and module and the present embodiment is consistent.
Gradient orientation histogram described in the foregoing description two also can use separately, only adopts gradient orientation histogram in the step 102 promptly shown in Figure 1, then this moment h I, j=h Dir, correspondingly, in the step 104, h Win=h Dir, h Std=h Dir, in the step 105, D=G Dir
Embodiment three:
Image tracking method in the present embodiment can adopt step 101 among the embodiment one to step 106, also can adopt step 101 among the embodiment two to step 106.The difference of present embodiment and embodiment one or embodiment two is:
First point: for edge feature and the locus feature that embodies target, in advance target is carried out piecemeal according to default piece number, and calculate the blocked histogram of target.Then also comprise blocked histogram in the standard histogram of target.
Wherein, the standard histogram of target is the overall histogram of target among embodiment one, the embodiment two, not only comprises the overall histogram of target in the present embodiment in the standard histogram of target, also comprises the blocked histogram of target.Suppose target is divided into M * N piece, and histogram comprises the histogram and the gradient orientation histogram of each Color Channel in the color that then the standard histogram of target constitutes as shown in Figure 7, wherein b 1..., b KHistogram part for each group in the histogram.Wherein (m, blocked histogram n) can be used h to piece StmnExpression.
Second point: the specific implementation process difference in the step 107, referring to Fig. 8, Fig. 8 is the specific implementation process in the step 107 in the present embodiment, comprising:
Step 107.a according to the matching result of record, according to preset condition, chooses qualified a plurality of search window.
In this step, according to the matching result M (h of record in the step 105 Win, h Std), according to preset condition, choose qualified M (h Win, h Std) the less a plurality of search windows of value.The wherein pre-conditioned search window number N that can be select then pre-conditionedly chooses N M (h according to this Win, h Std) the less search window of value; Perhaps pre-conditionedly can be M (h Win, h Std) the value thresholding, then according to this pre-conditioned M (h that chooses Win, h Std) value is less than the search window of this thresholding.
Can a plurality of search windows of choosing being numbered in this step, supposing to have chosen N search window, can be 1,2 with N search window number consecutively then ..., N.
Step 107.b determines the current search window from a plurality of search windows of choosing.
Suppose that search window selected among the step 107.a is N, then in this step, can determine in N one,, then can determine the current search window according to numeral order in this step if among the step 107.a N search window compiled number as the current search window.
Step 107.c carries out piecemeal with the current search window according to the method for partition identical with target, obtains a plurality of subwindows.
In this step, hypothetical target is divided into M * N piece, then also the current search window is divided into the corresponding M * N piece of size.
Step 107.d utilizes integration histogram to calculate the histogram of each subwindow, and the subwindow histogram that calculated and the blocked histogram of target corresponding blocks are mated, and obtains each subwindow matching result.
In this step, for with embodiment one, embodiment two in the histogram of the search window that calculated distinguish, the overall histogram that the histogram of the search window that calculated among embodiment one, the embodiment two can be called search window, with the overall histogram of search window and the overall histogrammic matching result (matching degree) of target, be called global registration result's (matching degree) of search window.
The concrete computation process of subwindow matching result can for:
for?m=1→M
{for?n=1→N
{ utilize integration histogram to calculate (m, n) the subwindow histogram of piece;
With calculated (m, n) of piece subwindow histogram and target (m, n) the piece piecemeal is straight
Side figure mates, the record matching result;
}
}
The aforementioned calculation procedural representation, according to from top to bottom, direction is from left to right chosen current block one by one, and the subwindow histogram of calculating current block, the subwindow histogram of the current block that calculated and the blocked histogram of target corresponding blocks are mated, and record matching result (matching degree), next piece of choosing current block afterwards is as current block, continue said process, up to having mated all subwindows.
Wherein, utilize integration histogram calculate the (m, n) during the subwindow histogram of piece, computing method are identical with the histogrammic method of search window of calculating piecemeal not, as: (m, n) window area of piece is (mx, ny, w to suppose the MN, h MN) time, then this subwindow is C Mx+wMN, ny+hMN+ C Mx, ny-C Mx+wMN, ny-C Mx, ny+hMN, the histogram of this subwindow is h Mx+wMN, ny+hMN+ h Mx, ny-h Mx+wMN, ny-h Mx, ny+hMN
With calculated the (m, n) the of piece subwindow histogram and target (m when n) the piece blocked histogram mates, can adopt the standard of Euclidean distance as the histogram coupling equally, if use h MnExpression (m, n) the subwindow histogram of piece, usefulness M (h Mn, h Stmn) expression h MnWith h StmnMatching degree, then M ( h mn , h stmn ) = &Sigma; d D ( h mn . d , h stmn . d ) , D ( d mn . d , h stmn . d ) = &Sigma; k = 0 K - 1 ( h mn . d ( k ) - h stmn . d ( k ) ) 2 . Wherein, if adopt step 101 among the embodiment two to step 106, d ∈ D then, D={r, g, b, G Dir(or D={y, u, v, G Dir), or d ∈ D, D=G DirIf adopt step 101 among the embodiment one to step 106, d ∈ D then, D={r, g, b} (or D={y, u, v}).Wherein, K is a histogrammic group of number, and k is histogrammic group, D (h Mn.d, h Stmn.d) be (m, n) (m, n) the deviation size between the piece blocked histogram, the M (h of piece subwindow histogram and target in the d feature passage Mn, h Stmn) be (m, n) (m, n) the comprehensive deviation of piece blocked histogram of piece subwindow histogram and target.
Preferably, more accurate in the aforementioned calculation process in order to make calculating, also can in computing formula, add weight, as D (h Mn.d, h Stmn.d) can for: D ( h mn . d , h stmn . d ) = &Sigma; k = 0 K - 1 w ( d , k ) ( h mn . d ( k ) - h stmn . d ( k ) ) 2 , Wherein, (d k) is the weight of histogram k group in the d feature passage to w; And M (h Mn, h Stmn) also can for: M ( h mn , h stmn ) = &Sigma; d w d D ( h mn . d , h stmn . d ) , Wherein, w dWeight for d feature passage.
At last, with the piecemeal matching degree M (h that obtains Mn, h Stmn) carry out record.
Step 107.e according to current search window matching result and subwindow matching result, calculates the comprehensive matching result of current search window and target.
Wherein, if use M zThe comprehensive matching result of expression current search window and target, then comprehensive matching M as a result zCan for: M z = w 1 M ( h win , h std ) + &Sigma; 1 &le; m &le; M , 1 &le; n &le; N w mn M ( h mn , h stmn ) , Wherein, w 1Be search window global registration M (h as a result Win, h Std) weight, w MnBe search window piecemeal matching result M (h Mn, h Stmn) weight.Weight w 1And w MnCan rule of thumb be worth setting, also can be provided with according to actual needs.
In addition, in this step, also can calculate the comprehensive matching result of current search window and target, even use M only according to all the subwindow matching results in the current search window zThe comprehensive matching result of expression current search window and target, then comprehensive matching M as a result zCan for: M z = &Sigma; 1 &le; m &le; M , 1 &le; n &le; N w mn M ( h mn , h stmn ) ,
Wherein, w MnBe search window piecemeal matching result M (h Mn, h Stmn) weight.Weight w MnCan rule of thumb be worth setting, also can be provided with according to actual needs.
Step 107.f, judge whether selected search window all piecemeal coupling finish, if, execution in step 107.g then; Otherwise, return execution in step 107.b.
Step 107.g according to the comprehensive matching result, obtains the tracing positional of target.
In this step, according to comprehensive matching M as a result z, therefrom choose M zThe search window zone of value minimum is as the tracing positional of target.
If need to continue tracking target, then extract the next frame image, return execution in step 101.
Image tracking system in the present embodiment among the structure of image tracking system and annexation and embodiment one or the embodiment two is similar, function is also similar, and the description in the detailed implementation procedure that difference only is the tracing positional determination module 634 in the histogram coupling tracking cell 630 and the present embodiment in the step 107 is consistent.
At this moment, as shown in Figure 9, can comprise in the tracing positional determination module 634: search window is chosen submodule, search window and is determined that submodule, piece histogram calculation matched sub-block, search window comprehensive matching calculating sub module and tracing positional determine submodule.
Wherein, search window is chosen submodule, and the search window matching result that provides according to histogram matching module 633 is provided, and according to pre-conditioned, therefrom chooses qualified a plurality of search window, offers search window and determines submodule.
Search window is determined submodule, be used for choosing the definite current search window of search window that submodule provides from search window, and determined current search window is notified to piece histogram calculation matched sub-block, the global registration degree of current search window is offered search window comprehensive matching calculating sub module.
Piece histogram calculation matched sub-block is used for search window is determined that the current search window that submodule provides carries out piecemeal according to the method for partition corresponding with target, obtains subwindow; To the subwindow of each, utilize integration histogram to calculate the subwindow histogram, the subwindow histogram that calculated and the blocked histogram of target corresponding blocks are mated, obtain the piecemeal matching degree of each subwindow, resulting piecemeal matching degree is offered search window comprehensive matching calculating sub module.After all subwindow couplings were finished, the notice search window determined that submodule provides next current search window.
Search window comprehensive matching calculating sub module, be used for determining the piecemeal matching degree of all subwindows of the global registration degree of the current search window that submodule provides and the current search window that piece histogram calculation matched sub-block provides according to search window, calculate the comprehensive matching degree of current search window and target, and the comprehensive matching degree of the current search window that calculates is offered tracing positional determine submodule.
Wherein, the piecemeal matching degree of all subwindows in the current search window that search window comprehensive matching calculating sub module can be only provides according to piece histogram calculation matched sub-block is calculated the comprehensive matching result of current search window and target.At this moment, search window determines that submodule can need not to provide to search window comprehensive matching calculating sub module the global registration degree of current search window.
Tracing positional is determined submodule, and the comprehensive matching degree of all search windows of providing according to search window comprehensive matching calculating sub module is provided, and will coupling best search window zone is as the tracing positional of target.
Embodiment four:
In the present embodiment, on the basis of embodiment one, embodiment two or embodiment three, the combining target sorter carries out the Position Tracking of target.By the target classification device target is followed the tracks of roughly,, reduce operand, by the histogram coupling target is carried out meticulous tracking afterwards, to guarantee tracking effect with further raising real-time performance of tracking.
Referring to Figure 10, Figure 10 is the process flow diagram of image tracking method in the embodiment of the invention four.As shown in figure 10, this flow process comprises the steps:
Step 1001 is provided with tracing area in current frame image.
In the present embodiment, the method that tracing area is set can be consistent with the description in the step 101 among the embodiment one.
Step 1002, each search window that utilizes sorter may occur target in the whole tracing area are carried out the degree of confidence description, if exist degree of confidence to satisfy the search window of tracer request, then execution in step 1003; If do not exist degree of confidence to satisfy the search window of tracer request, then execution in step 1005.
Wherein, the size of hypothetical target is w p* h p, then under each possible yardstick c, yardstick c the width of corresponding search window be: w c=c * w p, highly be h c=c * h p, c ∈ C wherein, C be might yardstick set, as C={0.8,0.9,1.0,1.1,1.2} etc.
The normal window of hypothetical target sorter size is w again Std* h StdWhen then carrying out the tracking of target classification device, at first need each search window scaling that target in the tracing area may be occurred normal window size to the target classification device, judge whether this search window may be target, to storing for the search window of target, utilizing the target classification device to carry out degree of confidence to the search window of being stored then describes, if degree of confidence is greater than the threshold value that sets in advance, the search window that then exists degree of confidence to meet the demands, and can select the window of degree of confidence maximum, follow the tracks of successfully this moment; If cannot target exist, less than preset threshold value, then the search window that does not exist degree of confidence to meet the demands is followed the tracks of failure this moment as if degree of confidence.
Step 1003, the search window that degree of confidence is satisfied tracer request carries out the histogram coupling, and the match is successful as if histogram, and then execution in step 1004; Otherwise, further, but execution in step 1005.
In this step, can be that the search window that all degree of confidence satisfy tracer request is carried out the histogram coupling, also can be that the search window that the partial belief degree satisfies tracer request is carried out the histogram coupling, as choose the search window that several bigger degree of confidence of degree of confidence satisfy tracer request and carry out the histogram coupling, or the search window that a degree of confidence choosing the degree of confidence maximum satisfies tracer request carries out the histogram coupling.
Wherein, when the search window that degree of confidence is met the demands carries out the histogram coupling, can adopt the blocked histogram coupling, also can adopt overall histogram coupling, also the method that can adopt overall histogram to combine with blocked histogram is mated.When for example adopting overall histogram to mate, can for: after determining the set of histograms number, degree of confidence is satisfied the search window of tracer request, calculate the histogram group under the pixel in this search window, add up the number of pixels in each group, according to the number of pixels in set of histograms number and each group, obtain the histogram of this search window, the search window histogram that calculates and the standard histogram of target are mated, if the search window that exists the histogram matching result to meet the demands, then the match is successful for histogram, is called the search window that the match is successful with wherein mating best search window, otherwise it fails to match.
Wherein, the standard histogram of search window histogram and target can be a color histogram, also can be that color histogram adds gradient orientation histogram, can also be gradient orientation histogram.Concrete which kind of histogram that adopts is decided according to actual conditions.
Step 1004, with the search window that the match is successful the tracing positional as target, execution in step 1006 afterwards.
Step 1005 is carried out integration histogram calculating and histogram coupling following calculation, obtains the tracing positional of target.
Specific implementation process in this step can be identical to step 107 with the step 101 among the embodiment one, also can be identical to step 107 with the step 101 among the embodiment two, and can also be identical to step 107 with the step 101 among the embodiment three.
Step 1006 judges whether to need to continue tracking target, if, then extract the next frame image, and return execution in step 1001, otherwise, process ends.
So far, the image tracking method flow process among the embodiment four finishes.
In the above-mentioned flow process, step 1003 and step 1004 also can be omitted, then in the step 1002 if sorter is followed the tracks of successfully, the search window that degree of confidence is the highest in the then direct search window that degree of confidence is satisfied tracer request is as the tracing positional of target, execution in step 1006 then.
Above-mentioned image tracking method in the embodiment of the invention four is described in detail, again image tracking system in the embodiment of the invention four is described in detail below.
Referring to Figure 11, Figure 11 is the structural representation of image tracking system in the embodiment of the invention four.As shown in figure 11, this system has added target classification device tracking cell 1101 and histogram matching unit 1102 on the basis of system shown in Fig. 6 (a).
At this moment, tracing area is provided with unit 610, is further used for set tracing area is notified to target classification device tracking cell 1101.
Target classification device tracking cell 1101, each search window that is used for utilizing sorter may occur whole tracing area target carries out the degree of confidence description, if exist degree of confidence to satisfy the search window of tracer request, then follow the tracks of successfully, the search window that this degree of confidence is satisfied tracer request offers histogram matching unit 1102; If do not exist degree of confidence to satisfy the search window of tracer request, then follow the tracks of failure, send the notice of following the tracks of failure to domain integral computing unit 620.
Wherein, when the search window that target classification device tracking module satisfies tracer request with degree of confidence offers the histogram matching module, the search window that all degree of confidence can be satisfied tracer request offers the histogram matching module, the search window that also the partial belief degree can be satisfied tracer request offers the histogram matching module, as choose several bigger degree of confidence of degree of confidence and satisfy the search window of tracer request, or choose the search window that a degree of confidence of degree of confidence maximum satisfies tracer request and offer the histogram matching module.
Histogram matching unit 1102, the degree of confidence that being used to calculate target classification device tracking cell 1101 provides satisfies the histogram of the search window of tracer request, the search window histogram of calculating and the standard histogram of target are mated,, determine the tracing positional of target according to matching result.
Domain integral computing unit 620 is further used for: according to the notice of failing from the tracking of target classification device tracking cell, carry out the operation of described domain integral histogram calculation.
Wherein, also can need not histogram matching unit 1102 in this system, then target classification device tracking cell 1101 directly satisfies degree of confidence the tracing positional of the search window of degree of confidence maximum in the search window of tracer request as target when following the tracks of successfully.
In the foregoing description four, in the step 1004 of method flow shown in Figure 10, can further comprise: the search window that the match is successful is stored.
Then the method in the present embodiment can further comprise: when the number of the search window of storing reaches pre-conditioned, utilize the overall histogram of these search windows, calculate each group of histogram in each feature passage weight w (d, k), d ∈ D, wherein, if adopt color histogram, then feature passage D={r, g, b} (or D={y, u, v}); If adopt color histogram to add gradient orientation histogram, feature passage D={r then, g, b, G Dir(or D={y, u, v, G Dir); If only adopt gradient orientation histogram, then feature passage D=G Dir
The number of supposing the search window stored is N 0, determined histogrammic group of number is K, the process of then specifically calculating weight is as follows:
1, calculates the overall histogram h of N search window each group in each feature passage of being stored Dkn, n ∈ (0,1 ..., N 0-1), and k ∈ (0,1 ..., K-1).
2, calculate the overall histogrammic inequality M of each group in each feature passage Hdk, variance Var Hdk
If N search window comprises the search window of different scale, then calculate before inequality and the variance, the histogram of each group is converted to the histogram of each group of standard scale at first separately.And then carry out inequality and variance and calculate.
Concrete computation process is as follows:
M hdk = &Sigma; n = 0 N - 1 h dkn N , Var hdk = &Sigma; n = 0 N - 1 ( h dkn - M hdk ) 2 N ;
3, utilize above-mentioned inequality and variance, and calculating w (d, k).
w ( d , k ) 1 = M hdk 2 Var hdk + &sigma; 2 , Wherein, σ 2Adjust parameter for variance, be used to avoid Var HdkBe 0 situation, σ 2Value very little, as being 10 -5Deng.
For the weight that makes each group adds up to 1, need carry out normalization to the weight of each group, that is: W ( d , K ) = &Sigma; k = 0 K - 1 w ( d , k ) 1 , w ( d , k ) = w ( d , k ) 1 W ( d , K ) , k∈(0,1,…,K-1)。
Further,, then can also utilize the blocked histogram of the search window of being stored, calculate the weight w of the global registration result among the process step 107.e shown in Figure 8 if step 1005 is identical to step 107 with step 101 among the embodiment three 1Weight w with the piecemeal matching result Mn
Equally, the number of supposing the search window stored is N 0, determined histogrammic group of number is K, supposes that again each search window is divided into M * N piece, the process of then specifically calculating weight is as follows:
1, calculates the blocked histogram h of N search window each group in each feature passage of being stored Dkn(m, n), 1≤m≤M, 1≤n≤N.
2, calculate the inequality M of the blocked histogram of each group in each feature passage Hdk(m, n), variance Var Hdk(m, n).
If N search window comprises the search window of different scale, then calculate before inequality and the variance, the histogram of each group is converted to the histogram of each group of standard scale at first separately.And then carry out inequality and variance and calculate.
Concrete computation process is as follows:
M hdk ( m , n ) = &Sigma; n = 0 N - 1 h dkn ( m , n ) N , Var hdk ( m , n ) = &Sigma; n = 0 N - 1 ( h dkn ( m , n ) - M hdk ( m , n ) ) 2 N .
3, utilize above-mentioned inequality and variance, calculate w 1And w Mn
3.1 calculate w 1: the weighted sum of calculating each feature passage variance of overall histogram: Var = &Sigma; d &Element; D w c &Sigma; k = 0 K - 1 Var hdk ;
Calculate w 1 = 1 / Var + &sigma; 2 , Wherein, σ 2Be that variance adjusts parameter, being used to avoid Var is 0 situation, same, σ 2Value very little, as being 10 -5Deng.
3.2 calculate w Mn:
Calculate the weighted sum of each feature passage variance of blocked histogram:
Var ( m , n ) = &Sigma; d &Element; D w c &Sigma; k = 0 K - 1 Va r hdk ( m , n ) ;
Calculate w mn . 1 = 1 / Var ( m , n ) + &sigma; 2 , Equally, σ 2For variance is adjusted parameter.
For the weight that makes each piecemeal adds up to 1, need carry out normalization to the weight of each piecemeal, that is:
W mn = &Sigma; k = 0 K - 1 w mn . 1 , w mn = w mn . 1 W mn , k∈(0,1,…,K-1),1≤m≤M,1≤n≤N。
Correspondingly, in the system shown in Figure 11, also can further comprise: histogram weight updating block 1103, as shown in figure 12, Figure 12 is another structural representation of image tracking system in the embodiment of the invention four.As shown in figure 12, histogram matching unit 1102 is further used for the search window that the match is successful is offered histogram weight updating block 1103, histogram weight updating block 1103 is used for the histogram according to the search window of the predetermined number of storage, calculate the weight of each group of histogram in each feature passage, the weight of each group in each the feature passage that calculates is offered histogram coupling tracking cell 630, the weight of each group in each feature passage that histogram coupling tracking cell 630 is further used for providing according to histogram weight updating block 1103 is carried out the operation that the standard histogram to the histogram of search window and target mates.
During specific implementation, histogram weight updating block 1103 can offer the weight of each group in each the feature passage that calculates the histogram matching module 633 in the histogram coupling tracking cell 630, by the weight of histogram matching module 633, carry out the operation that the standard histogram to the histogram of search window and target mates according to each group in each feature passage.
In addition, further, histogram weight updating block 1103 also is used for the blocked histogram according to the search window of the predetermined number of storage, calculate search window global registration result's the weight and the weight of piecemeal matching result, the search window global registration result's that calculates the weight and the weight of piecemeal matching result are offered histogram coupling tracking cell 630, the search window global registration result's who is provided according to histogram weight updating block 1103 by histogram coupling tracking cell 630 the weight and the weight of piecemeal matching result are carried out the operation of calculating search window comprehensive matching result.
During specific implementation, histogram weight updating block 1103 can offer the weight of the global registration result's that calculated weight and piecemeal matching result the search window comprehensive matching calculating sub module in the tracing positional determination module 634, according to search window global registration result's the weight and the weight of piecemeal matching result, carry out the operation of calculating search window comprehensive matching result by search window comprehensive matching calculating sub module.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (19)

1, a kind of image tracking method is characterized in that, this method comprises:
By integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtains the domain integral histogram;
Utilize the domain integral histogram, calculate the histogram of each search window that target may occur in the whole tracing area, the histogram of each search window of calculating and the standard histogram of target are mated, obtain matching result, determine the tracing positional of target according to matching result.
2, method according to claim 1 is characterized in that, described integration histogram comprises: the color integration histogram, and/or, the gradient direction integration histogram.
3, method according to claim 1 and 2, it is characterized in that, the described domain integral histogram that utilizes, the histogram that calculates each search window that target may occur is: each search window that may occur target, domain integral histogram with four angle correspondences of this search window carries out plus and minus calculation, obtains the histogram of this search window.
4, method as claimed in claim 3, it is characterized in that, if predefined one jiao is the upper left corner, then described domain integral histogram with four angle correspondences of search window carries out plus and minus calculation and is specially: after the domain integral histogram addition that the domain integral histogram of this search window lower right corner correspondence is corresponding with this search window upper left corner, deduct the domain integral histogram of this search window upper right corner correspondence and the domain integral histogram of lower left corner correspondence, obtain the histogram of this search window.
5, method according to claim 1 and 2 is characterized in that, describedly comprises by calculating the domain integral histogram:
Determine the set of histograms number;
Calculate the histogram group under each pixel in the whole tracing area;
Add up in the whole tracing area with the All Ranges C of predefined one jiao of O as starting point I, jIn belong to other domain integral number of pixels of each set of histograms;
According to set of histograms number and each C I, jIn other domain integral number of pixels of each set of histograms, obtain each domain integral histogram.
6, method as claimed in claim 5 is characterized in that, all C in the whole tracing area of described statistics I, jIn belong to other domain integral number of pixels of each set of histograms and be specially:
According to the histogram group information under each pixel, on the direction on a limit under the whole tracing area O, the pixel number in each group is carried out the addition recursion calculate, obtain the direction integral number of pixels of each group on this direction;
To the described direction integral number of pixels of each group of obtaining, on the direction on another limit under the whole tracing area O, carry out the addition recursion and calculate, obtain each C I, jIn the domain integral number of pixels of each group.
7, method according to claim 5 is characterized in that, when integration histogram comprised the gradient direction integration histogram, the histogram group under each pixel of described calculating comprised:
Determine the angular interval of gradient direction according to the set of histograms number;
Calculate the affiliated angular interval of gradient direction of each pixel, obtain the affiliated histogram group of this pixel.
8, method according to claim 7 is characterized in that, the angular interval under the gradient direction of described each pixel of calculating comprises:
Calculate the tangent value of the frontier point of angular interval, obtain the tangent value interval;
Calculate the ratio of each pixel,, obtain the angular interval under the gradient direction of each pixel according to the residing tangent value of this ratio interval at the Grad of the Grad of the y of coordinate axis direction and x direction.
9, method according to claim 1 and 2 is characterized in that, the standard histogram of described target comprises: the overall histogram of target; Then described the histogram of each search window of being calculated and the standard histogram of target are mated, obtain matching result and comprise:
The overall histogram of each search window of being calculated and the overall histogram of target are mated, obtain the global registration degree of search window, with the global registration degree of resulting search window as matching result.
10, method according to claim 9 is characterized in that, the standard histogram of described target also comprises: with the blocked histogram behind the target piecemeal; Then obtain after the global registration degree of search window, the global registration degree of this search window as before the matching result, further comprised:
According to the global registration degree of search window, obtain a plurality of global registration degree and satisfy pre-conditioned search window;
Described a plurality of search windows are carried out piecemeal according to the partitioned mode corresponding with target respectively, obtain the subwindow of each search window;
Utilize the domain integral histogram, calculate the histogram of each subwindow, the histogram of each subwindow of obtaining and the blocked histogram of target corresponding blocks are mated, obtain the piecemeal matching degree of each subwindow;
According to the piecemeal matching degree of each subwindow in the global registration degree of each search window and this search window, obtain the matching result of each search window.
11, method according to claim 1 and 2 is characterized in that, calculates before the integration histogram of whole tracing area, further comprises:
Each search window that utilizes sorter may occur target in the whole tracing area carries out degree of confidence to be described, if do not exist degree of confidence to satisfy the search window of tracer request, then carries out the operation of the integration histogram of the whole tracing area of described calculating.
12, method according to claim 11, it is characterized in that, this method further comprises: if exist degree of confidence to satisfy the search window of tracer request, then the search window that degree of confidence is satisfied tracer request carries out the histogram coupling, it fails to match as if histogram, then carries out the operation of the integration histogram of the whole tracing area of described calculating; The match is successful as if histogram, and then general's search window that the match is successful is as the tracing positional of target.
13, method according to claim 12, it is characterized in that, this method further comprises: search window that will the match is successful is stored, and according to the histogram of the search window of the predetermined number of storage, calculates the weight of each group of histogram in each feature passage;
The then described histogram and the standard histogram of target with search window mates and is: according to the weight of each group in each feature passage, the histogram of search window and the standard histogram of target are mated.
14, a kind of image tracking system is characterized in that, this system comprises: tracing area is provided with unit, domain integral computing unit and histogram coupling tracking cell, wherein,
Tracing area is provided with the unit, is used for being provided with at current frame image the tracing area of target, and set tracing area is notified to domain integral computing unit and histogram coupling tracking cell;
The domain integral computing unit, be used to by integral operation, calculating in the whole tracing area with whole tracing area predefined one jiao is the histogram of the All Ranges of starting point, obtains the domain integral histogram, and the domain integral histogram that obtains is offered histogram coupling tracking cell;
Histogram coupling tracking cell, the domain integral histogram that utilizes the domain integral computing unit to provide is provided, calculate the histogram of each search window that target may occur in the whole tracing area, the histogram of each search window of calculating and the standard histogram of target are mated, obtain the tracing positional of target according to matching result.
15, system according to claim 14, it is characterized in that, this system further comprises: target classification device tracking cell, each search window that is used for utilizing sorter may occur whole tracing area target carries out the degree of confidence description, if do not exist degree of confidence to satisfy the search window of tracer request, then send the notice of following the tracks of failure to described domain integral computing unit;
Described domain integral computing unit according to the notice of failing from the tracking of target classification device tracking cell, is carried out the operation of described domain integral histogram calculation.
16, system according to claim 15 is characterized in that, this system further comprises: the histogram matching unit;
Then target classification device tracking cell is further used for: if exist degree of confidence to satisfy the search window of tracer request, the search window that then described degree of confidence is satisfied tracer request offers the histogram matching unit;
The histogram matching unit, the degree of confidence that being used to calculate target classification device tracking cell provides satisfies the histogram of the search window of tracer request, the search window histogram of calculating and the standard histogram of target are mated,, determine the tracing positional of target according to matching result.
17, system according to claim 16 is characterized in that, this system further comprises: histogram weight updating block;
Then the histogram matching unit is further used for: the histogram search window that the match is successful is offered histogram weight updating block;
Histogram weight updating block is used for the histogram of search window according to the predetermined number of storage, calculates the weight of each group of histogram in each feature passage, and the weight of each group in each the feature passage that calculates is offered histogram coupling tracking cell;
Histogram coupling tracking cell is further used for: the weight of each group in each the feature passage that provides according to histogram weight updating block, carry out described histogram and the operation of mating of the standard histogram of target to search window.
According to each described system in the claim 14 to 17, it is characterized in that 18, described histogram coupling tracking cell comprises: search window determination module, histogram calculation module, histogram matching module and tracing positional determination module, wherein,
The search window determination module is used for from tracing area the definite current search window of tracing area that the unit provides being set, and determined current search window is notified to the histogram calculation module;
The histogram calculation module is used to utilize the histogram of the domain integral histogram calculation current search window that the domain integral computing unit provides, and the histogram of the current search window that calculates is offered the histogram matching module; Notice search window determination module provides next current search window;
The histogram matching module is used for the histogram of current search window that the histogram calculation module is provided and the standard histogram of precalculated target and mates, and matching result is offered the tracing positional determination module;
The tracing positional determination module, the matching result of all search windows that the target that is used for providing according to the histogram matching module may occur, the search window zone that coupling is best is as the tracing positional of target.
19, system as claimed in claim 18, it is characterized in that, described tracing positional determination module comprises: search window is chosen submodule, search window and is determined that submodule, piece histogram calculation matched sub-block, search window comprehensive matching calculating sub module and tracing positional determine submodule, wherein
Search window is chosen submodule, and the matching result of all search windows of providing according to the histogram matching module is provided, and therefrom chooses and satisfies pre-conditioned a plurality of search windows, offers search window and determines submodule;
Search window is determined submodule, is used for choosing the definite current search window of search window that submodule provides from search window, and determined current search window is notified to piece histogram calculation matched sub-block;
Piece histogram calculation matched sub-block is used for search window is determined that the current search window that submodule provides carries out piecemeal according to the method for partition corresponding with target, obtains subwindow; To each subwindow, utilize integration histogram to calculate the subwindow histogram, the subwindow histogram that calculated and the blocked histogram of target corresponding blocks are mated, obtain the piecemeal matching degree of each subwindow, resulting piecemeal matching degree is offered search window comprehensive matching calculating sub module; The notice search window determines that submodule provides next current search window;
Search window comprehensive matching calculating sub module, the piecemeal matching degree that all subwindows of the current search window that provides according to piece histogram calculation matched sub-block are provided, calculate the comprehensive matching degree of current search window, and the comprehensive matching degree of the current search window that calculates is offered tracing positional determine submodule;
Tracing positional is determined submodule, and the comprehensive matching degree of all search windows of providing according to search window comprehensive matching calculating sub module is provided, and will coupling best search window zone is as the tracing positional of target.
CNB200710098970XA 2007-04-30 2007-04-30 Image tracking method and system thereof Active CN100472564C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200710098970XA CN100472564C (en) 2007-04-30 2007-04-30 Image tracking method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200710098970XA CN100472564C (en) 2007-04-30 2007-04-30 Image tracking method and system thereof

Publications (2)

Publication Number Publication Date
CN101038672A true CN101038672A (en) 2007-09-19
CN100472564C CN100472564C (en) 2009-03-25

Family

ID=38889555

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200710098970XA Active CN100472564C (en) 2007-04-30 2007-04-30 Image tracking method and system thereof

Country Status (1)

Country Link
CN (1) CN100472564C (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010034245A1 (en) * 2008-09-28 2010-04-01 腾讯科技(深圳)有限公司 Image processing method and system thereof
CN101458169B (en) * 2007-12-14 2010-09-15 中国科学院沈阳自动化研究所 Tracking speed measuring method for real time image tracking system
CN102663778A (en) * 2012-04-26 2012-09-12 安科智慧城市技术(中国)有限公司 Target tracking method and system based on multi-view video
CN103593856A (en) * 2013-11-20 2014-02-19 中国科学院深圳先进技术研究院 Method and system for tracking single target
CN104620285A (en) * 2012-09-14 2015-05-13 本田技研工业株式会社 Object identifier
CN106170820A (en) * 2014-02-26 2016-11-30 株式会社索思未来 Image identification system and semiconductor integrated circuit
CN106408592A (en) * 2016-09-09 2017-02-15 南京航空航天大学 Target tracking method based on target template updating
CN108536139A (en) * 2017-03-06 2018-09-14 通用汽车环球科技运作有限责任公司 Soft tracking is kept
CN108734180A (en) * 2018-05-22 2018-11-02 东南大学 A kind of SIFT feature gradient generation method based on calculation optimization
CN109033204A (en) * 2018-06-29 2018-12-18 浙江大学 A kind of level integration histogram Visual Inquiry method based on WWW
CN111210461A (en) * 2019-12-30 2020-05-29 成都慧视光电技术有限公司 Real-time correlation filtering tracking algorithm adaptive to scale change

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101458169B (en) * 2007-12-14 2010-09-15 中国科学院沈阳自动化研究所 Tracking speed measuring method for real time image tracking system
WO2010034245A1 (en) * 2008-09-28 2010-04-01 腾讯科技(深圳)有限公司 Image processing method and system thereof
CN102663778B (en) * 2012-04-26 2015-12-02 安科智慧城市技术(中国)有限公司 A kind of method for tracking target based on multi-view point video and system
CN102663778A (en) * 2012-04-26 2012-09-12 安科智慧城市技术(中国)有限公司 Target tracking method and system based on multi-view video
CN104620285B (en) * 2012-09-14 2017-04-12 本田技研工业株式会社 Object identifier
CN104620285A (en) * 2012-09-14 2015-05-13 本田技研工业株式会社 Object identifier
CN103593856A (en) * 2013-11-20 2014-02-19 中国科学院深圳先进技术研究院 Method and system for tracking single target
CN106170820A (en) * 2014-02-26 2016-11-30 株式会社索思未来 Image identification system and semiconductor integrated circuit
US10074187B2 (en) 2014-02-26 2018-09-11 Socionext Inc. Image recognition system and semiconductor integrated circuit
CN106408592A (en) * 2016-09-09 2017-02-15 南京航空航天大学 Target tracking method based on target template updating
CN108536139B (en) * 2017-03-06 2021-08-17 通用汽车环球科技运作有限责任公司 System and method for driving a vehicle
CN108536139A (en) * 2017-03-06 2018-09-14 通用汽车环球科技运作有限责任公司 Soft tracking is kept
CN108734180A (en) * 2018-05-22 2018-11-02 东南大学 A kind of SIFT feature gradient generation method based on calculation optimization
CN108734180B (en) * 2018-05-22 2020-09-11 东南大学 SIFT feature point gradient generation method based on calculation mode optimization
CN109033204A (en) * 2018-06-29 2018-12-18 浙江大学 A kind of level integration histogram Visual Inquiry method based on WWW
CN109033204B (en) * 2018-06-29 2021-10-08 浙江大学 Hierarchical integral histogram visual query method based on world wide web
CN111210461A (en) * 2019-12-30 2020-05-29 成都慧视光电技术有限公司 Real-time correlation filtering tracking algorithm adaptive to scale change
CN111210461B (en) * 2019-12-30 2023-06-02 成都慧视光电技术有限公司 Real-time correlation filtering tracking algorithm for adaptive scale change

Also Published As

Publication number Publication date
CN100472564C (en) 2009-03-25

Similar Documents

Publication Publication Date Title
CN101038672A (en) Image tracking method and system thereof
CN1691130A (en) Image processing apparatus, method and program
CN1926575A (en) Image similarity calculation system, image search system, image similarity calculation method, and image similarity calculation program
CN1846232A (en) Object posture estimation/correlation system using weight information
CN101038674A (en) Image tracking method and system thereof
CN1320502C (en) Object trace device, object trace method, and object trace program
CN1678056A (en) Image processing apparatus and method, recording medium, and program
CN1668996A (en) Dynamical methods for solving large-scale discrete and continuous optimization problems
CN1926863A (en) Multi-pass video encoding
CN1801183A (en) Information processing apparatus and method, and program
CN1729485A (en) Method and device for tracing moving object in image
CN1220390C (en) Image processing equipment, image processing program and method
CN1678021A (en) Image processing apparatus and method, recording medium and program
CN1801945A (en) Coded video sequence conversion apparatus, method and program product for coded video sequence conversion
CN1947152A (en) Image processing apparatus and method, and recording medium and program
CN1684492A (en) Image dictionary creating apparatus, coding apparatus, image dictionary creating method
CN1765124A (en) Image processing device, image processing method, and program
CN1940965A (en) Information processing apparatus and control method therefor
CN1770864A (en) 4x4 discrete cosine transform rapid parallel device based on AVS and its method
CN1249629C (en) Image processor
CN1647524A (en) Image conversion device and image conversion method
CN1178490C (en) Data processing method, data processor, and program recorded medium
CN1856801A (en) Method and system for differentially and regularly modifying a digital image by pixel
CN101038673A (en) Image tracking method and system thereof
CN1841407A (en) Image processing apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHANXI ZHONGTIANXIN TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING VIMICRO ELECTRONICS CO., LTD.

Effective date: 20121211

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100083 HAIDIAN, BEIJING TO: 030032 TAIYUAN, SHAANXI PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20121211

Address after: 105, room 3, building 6, Kaiyuan street, Taiyuan economic and Technological Development Zone, Shanxi 030032, China

Patentee after: SHANXI VIMICRO TECHNOLOGY CO., LTD.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Beijing Vimicro Corporation