A digital image processing method for eliminating Moir in a digital image
divided into pixels holding pixel component values includes selecting a first pixel
and defining a pixel window around the selected first pixel. Then, a set of pixels
are identified which consist of pixels within the window that have pixel component
values within a pixel component value range that is related to the selected first
pixel. A pixel component value is calculated based on corresponding pixel component
values of pixels in the set of pixels and then this calculated pixel component
value is allocated to the selected first pixel.