How to extract Depth from a given 2d image?

I just wanted to implement that paper with some modifications.My overall project is regarding 3d modelling..2d image needs to be converted to a 3d image using KNN search..But for that the initial step is to find out the dpeth of a 2d image..We are not using any data sets but for our project,we wanted to take some of the indian heritage sites images as an input and work on that to be converted to 3D image... we wanted to use knn searh by taking more than 3 neighbouring pixels.. Can i please get some suggestions on how to work on it. can i get the matlab code for finding depth of an image and for KNN? Thanking you in advance.

1 Comment

I too want an answer for the same question, it's my project also.Please help to give the solution

Sign in to comment.

Answers (1)

I'm not going to program up the whole paper for you. The best I can do is to offer up a demo of KNN that I have. See attached and adapt as needed.

Asked:

on 8 Dec 2017

Answered:

on 16 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!