Defining the costs
Treat the image as a graph
Want to hug image edges:
how to define cost of a link?
p
q
c
•
the link should follow the edge
•
this means the gradient
at
p
is nearly perpendicular to the
link direction,
–
option 1:
c
=
–
option 2:
c
»
- |derivative of intensity across link|
–
other options (see reading)
for project 1