The invention provides an
image enhancement system and method and a medium. The
system comprises (N-1) row cache FIFO (First In First Out) which are connected in series, N row cache registers, a Demosaic module, a G component cache FIFO and a G component cache register. According to the invention, by reasonably controlling the read-write of the row cache FIFO and the register, at least five pixel points are output all the time under the condition that any number of pixel data is transmitted for each row of image data of each
clock, so that the calculation requirement of the Demosaic
algorithm is met. Under the condition of balancing and optimizing the
combinational logic series to be executed in each
clock period and the occupation of the total register, in the pipeline design of the Demosaic
algorithm, the finiteness of hardware internal resources and the
time sequence convergence problem of high
clock frequency are fully considered, and by combining the
combinational logic series optimization and the pipeline series optimization, the
time sequence convergence problem of the high clock frequency is fully solved. In this way, better occupation of various resources of the FPGA is achieved, and efficient calculation is achieved. Based on the calculation strategy provided by the invention, the
image enhancement process is finally realized, and the high-quality color display image is obtained.