|
Algorithm 1 Motion vectors estimation, updating, and refinement. |
Require: Low-light Surveillance Video , Block Size , Padding Pixel , Overlap Pixel , Search Window Size , Vector Updating Number , Rationality Matrix , Reasonable Degree , and Small Search Window Size .
Ensure: The Final Vector and Rationality Matrix .
-
1:
Initialization: , , Zero Matrix , and
-
2:
for each do
-
3:
for each do
-
4:
for each do
-
5:
Get the areas , , and .
-
6:
Solve Equation ( 2) to get the vector .
-
7:
Repeat: Compute , using Equation ( 3).
-
8:
Update , using Equations ( 4) and ( 5).
-
9:
, and .
-
10:
While: or .
-
11:
Get the updated vector .
-
12:
Solve Equation ( 8) to get the best vector.
-
13:
.
-
14:
Update using Equation ( 5) for each vector.
-
15:
.
-
16:
end for
-
17:
end for
-
18:
end for
-
19:
return The final vector V and rationality matrix R;
|