A determination unit makes a determination as to whether or not at least either one of at least a portion of an upper end vertebra and at least a portion of a lower end vertebra is included in a first medical image of a subject. If the determination is negative, an image obtaining unit obtains a second medical image that allows recognition of a label of the vertebra of the subject. A labeling unit aligns the first medical image with the second medical image and labels the vertebra included in the first medical image.