|
Algorithm 1 Keyframe Extraction Algorithm |
-
1:
procedureKeyframesExtraction()
-
2:
inputs: , given input sequence of frames
-
3:
persistent: n, total number of frames
k, total number of nearest neighbors
, retrieved nearest neighbors
, distances computed for each nearest neighbor
, candidate keyframes
, final selected keyframes
t, threshold value
-
4:
-
5:
-
6:
while
do
-
7:
-
8:
-
9:
-
10:
while
do
-
11:
if
then
-
12:
-
13:
-
14:
end if
-
15:
end while
-
16:
-
17:
-
18:
-
19:
-
20:
end while
-
21:
end procedure
|