In this example, there is a portion at which the brightness value is rapidly lowered, because the dust adhered to the collection position, and therefore there is a difference larger than the predetermined value E.When there is the difference larger than the predetermined value E between adjoining data for each predetermined interval of the shading correction data, as shown in FIG. 6(c), the first