Registration of two Drosophila brains. Template: blue/green, Sample: orange. A: Template superimposed with untransformed Sample. B: Global rigid transformation applied to the Sample. C: Result of rigid transformation: Sample transferred to Template coordinate system after rigid transformation (VIBcenterTransformation.hx). D: Local rigid transformation for 10 labeled neuropil regions (VIBlabelSurfaceTransformation). For each Material (al: antennal lobe, lob: lobula, lop: lobula plate, med: medulla, mb: mushroom body) the overlap with the corresponding Template Material is maximized without taking the other Materials into account. Thereby as many contradictory rigid transformations are generated as Materials are defined. E: VectorField of non-rigid transformation superimposed. F: non-rigid transformation applied to Sample (VIBdiffusion.hx). G: Result of non-rigid transformation: Template superimposed with transformed Sample. Surrounding boxes outline the data volumes and coordinate systems.