Brightness values of image frames are collected and counted to form a
brightness distribution. The brightness distribution of the image frames
is compared with predetermined brightness distributions. Brightness
values of all pixels of successive image frames are adjusted according to
a result of the comparison, so as to improve image contrast.