Identification and removal methods of edge artifacts in color images
HAN Xue
ZHOU Wu
CAI Tianyi
XU Xiqing
PEI Changrong
CAI Xiaoshu
Abstract:Objective Color images are typically processed using the Bayer pattern in the color filter array(CFA)during image acquisition.However,this approach often generates a band of artifact pixels around image edges,causing colors deviation from the actual objects.To address this issue,this paper proposes a method for identifying and removing edge artifact pixels in color images,thereby improving the accuracy of color representation for real-world objects and laying the foundation for future international standards. Methods A simulation program for generating color images was constructed in Matlab software.Opaque black simulated par-ticles were used as the research object to mimic the conversion process from raw(RAW)to RGB(red,green and blue channels)format images under the Bayer filter within the CFA.A color image acquisition setup was established to capture images of a dot calibration board,and the actual size and color of the black dots were calibrated to investigate the formation mechanism of edge artifacts in color images.A combined approach of simulations and experiments was adopted to examine the impact of 6 demosaic-ing interpolation algorithms and lens chromatic aberration on the number of artifact pixels in color images.To validate this method,red and blue polystyrene particles and yellow and white paracetamol-caffeine-artificial cow-bezoar-chlorphenamine maleate granules were used as application subjects.Color images of these particles were captured,and changes in color moments and chromaticity coordinates before and after artifact removal were analyzed.It demonstrated the method's applicability and universality across different particle types. Results and Discussion In simulated color images,the 6 demosaicing interpolation algorithms generated ftom 2 to 3 edge artifact pixels.The number of edge artifact pixels in the captured images of black dots exceeded 3.These 6 interpolation algorithms exhibited different degrees of influence on the mean,maximum,and modal values of color differences in the converted RGB color images.When 5 edge artifact pixels were removed,the standard deviations of the R,G,and B channel values in the black dot images all fell below 0.01,approaching background noise levels.The removal of artifact pixels effectively removed the arti-facts,and color fluctuations were minimized.Upon the removal of 5 edge artifact pixels,the first-order moments in the color moments of the particle images for both polystyrene and paracetamol-caffeine-artificial cow-bezoar-chlorphenamine maleate granules increased.However,the second and third-order moments decreased.The distribution area of particle pixels in the chromaticity coordinate diagrams was significantly reduced,and the clustering of coordinate points was enhanced.These results accurately reflected the true colors of the particles. Conclusion The edge artifact pixel identification and removal methods effectively reduce statistical color differences in color images.The overall luminance of particle images is closer to their true values,the color fluctuation is decreased,and the bal-ance of light and dark tones is achieved.The dual goals of color fidelity and morphological fidelity are achieved.
Keywords:color imageedge artifactinterpolation algorithmcolor differencecolor momentchromaticity coordinate
Publication Date:2026-03-01
Online Publishing Date:2026-05-22(First online date of this platform, not the publication date of the document)
Pages:16( 149-164 )
China Powder Science and Technology

China Powder Science and Technology

ISTICCSCD
ISSN:1008-5548
Year, Vol.(Issue):2026,32(2)