I realized while writing some tests that an image had a large distribution of near 0 for the histogram.
Here is a reference image:

This function doesn't seem to work for the near zero peaks, and will probably require some type of circular hue color detection to correct.