An image processing apparatus acquires volume data including a negative voxel value and derived from a photoacoustic wave produced by irradiating a subject with light, generates compressed volume data by compressing the volume data to selectively reduce a data amount of voxel data having a voxel value whose absolute value is less than a threshold, and saves the compressed volume data.