Reconstruction, localisation, and segmentation in medical images