An electronic apparatus comprising: an input unit that inputs image data generated by an image capturing unit that has: first imaging regions (32, 811) that capture an image under a first imaging condition and that each include a plurality of pixels adjacent to one another, and second imaging regions (32, 812, 813, 814) that capture an image under a second imaging condition different from the first imaging condition and that each include a plurality of pixels adjacent to one another, the first imaging regions and the second imaging regions being alternately arranged in a first direction and in a second direction intersecting the first direction so as to form an array of image data, wherein the imaging condition of each of the first and second imaging regions is settable so that they differ between the first and second imaging regions; and a recording control unit that changes the array of image data so as to aggregate first image data generated by the first imaging regions and records the aggregated first image data in a first image file, and changes the array of image data so as to aggregate second image data (642, 643, 644) generated by the second imaging regions (812, 813, 814) and records the aggregated second image data (642, 643, 644) in the first image file or a second image file, wherein the recording control unit changes an array of imaging conditions of the first and second imaging regions in the same manner as the array of image data is changed, and records the aggregated first imaging condition with the aggregated first image data in the first file, and records the aggregated second imaging conditions with the aggregated second image data in the first image file or in the second image file. an input unit that inputs image data generated by an image capturing unit that has: first imaging regions (32, 811) that capture an image under a first imaging condition and that each include a plurality of pixels adjacent to one another, and second imaging regions (32, 812, 813, 814) that capture an image under a second imaging condition different from the first imaging condition and that each include a plurality of pixels adjacent to one another, the first imaging regions and the second imaging regions being alternately arranged in a first direction and in a second direction intersecting the first direction so as to form an array of image data, wherein the imaging condition of each of the first and second imaging regions is settable so that they differ between the first and second imaging regions; and first imaging regions (32, 811) that capture an image under a first imaging condition and that each include a plurality of pixels adjacent to one another, and second imaging regions (32, 812, 813, 814) that capture an image under a second imaging condition different from the first imaging condition and that each include a plurality of pixels adjacent to one another, the first imaging regions and the second imaging regions being alternately arranged in a first direction and in a second direction intersecting the first direction so as to form an array of image data, wherein the imaging condition of each of the first and second imaging regions is settable so that they differ between the first and second imaging regions; and a recording control unit that changes the array of image data so as to aggregate first image data generated by the first imaging regions and records the aggregated first image data in a first image file, and changes the array of image data so as to aggregate second image data (642, 643, 644) generated by the second imaging regions (812, 813, 814) and records the aggregated second image data (642, 643, 644) in the first image file or a second image file, wherein the recording control unit changes an array of imaging conditions of the first and second imaging regions in the same manner as the array of image data is changed, and records the aggregated first imaging condition with the aggregated first image data in the first file, and records the aggregated second imaging conditions with the aggregated second image data in the first image file or in the second image file.