An observation path setting unit sets an observation path. A viewpoint setting and changing unit sets a viewpoint on the observation path. When a virtual endoscopic image viewed from the viewpoint is generated, a visual range determination unit identifies, based on a three-dimensional medical image, the position of a wall region of the tubular structure in a local observation direction at the viewpoint that has been set by the viewpoint setting and changing unit and in the vicinity of the local observation direction. The visual range determination unit estimates, based on a positional relationship between the viewpoint and the wall region, a global observation direction at the viewpoint, and determines a visual range of the virtual endoscopic image in such a manner that image information about a region located in the global observation direction with respect to the viewpoint is represented at a central part of the virtual endoscopic image.