You can combine results of offset tracking if you manage to express the directions at each pixel as vectors: