A method for compensating dead pixels of an image, comprising: determining a plurality of predetermined directions across a dead pixel in image data; and estimating brightness changing trends at two sides of the dead pixel for each of said predetermined directions, and determining dead pixel brightness compensation values corresponding to the two sides of the dead pixel along each of said predetermined directions based on the estimated brightness changing trends; characterized in that the method further comprises: for each of said predetermined directions, determining a first difference, between the brightness changing trends at the two sides of the dead pixel along said predetermined direction, and a second difference, between the dead pixel brightness compensation values at the two sides of the dead pixel along said predetermined direction; for each of said predetermined directions, according to the first difference and the second difference obtained along said predetermined direction, correcting a weight obtained by applying a preset rule to the difference between the brightness of the dead pixel and the average of the two brightness compensation values for said predetermined direction, to determine a weighting factor for said predetermined direction; subjecting the average of the dead pixel brightness compensation values corresponding to the two sides of the dead pixel along each predetermined direction to a weighting calculation based on the respective weighting factors to obtain a compensation result for the dead pixel; and compensating the dead pixel. determining a plurality of predetermined directions across a dead pixel in image data; and estimating brightness changing trends at two sides of the dead pixel for each of said predetermined directions, and determining dead pixel brightness compensation values corresponding to the two sides of the dead pixel along each of said predetermined directions based on the estimated brightness changing trends; characterized in that the method further comprises: for each of said predetermined directions, determining a first difference, between the brightness changing trends at the two sides of the dead pixel along said predetermined direction, and a second difference, between the dead pixel brightness compensation values at the two sides of the dead pixel along said predetermined direction; for each of said predetermined directions, according to the first difference and the second difference obtained along said predetermined direction, correcting a weight obtained by applying a preset rule to the difference between the brightness of the dead pixel and the average of the two brightness compensation values for said predetermined direction, to determine a weighting factor for said predetermined direction; subjecting the average of the dead pixel brightness compensation values corresponding to the two sides of the dead pixel along each predetermined direction to a weighting calculation based on the respective weighting factors to obtain a compensation result for the dead pixel; and compensating the dead pixel. for each of said predetermined directions, determining a first difference, between the brightness changing trends at the two sides of the dead pixel along said predetermined direction, and a second difference, between the dead pixel brightness compensation values at the two sides of the dead pixel along said predetermined direction; for each of said predetermined directions, according to the first difference and the second difference obtained along said predetermined direction, correcting a weight obtained by applying a preset rule to the difference between the brightness of the dead pixel and the average of the two brightness compensation values for said predetermined direction, to determine a weighting factor for said predetermined direction; subjecting the average of the dead pixel brightness compensation values corresponding to the two sides of the dead pixel along each predetermined direction to a weighting calculation based on the respective weighting factors to obtain a compensation result for the dead pixel; and compensating the dead pixel.