An image processing filter for correcting a pixel value of an image includes aflatness calculation unit 40 for calculating a flatness of distribution of pixel values of surrounding pixels positioned on the periphery of a target pixel to be filtered.
An image processing filter for correcting a pixel value of an image includes a flatness calculation unit 40 for calculating a flatness of distribution of pixel values of surrounding pixels positioned on the periphery of a target pixel to be filtered, and a pixel value composition unit 50 for blending the pixel value of the target pixel and the pixel value of the surrounding pixels, on the basis of a blend ratio corresponding to the flatness calculated by the flatness calculation unit 40, and generating a composite pixel value by combining the pixel value of the target pixel and the pixel value of the surrounding pixels.