1. An information processing apparatus comprising: an input unit configured to input image data and information associated with the image data, wherein the image data is image data for deriving distance information and the information associated with the image data is information specifying a procedure for deriving distance information; a selection unit configured to select at least one from a plurality of procedures for deriving distance information on the basis of the information specifying a procedure; and a derivation unit configured to derive distance information from the image data using a procedure selected by the selection unit.