Changed histogram calculation to be evaluated over the entire range of segments, not just what is found in the current tile.