Synthesis for image analysis across modalities