A method for correcting colored fringe artifacts in a region of an image
around saturated pixels captured by an electronic imager associated with
a color filter array, includes providing a threshold map of the image
based on thresholding one or more color channels with a common or
separate threshold value for each color channel; providing a first edge
map by dilating the threshold map as a function of the color fringe
width, producing a first dilated threshold map and subtracting the
threshold map from the first dilated threshold map; and
color-desaturating image pixels that correspond to the first edge map.