Registration for volumetric reconstruction in histological application