Dynamic Positional Trees for Structural Image Analysis