1. A method for enhancing the resolution of a digital image captured by a capturing device comprising a sensor, the method comprising the steps of: receiving the digital image from the sensor; generating a white balanced image from the digital image; detecting an at least one edge on the white balanced image; and determining a weight for each of the at least one edge.