Reflective image encoder. A reflective image encoder has an emitter such as one or more light emitting diodes, a diffuse reflective coder such as a code wheel or code strip reflecting a portion of the light from the emitter, an imaging lens forming an inverted image on to a detector. The reflective image encoder may include apertures on either or both sides of the imaging lens, and may include baffles to minimize stray light reaching the detector.