1. A time of flight (TOF) phase-shift type ranging system comprising: a source of optical energy for emitting optical energy toward a target object a distance Z away; one or more optical elements for receiving reflected optical energy including reflections of the optical energy emitted from the source and the one or more optical elements for receiving reflected optical energy including a lens with an anti-reflective coating; an array of pixel sensors in an optical path with the lens with the anti-reflective coating for detecting the reflected optical energy and outputting detection signals, the array of pixel sensors having a surface having reflective regions covered with a non-reflective coating, the non-reflective coating surrounding windows for regions for passing the reflected optical energy from the lens to the pixel sensors; and a software controlled processor for determining Z distance measurements based on the detection signals of the array of pixel sensors.