Apparatus for measuring a pattern in a surface of an object, comprising a plurality of pixel or sensor elements being responsive to a physical parameter of the object surface, and means for establishing an overall, segmented picture related to said pattern, and also comprising at least one diode functionally associated with each sensor element for contributing to one or more of the following functions: selectively addressing said sensor element activating said sensor element and sensing of said physical parameter.