The invention provides a CLAHE
image enhancement optimization method and
system based on an FPGA and a medium. The method comprises the steps that firstly, an input image is divided into a plurality of
histogram sub-regions; on the basis of
histogram statistics of each sub-region, the histograms of the sub-regions are
cut, pixels exceeding a threshold value are redistributed according to a given
algorithm, and the histograms are corrected; mapping is carried out through CDF operation to obtain an equalized
gray level, and then gray stretching is carried out to generate a new gray mapping result; and finally, reading the mapping
gray level stored in the previous frame,
processing the gray value of the pixel point through combined operation of bilinear interpolation, completing
block effect elimination between the sub-regions, and outputting an image after local
contrast enhancement. According to the method provided by the invention, the
controllability of the overall brightness level of the image can be ensured on the basis of ensuring the enhancement effect of the
video image. And meanwhile, the method is realized on an FPGA platform, so that the
processing speed of
image enhancement is ensured, and the dual requirements on the
processing speed and quality can be met.