1. Field of the Invention
Embodiments of the present invention generally relate to a method and apparatus for improving stability of histogram correlation.
2. Description of the Related Art
A correlation based algorithm makes a decision by computing the correlation score between two signals/images. One of the challenges of a correlation algorithm is the stability of the correlation score. Small disturbance in the input signal/image can lead to fluctuation in the correlation score.
The histogram of the chromaticity of an image may contain peaks in close proximity, such peaks coupled with the discreteness nature of the histogram lead to unsmooth correlation score among adjacent video frames. Therefore, there exists a need for improving the stability of histogram correlation based image and video processing algorithms.
Embodiments of the present invention relate to a method and apparatus for improving stability of histogram correlation. The method includes computing a histogram for target signal and reference signal for generating a target histogram and a reference histogram, performing low pass filtering of the input signal and the reference signal and producing smoothed histograms, and performing correlation on the smoothed histograms for improving stability of histogram correlation.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
The fluctuation in correlation score is due to the these factors: (1) the chromaticity histograms of these two images are narrowly concentrated in a small region, (2) the location of the peaks of the histograms are slightly different, and (3) both the histogram of the references and the histogram of the input image are discrete.
As a result of these properties, small disturbance of the histogram distribution can lead to a significant change of the correlation score, when the peak of the histogram of the input image overlaps with one of the peaks of the reference histogram, the correlation score will be very high, otherwise the score will be very low. The chromaticity histograms of the two images are shown in
Since the fluctuation of the correlation score is caused mainly by the discreteness of the histograms (or any input signals to a correlation algorithm), and it is usually worsened by the very narrowly concentrated histograms. Thus, it may be beneficial to “move around” the input signal in a small neighborhood and correlate it with the references multiple times.
Then, one may combine the correlation scores to get the final score, as shown in Eqn (1).
This is equivalent to detecting a peak correlation in a neighborhood of the input signal, instead of just at one spot. This way the correlation score is more robust to small disturbance in the input histograms. In Eqn (1), CORR(H, G) is the operation of computing correlation between H and G. H is the target histogram/signal, G is the reference histogram/signal. wk is the weight applied to the k-th correlation. nk and mk are the amount of offset in shifting H.
Such an algorithm may be implemented by applying low pass filtering to the input histogram. The Gaussian low pass filter is given in Eqn (2)
We chose σ=1.0 and the kernel size of the Gaussian filter to be 5×5.
Step 1:
The low pass filtering of the histograms make the histograms much more robust to small disturbance, and consequently leading to much more stable correlation scores. The filtered histograms and the resulting images are shown in
The technique described in this disclosure may be applied to improve the robustness and stability of any correlation algorithms in general, where the signals are low pass filtered to reduce the influence of noise. The selection of the parameter of the low pass filter is very important. In terms of a Gaussian filter, the kernel size should be at least 5 times of the standard deviation of the Gaussian filter, and the standard deviation should be small to avoid excessive expansion of the signal, as well as restraining computation to minimal.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
This application claims benefit of U.S. provisional patent application Ser. No. 61/262,953, filed Oct. 20, 2009, which is herein incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
20030052978 | Kehtarnavaz et al. | Mar 2003 | A1 |
20060110032 | Toshihiro et al. | May 2006 | A1 |
20100020193 | Zhang | Jan 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20110123112 A1 | May 2011 | US |
Number | Date | Country | |
---|---|---|---|
61262953 | Nov 2009 | US |