A curved slice is obtained from a three-dimensional tomographic image of an object based on a reference position in the three-dimensional tomographic image. A two-dimensional tomographic image corresponding to the curved slice is generated from the three-dimensional tomographic image.