Patent ID: 8629921

Claim:
An image recording apparatus comprising: an image recording device configured to record an extended image file storing a plurality of pieces of image data and a distance image generated by using image data selected from the plurality of pieces of image data stored in the extended image file, and a basic file storing the distance image, the extended image file and the basic file being associated with each other; a determination device configured to determine whether or not the basic file has been deleted or modified; and a basic file recovery device configured to recover the basic file from the extended image file by using the distance image recorded in the extended image file if it is determined that the basic file has been deleted or modified, wherein the image recording device records the plurality of pieces of image data as a plurality of pieces of raw data in the extended image file and records basic file related information in the extended image file, the image recording device records, in the basic file, at least one piece of image data which is selected from the plurality of pieces of image data stored in the extended image file and is encoded into an encoding format specified by the basic file related information, and the basic file recovery device recovers said at least one piece of image data to be stored in the basic file by encoding at least one piece of raw data designated by the basic file related information, among the plurality of pieces of raw data stored in the extended image file, into the encoding format specified by the basic file related information.