These comments would read much better next to the code they describe and without the labels. For example:

```
# Weight pixel contribution based on geometric distance.
geometric_dst = ...
# Weight pixel contribution based on distance from boundary.
levelset_dst = ...
# Dot product of displacement and gradient vectors.
direction = ...
```