1. A medical image processing apparatus comprising: an image obtainment unit that obtains a three-dimensional image obtained by imaging a patient; a degree-of-interest setting unit that sets a relative degree of interest at each of a plurality of positions on a path connecting the plurality of positions in the three-dimensional image; a discrimination condition obtainment unit that obtains a discrimination condition for identifying, based on the set degree or degrees of interest, a virtual endoscopic image or images to be generated from the three-dimensional image; and an image generation unit that generates, based on the three-dimensional image, only the virtual endoscopic image or images identified based on the discrimination condition.