The processor for an endoscope according to the present invention is configured so as to control a light source device for supplying illumination light for illuminating an imaging subject imaged by an endoscope provided with an insertion unit insertable into the body cavity of a subject, and the processor for an endoscope has: a halation detection unit for performing processing for detecting the state of occurrence of halation in an image of an imaging subject; a light modulation unit for performing an operation for adjusting the quantity of illumination light supplied from the light source device to the endoscope on the basis of the processing result obtained by processing by the halation detection unit; and a control unit for selecting and setting a single light modulation mode corresponding to the model of the endoscope classified on the basis of a difference in tip structure of the insertion unit, from among a plurality of light modulation modes defined by a combination of the processing performed by the halation detection unit and the action performed by the light modulation unit.Un processeur pour un endoscope selon la présente invention est configuré de façon à commander un dispositif de source de lumière pour fournir une lumière d'éclairage pour éclairer un sujet d'imagerie imagé par un endoscope pourvu d'une unité d'insertion pouvant être inséré dans la cavité corporelle d'un sujet, et le processeur pour un endoscope comporte : une unité de détection d'halation pour effectuer un traitement pour détecter l'état de survenue d'une halation dans une image d'un sujet d'imagerie ; une unité de modulation de lumière pour effectuer une opération pour ajuster la quantité de lumière d'éclairage fournie par le dispositif de source de lumière à l'endoscope sur la base du résultat de traitement obtenu par traitement par l'unité de détection d'halation ; et une unité de commande pour sélectionner et définir un mode de modulation de lumière unique correspondant au modèle