Disclosed is an image processing device equipped with an analyzing means that analyzes the edge structure of a peripheral region that includes the first pixel in an image; an intra-block weight determining means that determines the intra-block weight in accordance with the aforementioned edge structure; a difference calculating means for calculating the inter-block difference between a first block comprising the aforementioned first pixel and a second block comprising a plurality of second pixels that form the aforementioned image, by using the aforementioned intra-block weight; and a weighted averaging means that calculates the weighted average of the pixel values of the aforementioned plurality of second pixels using the weight corresponding to the aforementioned inter-block difference, and sets the value of said weighted averaged as the corrected pixel value for the aforementioned first pixel.