A New Registration and Dithering Algorithm for Multi-Target Colors of Color Image
To achieve fast color registration,and make the color error distribution after registration more uniform,the influence of color space on the registration speed and jitter effect of color image is analyzed through experiments.RGB is selected as color space.The al-gorithm of establishing the target color equidistant table library is proposed to map the source color and target color quickly.Based on the idea of Floyd-Steinberg algorithm,a new algorithm based on the reciprocal of distance is proposed.For odd and even rows,R,G and B errors are allocated to different four points.Based on the use of the two algorithms,the number of distance comparison and floating-point operation is greatly reduced,the speed of color registration is increased by about 15 times,the error distribution is more uniform,the loss of color is reduced,and the image quality is improved.By applying the proposed algorithm to the image display of 256 colors tou-ch screen,it is proved that the image display is smooth and the response speed is improved by more than one order of magnitude.