1. An image processing apparatus that receives image data as first image data, applies edge enhancement to the first image data to obtain a second image data, and corrects a pixel value of a target pixel in the second image data, the image processing apparatus comprising: a target-area setting unit that sets, in the first image data, a target area around a pixel corresponding to the target pixel; an extracting unit that extracts a first pixel value of a first pixel in the target area and a second pixel value of a second pixel in the target area, the first pixel value being greater than the second pixel value; and a pixel-value correcting unit that corrects the pixel value of the target pixel based on at least one of the first and second pixel values extracted, when the pixel value of the target pixel is greater than the first pixel value or is smaller than the second pixel value.