Shot Detection Using Histogram Comparison and Image Substraction
Shot Detection Using Histogram Comparison and Image Substraction
(c) (d)
(a) (b)
(e)
Figure 1: A result of image subtraction of video
“Kungfu”: (a) frame 40;
(b) frame 50; (c) gray image from (a); (d) gray image
from (b); (e) result image of subtraction.
N
∂= (3)
M
With N is the number of pixel having value
between 1 and 254. M is total number pixels of
image.
The advantage of this method is that the cut
shot can be identified quickly and accurately.
However, the change or movement of objects
creates differences in the texture image so much.
Thus, the disadvantages of this method arethe
surplus detection and we can not dissolve the shot
transform in video. So, the next additional
processing method will assist us in better detecting (a)
the dissolve shot and the error in detection by
change in texture.
3. Histogram comparison
Histogram of gray image is a chart that
describes the distribution of gray level of an image.
The horizontal axis describes the values of gray
level, while the vertical axis describes the number of
pixels at a particular gray level.
Histogram comparison is an operation that
measures the similarity level between two
histograms. If a value of similarity is lower than an (b)
assumed threshold, then we can conclude that the Figure 2: (a) histogram of figure 1.c, (b)
histogram of Figure 1.d
two corresponding histograms are similar.
Defining the rate of gray level in image A as In Fig. 2, we can compare two histograms