1. An image processing apparatus comprising: one or more processors and a memory configured to generate a prediction vector of a deviation vector representing deviation of a target block, wherein the target block is processing target in a depth image having depth information about parallax as a pixel value for each pixel of a color, with respect to another picture different from a picture of the target block, in accordance with a vector prediction method, wherein the vector prediction method is based on whether the target block is an occlusion block including an occlusion portion that does not include any corresponding point in the other picture; and generate a picture of a warped depth image by converting a picture of the depth image of a first viewpoint into an image obtained with a second viewpoint.