The invention relates to a method of recording an image of an object (103)
using an electronic camera (102), one or more light sources (104), and
means for light distribution (105), where light emitted from the light
sources (104) is distributed to illuminate the object (103), light being
reflected to the camera (102). In the light distribution, an integrating
cavity (106) is used to whose inner side (107) a light reflecting coating
has been applied, and which is provided with first and second openings
(109, 110). The camera (102) is placed in alignment with the first
opening (109) so that the optical axis of the camera extends through the
first and second openings (109, 110). The object (103) is received in the
second opening (110), and the interior of the integrating cavity is
illuminated using the one or more light sources (104). The invention also
relates to an apparatus for performing the method.