The article proposes a method for measuring discomfort glare which uses numerical description of the phenomenon in the form of a digital luminance distribution map recorded on a CCD array. Essential procedures for determining partial quantities which are necessary for calculation of UGR index are discussed in detail, along with techniques for measuring position index and size of light sources, with regard to the parameters of the registering system and coordinates of the images of the sources on the array.