Convert each region of an image into a tree. E.g. a tracing of a hand into connected branches between fingers and wrist.