2.1 Dynamics
Assume that two balls with weight m are connected
by a rubber band with elasticity coefficient k. When
a ball is lifted up high enough that the other ball is
hung in the air, the resulting length of rubber band
(denoted by x) is proportional to the force gived on
the rubber band. We can formulate f=kx by Hook’s
law. Since the only force on the rubber band is the
weight of hanging ball, we can write f=mg where g
is the gravitational acceleration. So the length of
rubber band is x=mg/k (Halliday, 2008).
Let’s extend the situation to one where four balls
are connected as in Figure 2(a). In this situation, the
length of rubber band 3 is equal to mg/k. However
since two balls are hung from rubber band 2, the
length of rubber band 2 is 2mg/k. Similarly the
length of rubber band 1 is 3mg/k.
Let’s generalize the phenomenon. When n balls
are hung from a rubber band, the length of the
rubber band is nmg/k. Since m, g, k are constant,
let’s replace k/(mg) by τ. Now the length of rubber
band from which n balls are hung can be written by
Equation (1).
(1)
In Equation (1), τ is the parameter which controls
stiffness of the cloth. The larger the τ is, the stiffer
the cloth is. On the contrary, as τ becomes smaller,
the cloth becomes smooth and the final shape is
similar to the original signal. We call τ as stiffness
coefficient.
In order to define the cloth covering operation
over 1-dimensional signal, let’s change the situation
of Figure 2(a) to Figure 2(b). In the new situation,
four balls are not located on the same column but on
adjacent columns. Though physically the length of
rubber band should be calculated considering
vertical and horizontal forces, this paper considers
only the vertical direction for computational
simplicity. So Equation (1) can be applied to the
situation of Figure 2(b).
Figure 3 illustrates three primitive situations
which algorithm of the cloth covering should deal
with. Figure 3(a) is the case where the signal is
ground level. In this case, the cloth is on ground
level. Figure 3(b) is one where one side is ground
level and the other side is on top of supporting bar.
In this case, the cloth shape can be calculated using
Equation (1). Figure 3(c) shows the case where both
sides are on top of supporting bars. Since in this case
the cloth can’t be calculated simply by using
Equation (1), we divide the rubber band into two
parts. We assume that two parts are independent, i.e.,
they do not influence on the resulting shape each
other. We take the lowest ball as the point where the
rubber band is split into two parts. After splitting the
rubber band, Equation (1) can be applied to each of
two parts.
(a) Balls at the same column
(b) Balls at neighbor columns
Figure 2: Four balls hung from top.
(a) Ground level
(b) Ground level and
supporting bar
(c) Two supporting bars
Figure 3: Three primitive situations.
Now we will explain the procedure to find out
the lowest ball for the case of Figure 3(c). Let the
lowest point to be (x
c
,y
c
) and the coordinates of top
of supporting bars to be (x
1
,x
1
) and (x
2
,y
2
). Then the
height can be written as h
1
=y
1
-y
c
and h
2
=y
2
-y
c
. And
the width are w
1
=x
c
-x
1
and w
2
=x
2
-x
c
. The values of h
1
and h
2
can be calculated by summing Equation (1) as
shown in Equation (2).
,
(2)
Since the left and right parts are connected at the
lowest point, the equation, y
c
=y
1
-h
1
=y
2
-h
2
holds.
Rearranging the equation, we get Equation (3).
)1(2
)()(2
21
21
2
2
2
121
−−−
−−−−−
=
xx
xxxxyy
x
c
τ
(3)
2.2 Algorithm
In the situations of Figures 3, balls at the ends are
fixed on ground or on top of supporting bars. In
other words, we know two contact points where the
ball is contact with signal level. However, in the
nx
τ
1
=
∑
=
=
1
1
1
1
w
i
ih
τ
∑
=
=
2
1
2
1
w
i
ih
τ
ICPRAM 2012 - International Conference on Pattern Recognition Applications and Methods
296