1. An image processing method comprising: capturing a raw image; and providing edge enhancements to increase edge detail of the captured raw image as part of a demosaicing process using a brightness map of the captured raw image, wherein the brightness map comprises luminance values extracted from the captured raw image, and the edge enhancement includes setting a color value of an edge pixel of a mask image to a color value of one of a plurality of neighboring pixel groups in a demosaiced raw image, the one neighboring pixel group having an average brightness value closest to a brightness value of the edge pixel.