opencv drawing a 2d histogram
问题 I'm wondering how to plot a 2d histogram of an HSV Mat in opencv c++. My current code attempting to display it fails miserably. I've looked around on how to plot histograms and all the ones I've found were those plotting them as independent 1d histograms. Here's my current output with the number of hue bins being 30 and saturation bins being 32: Here's another output with the number of hue bins being 7 and saturaation bins being 5: I would like it to look more like the result here http://docs