Multiresolution image registration based on tree data structures