I want to segment images (from magazines) in text and image parts. I have several histograms for several ROIs in my picture. I use opencv with python (cv2).
I want to re
You can use a simple correlation metric.
make sure that the histogram you compute and your reference are normalized (ie represent probapilities)
for each histogram compute (given that myRef and myHist are numpy arrays):
metric = (myRef * myHist).sum()
this metric is a measure of how much the histogram looks like your reference.