Patent ID: 7623705

Claim:
An image processing program stored in a tangible computer-readable medium that is executed by a processor after performing color interpolation processing on image data, the image processing program comprising: converting the image data on which the color interpolation processing has been performed to a luminance signal and a color-difference signal; and executing false color reduction processing on the color-difference signal, wherein the false color reduction processing includes: selecting plural pixels including a target pixel by a two-dimensional filter that includes M one-dimensional filters, each for selecting N pixels that are continuous in a first direction, the M one-dimensional filters being arrayed in a direction orthogonal to the first direction, wherein M is greater than or equal to 3 and N is greater than or equal to 4; separately for each of the M one-dimensional filters, identifying a first pixel of the selected N pixels having a maximum value and a second pixel of the selected N pixels having a minimum value; removing the first and second pixels from the selected N pixels calculating an average value from remaining ones of the selected N pixels; and determining a pixel value of the target pixel based on an average of the average values of the M one-dimensional filters.