Patent ID: 8888685

Claim:
A medical system comprising: an endoscope including an insertion portion that can be inserted into a body cavity of a subject, an image pickup section provided at a distal end portion of the insertion portion, an objective window provided at the distal end portion and that allows an image of an object that is picked up by the image pickup section to enter the endoscope, and an illumination window provided at the distal end portion and that allows illuminating light for illuminating the subject to exit the endoscope; an exclusion section configured to, when the insertion portion is inserted into the body cavity of the subject, exclude a tissue existing around the distal end portion; a computing section that obtains an average value of luminance values of respective pixels of the image picked up by the image pickup section, and determines whether or not the obtained average value of the luminance values falls within a predetermined range that is specified between (i) luminance information in a case where halation is caused by the illuminating light reflected by a tissue in the body cavity and (ii) luminance information in a case where the objective window and the tissue are in direct contact with each other; and a drive section that, if the computing section obtains a determination result that the average value of the luminance values does not fall within the predetermined range, continues an operation to drive the exclusion section, and if the computing section obtains a determination result that the average value of the luminance values falls within the predetermined range, stops the operation to drive the exclusion section.