A non-transitory computer-readable storage medium that stores a structure separating program causing a computer to execute generating a separated image in which a plurality of structures are separated, from an image including the plurality of structures, the program causing the computer to execute:
- receiving an input of an image pair that includes a target image relating to at least a part of the plurality of structures and a non-separation image not including the structure, to output a separation image in which one of the structures is extracted from the target image;
- receiving an input of a new image pair including the target image and the separation image, to output a new separation image in which another one of the structures is extracted from the target image;
- and
- repeating the reception of the input of the new image pair including the target image and the new separation image and the output of a new separation image in which another one of the structures is extracted from the target image, to generate the separated image in which the plurality of structures included in the target image are separated.