Histogram based foliage estimation