() ()
() ()
5
55 55151
11
5
11
,,
...
λλ
... ... ...
,,
...
n
TT
nn n n
nn
n
nn
yy
JdIIncJ E
fxy fxy
J
fxy fxy
σσ
×
×× ×××
×
×+×× = ×
⎡⎤
∂∂
⎢⎥
∂∂
⎢⎥
⎢⎥
=
⎢⎥
∂∂
⎢⎥
⎢⎥
∂∂
⎣⎦
(5)
With d
∈
N
+
, d ≠ 0 adjusted for each algorithm
iteration, E is the error matrix, J the Jacobian matrix
of f and Inc the vector of increments for the next
iteration.
The following initial estimation for the function
parameters have been used: λ=max(R
ij
), µx= 0,
µy=0, σx=2 and σy= 2.
The algorithm for updating d is shown in (6).
According to it, the Residual Sum of Squares (RSS)
is calculated from the error matrix (E), so that if the
RSS decreases, the d value is fixed to a constant near
to 0, so the algorithm gets close to the Gauss-Newton
one; in other instances, the d value increases so that
the algorithm behaves as a gradient descent method.
()
()
()
0
110
11
17
1
,2
,2
kkk
kkkk
de
k kMax d dMax FINISH
RSS RSS d d v
RSS RSS d d v v v
−+
−+
=−
⎧
−≥ > ⇒
⎪
⎪
<=−=
⎨
⎪
≥=×=×
⎪
⇒
⇒
∪
(6)
Where kMax and dMax can be adjusted by the user.
2.3 Vector Filtering
Once the displacement vectors have been calculated,
a vector processing algorithm has been used to
replace the anomalous vectors and to obtain a soft
vector field. This is done in two steps:
1. First, the root mean square (RMS) of the
neighbors of each vector is calculated. If the
difference of this value with the estimated one is
greater than a threshold set by the user, the vector is
replaced by the RMS.
2. Finally, the vector field is smoothed with a
bidimensional Gaussian filter. The default filter uses
a 3x3 sized window.
2.4 Deformation of the Blocks
It should be noted that, if non-rigid displacements are
considered the assumption expressed in (2) is
generally false because neither rotation nor second
order effects are included in the model.
Generally, it can be assumed that if the regions or
blocks are small enough, then the second order
effects may be disregarded and strains can be
calculated from the locally linear displacements in
every region.
If deformations are considered, the objects in the
scene start in an initial non-deformed stage and
develop to a final deformed one. The same principle
can be applied to blocks. They start with a regular
rectangular shape and, using the information from the
measured displacement, the shape of the block can be
changed according to the deformations of the body in
the scene.
Thus, using the vector field obtained in the
previous iteration or from a previous frame of the
scene, a dense displacement field is obtained by
interpolating the motion vectors.
The dense field can be used to obtain the new
positions of the pixels in the block and with this
information a second interpolation step can be used
to obtain the deformed block.
The deformed block is used to improve the
measurement from the previous iteration or to predict
the shape of the surface in the next frame.
In the presented work, bilinear and bicubic B-
spline interpolation methods were used to interpolate
the displacement field and the data of the block
respectively.
3 EXPERIMENTAL RESULTS
3.1 Synthetic Images
The first assay was performed with synthetic images.
In this experiment, the Yosemite synthetic sequence
was used. This is a standard test for benchmarking
optical flow algorithms. It was created by Lynn
Quam (Heeger, 1987) and it was widely studied in
different works (Austvoll, 2005).
Besides, this sequence is one of the best to
perform a evaluation of a Block-Matching algorithm,
since it contains a single surface with a complex
motion, which is the kind of motion where the use
Block-Matching technique makes sense.
This experiment was performed analyzing the
motion between consecutive frames, calculating the
statistics of error according to the true ground data
and using the metrics and methodologies published
in (Scharstein et al. 2007). According to this, the
error was calculated using the dense displacement
field except a border region with a size of 10 pixels
(7).
The obtained results were calculated using non
overlapped blocks of 15x15 pixels and 5 iterations.
An example of obtained results is shown in Fig.2.
ANALYSIS OF DEFORMATION PROCESSES USING BLOCK-MATCHING TECHNIQUES
329