A histogram is modified by using an adaptive system. Two different thresholds
are
set: a threshold of a number of pixels which can be changed, and another threshold
indicative of a total number of pixels which can be combined together. The thresholds
can be adaptively based on results of frame operations.