An optical imaging device according to the invention can be used for applications other than identification and access control, and in particular it may be used to control a cursor or other object, whether physical or otherwise, by analyzing the movement of the finger or of an inanimate object, such as a stylus, over the detection surface 11.