Adjust histogram of N-D image to match histogram of reference image - MATLAB
imhistmatchn