Next: Experimental results
Up: Application: Camera path-planning in
Previous: Computing the shortest path Bd-geodesic
Path centering
The path found at figure
is visibly a good
approximation of the shortest path between the two points. It
follows the corners of the domain when it bends and it crosses
open spaces in straight lines. It does not present the jagged-ness
of Lengyel's paths.
On the other hand, it is not the optimal path for our virtual
endoscopy application. In colorful terms, the fly through behaves
too much like a formula one to be cosy for the passengers. That
is, the camera should follow a more centered path through the
bowels, while remaining smooth.
This behaviour can be obtained using a variant of the snake model
introduced by Kass et al. [89]. In this model, the
path is considered as a parameterized curve - or snake -
v(s) = (
x(s),y(s))T with
.
The snake evolves in order to
minimize an energy defined as
 |
(9.1) |
where w1 and w2 are smoothing terms and P(v) is the image
term. In segmentation application, P(v) is typically a
decreasing function of the image gradient, forcing the snake to
move towards the edges in the image.
Typically, equation (
) is solved by deriving an
evolution equation, then solving it numerically using finite
differences. Practically, it means iterating
where I is the identity matrix,
the chosen time step, A
the smoothness matrix corresponding to the w1 and w2 terms
and F(v) the image force derived from the potential energy
P(v).
Figure 9.4:
Left: Euclidean DT from the walls of the maze Right:
Centered path
 |
In order to center and smooth the path in figure
, we adapt the snake model as follows. First of
all, the image potential energy is used to drive the snake towards
the center of the bowel. To achieve this, we use a decreasing
function of the Euclidean distance from the edges of the domain,
illustrated at figure
. Also, the force deriving
from this potential only needs to applied perpendicularly to the
snake, because the parallel component would only modify the
sampling of the curve and not its location. Therefore, the image
force is defined as follows
with arrows omitted over v where its vectorial nature is not
important.
For the smoothing term, we use a simplified model. w2 is set to
0 so that only the first derivative is used. Then,
is approximated by
.
Although this is
potentially less stable than matrix inversion, experiments show
that the smoothness of the distance-based image energy is a
sufficient guarantee of stability. With this simplified model, the
snake iteration can be de-coupled into two sub-iterations
where v(i) is the discrete representation of the curve v.
In our experiments, the snake converges in a few iterations and
stabilizes itself very robustly. The resulting centered and
smoothed path is illustrated at figure
.
Next: Experimental results
Up: Application: Camera path-planning in
Previous: Computing the shortest path Bd-geodesic
Olivier Cuisenaire
1999-10-05