A non-transitory computer readable medium that stores a program, wherein the program causes a computer to execute:
- an acquisition step of acquiring image data;
- a calculation step of calculating, for each unit region of the image data, a confidence that the unit region is an extraction subject, the confidence as the extraction subject being calculated for each unit region of the image data by inputting the image data into a trained model of a neural network that has been trained using images of an existing extraction subject or a region of interest as training data;
- a modification step of modifying a reference value of the confidence, which is used to extract the region of interest;
- an extraction step of extracting the region of interest on the basis of the calculated confidence of each unit region and the modified reference value;
- a display step of displaying the extracted region of interest;
- and
- an assessment step of calculating a surface area of the region of interest on the basis of inclination and variation in a depth direction of the subject, which are detected from the image data.