Search This Blog

MATLAB Program to convert 2D image to 3D image

MATLAB Programming for image conversion step by step

Why 2D to 3D image conversion is needed ???

  • 3D displays provide a dramatic improvement of visual quality than the 2D displays.
  • For existed 2D contents, depth information is not recorded.
  • The idea of developing such a technique is to eliminate the dependency of images 

Deals with applying spatial transformation on the image. The entire process is divided into 4 stages:-

Stage I – Perspective Projection/Projection of the image:

It involves projecting out the grid points on the image. For projecting out these points, the system involves the technique of projective translation.

Stage II – Frame Structuring of projective image:

It involves structuring the frame of the image. It involves setting up of the angular projection of the image by means of setting the coordinates of the projective image referring to the initial coordinates. The angle of projection determines the depth of field of the 3D image. 

Stage III – Transparency Adjustment:

It involves varying the transparency level of the frame structured projective image with respect to standard opacity. The system selects the transparency value such that there is no pixel desensitisation and no motion tearing such that quality of the image is restored.

Stage IV – Positional Coordination / Overlaying:

The image contains two same coordinates so that the depth of vision remains fixed and doesn‘t account for distortion of image.



The most important application is that it requires only SINGLE INPUT unlike other systems which needs 2 images by default.

It doesn’t require polarized glasses. The striking feature of this system is that though there is no polarisation of image involved, the 3D image can be seen through the MATLAB GUI directly.

Due to optimisation, there is not motion tearing and pixel desensitisation. Thus no vision blurring.

There is no parallax error seen while viewing the converted image.

It eradicates the use of two sources to capture an image.



  1. This comment has been removed by the author.

  2. Very interesting! I need ur testing images to test ....if u r ok, pls send it via mail....

  3. Hi,
    I'm having some typos when trying to repeat the code for myself from the video. Could you please make the .M file available for download?

    1. You have to mail us..

  4. This comment has been removed by the author.

  5. Hi, please can I get a program that can serve as a master's project thesis. I am a master's student in highway and transportation engineering.

    1. Please mail us your requirements

  6. I think that it's very interesting your code and I really need it but I can't find the link to download it. Please, could you send me by email??


  7. jsg28 November 2018 at 00:10
    I think that it's very interesting your code and I really need it but I can't find the link to download it. Please, could you send me by email??

  8. Can you please let us know how to download the code. I could not find it on the blog. kindly email it to me at

  9. Can you also send me the code

  10. Me email id is

  11. Me email id is

  12. Pouvez-vous m'envoyer le code. mon e-mail est

  13. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. images data entry