When coupling and synthesizing images, the degree of correlation indicating the degree of a gap between the images in an area near the boundary of a common area is calculated. On the basis of the degree of correlation, it is decided to increase a superimposed area when the gap among the images is large and to decrease the superimposed area when the gap is small on the contrary. Accordingly, unnatural fractures occurring at the boundary of coupling can be inconspicuous.