title: Histogram matching of two Images without using histeq
body: <p>It is well known that <code>histeq</code> in MATLAB can perform histogram matching so that an image's histogram is transformed to look like another histogram.  I am trying to perform this same operation without using <code>histeq</code>.  I'm aware that you need to calculate the CDFs between the two images, but I'm not sure what to do next.  What do I do?</p>