I have computed a histogram with cv::calcHist, and I want the histogram to sum to 100. In the old OpenCV API, you could use cvNormalizeHist(histogram, 100);. How do you do this in the new C++ API?
I have computed a histogram with cv::calcHist , and I want the histogram to
Share
It looks like you want
cv::normalize(), specifically the overload taking aMatNDsince that’s whatcv::calcHist()outputs.