1. An electronic device comprising: a single-photon avalanche diode (SPAD) array and a readout circuitry coupled thereto and configured to generate, by the readout circuitry, a first depth map having a first resolution, with the first depth map corresponding to a plurality of distance observations to an object, and generate, by the readout circuitry, a signal count map having a second resolution greater than the first resolution, with the signal count map corresponding to a plurality of intensity observation sets of the object, with each intensity observation set comprising a plurality of intensity observations corresponding to a respective distance observation in the first depth map; and an upscaling processor coupled to said readout circuitry and configured to calculate, by the upscaling processor, a plurality of upscaling factors using an upscaling algorithm for each intensity observation set so that each distance observation has a respective plurality of upscaling factors associated therewith, and upscale, by the upscaling processor, the first depth map from the first resolution to the second resolution based on the respective plurality of upscaling factors, thereby producing a second depth map having the second resolution.