The present invention relates to digital image sensors and in particular to contour
filters (ZSB, 7) preventing green non-uniformity in the contour signal of
the RGB Bayer image sensors. A set of rules is specified for designing the filter
coefficients in the filter, whereby green non-uniformity is prevented.