A system (100) for generating a three-dimensional (3D) image from a two-dimensional (2D) image in an electronic device(108) is provided.The system includes a sensor(102) and a processor (104). The sensor receives2D image from a sender device(110) and generates a pixel matrix for the 2D image. The processor implement...