A substantially semicylindrical lens having a lensing function, a
shading-correcting (reducing) function, and a predetermined-wavelength
transmitting function is formed on the upper surface of a device chip
including a sensor array, a CCD transfer register, a read-out gate, and
the like. The substantially semicylindrical lens is semicircular in cross
section along a second direction, and has a lens surface curved in a
first direction so that its diameter is larger at both ends in the first
direction than in the center in order to serve a function of correcting
the shading caused by the optical conditions outside the device. The
substantially semicylindrical lens is partially or entirely made of a
substance that is transmissive with respect to a signal having a
predetermined wavelength.