from skimage.exposure import match_histograms harmonized = match_histograms( image_from_hospital_b, reference_from_hospital_a )