1. An image inpainting method comprising: detecting an edge on the basis of a difference between depth values of pixels in a first image seen from a first viewpoint; and inpainting depth values of pixels in an occlusion region that is shown in a second image seen from a second viewpoint but not shown in the first image, in a direction from pixels in a region having high depth values among regions forming the edge to pixels in a region having low depth values.