Redirecting you to https://www.mathworks.com/matlabcentral/fileexchange/61928-rgb-histogram-matching