source = imread('P3-in.jpg');
target = imread('P3-ref.jpg');

K = mycolortransfer(source, target);
imshow(K);
imwrite(K, 'skobov.colortransfer.jpg');
