Fast color histogram calculation

what’s the best way to obtain the color histogram of an image/texture? i don’t see any functionality in ofxCv specifically for that – is it best to just loop over the pixels and do it manually? or is there a faster way?

I’d start by trying the cv function calcHist – seems to have alot of options: http://docs.opencv.org/modules/imgproc/doc/histograms.html

thanks @zach. i searched the forum for calcHist and found this discussion. i’ve made a basic addon.

1 Like