1. A method of correcting a defective pixel of a digital image, comprising: pre-correcting the defective pixel; calculating similarities between a plurality of normal pixels and the defective pixel; calculating weights of the plurality of normal pixels to the defective pixel based on the similarities between the plurality of normal pixels and the defective pixel; and normalizing the weights and adopting a weighted sum of values of the normal pixels according to the normalized weights as a corrected value of the defective pixel.