This application claims priority to Chinese Patent Application No. 201510920555.2, filed on Dec. 14, 2015, the contents of which are incorporated by reference herein.
The subject matter herein relates to a color image processing system and a color image processing method.
Color images are digitized before displayed on a displayer. Because different sensitivity of color channel, light factor and so on, the color image may be distorted.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series, and the like.
The image capture module 20 is configured to capture an original color image. The image digitizing module 30 is configured to digitize the original color image to obtain N pixels in ascending order according to value of RGB of the pixel. The optimizing ratio calculation module 40 is configured to calculate an optimizing ratio H=S1*H1+S2*H2+S3*H3. S1, S2 and S3 are ratios of areas of red color, green color and blue color from μ−3σ in their own gaussian distribution. H1, H2 and H3 are ratios of areas of red color, green color and blue color to a total area of the red color, green color and blue color.
The image processing module 50 is configure to multiply original value of RGB of the pixel before the ((N−N*H)/2)th pixel by 1/H to obtain new value of RGB of the pixel before the ((N−N*H)/2)th pixel and multiply original value of RGB of the pixel after the ((N+N*H)/2−1)th pixel by H to obtain new value of RGB of the pixel after the ((N+N*H)/2−1)th pixel. (N−N*H)/2 and (N+N*H)/2−1 are rounded to nearest integer.
The image processing module 50 is further configure to obtain new value of RGB F(C)=M*C+Y of the pixel from the ((N−N*H)/2)th pixel to the ((N+N*H)/2−1)th. C is original value of the pixel from the ((N−N*H)/2)th pixel to the ((N+N*H)/2−1)th. M and Y satisfy M*Vmin+Y=VN−N*H)/2 and M*Vmax+Y=V(N+N*H)/2−1.Vmin is the minimum value of the original value of RGB of N pixels. Vmax is the minimum value of the original value of RGB of N pixels. V(N−N*H)/2 is the value of the original value of RGB of ((N−N*H)/2)th pixel. V(N+N*H)/2−1 is the value of the original value of RGB of ((N+N*H)/2−1)th pixel.
At block 202, the image capture module 20 captures an original color image.
At block 204, the image digitizing module 30 digitizes the original color image to obtain N pixels in ascending order according to value of RGB of the pixel.
At block 206, the optimizing ratio calculation module 40 calculates an optimizing ratio H=S1*H1+S2*H2+S3*H3, wherein S1, S2 and S3 are ratios of areas of red color, green color and blue color from μ−3σ to μ+3σ in their own gaussian distribution, H1, H2 and H3 are ratios of areas of red color, green color and blue color to a total area of the red color, green color and blue color.
At block 208, the image processing module 50 multiplies original value of RGB of the pixel before the ((N−N*H)/2)th pixel by 1/H to obtain new value of RGB of the pixel before the ((N−N*H)/2)th pixel and multiplies original value of RGB of the pixel after the ((N+N*H)/2−1)th pixel by H to obtain new value of RGB of the pixel after the ((N+N*H)/2−1)th pixel, wherein (N−N*H)/2 and (N+N*H)/2−1 are rounded to nearest integer.
At block 210, the image processing module 50 obtains new value of RGB F(C)=M*C+Y of the pixel from the ((N−N*H)/2)th pixel to the ((N+N*H)/2−1)th, wherein C is original value of the pixel from the ((N−N*H)/2)th pixel to the ((N+N*H)/2−1)th, M and Y satisfy M*Vmax+Y=V(N−N*H)/2 and M*Vmax+Y=V(N+N*H)/2−1, Vmin is the minimum value of the original value of RGB of N pixels. Vmax is the minimum value of the original value of RGB of N pixels, V(N−N*H)/2 is the value of the original value of RGB of ((N−N*H)/2)th pixel, V(N+N*H)/2−1 is the value of the original value of RGB of ((N+N*H)/2−1)th pixel.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the details, including in matters of shape, size, and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201510920555.2 | Dec 2015 | CN | national |