compute the histogram (feature points by roi)