In an image processing device which carries out processing for detecting
and correcting defective portions of an image, it is possible to
pre-emptively prevent the defective portion detecting and correcting
processing from causing a deterioration in image quality or an excessive
processing requiring time requirement. In cases in which a film type of a
photographic film on which the image is recorded is a film type known to
have a characteristic that an IR image is also formed at a time of image
exposure and recording, and in cases in which a density distribution
width of IR data is a predetermined value or more, defect
detection-correction processing is cancelled. Further, in cases in which
a non-image region is included in the image, either defect
detection-correction is carried out only on regions other than the
non-image region, or defective portion detection-correction is cancelled.