Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!news.cse.psu.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: conversion of 2D image into 3D image
Date: Tue, 22 Jan 2008 15:18:41 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 23
Message-ID: <fn51gh$8bs$1@canopus.cc.umanitoba.ca>
References: <fn4kf1$fnf$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1201015121 8572 192.70.172.160 (22 Jan 2008 15:18:41 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 22 Jan 2008 15:18:41 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:446980


In article <fn4kf1$fnf$1@fred.mathworks.com>,
Muhammad  <idrees_engineer@mathworks.com> wrote:
>I want to convert an image created in 2D into 3D.
>Is it possible?
>If yes then is there anybody to deveope a code for the 
>subject?

What do you mean by "convert an image created in 2D into 3D" ?
Expressed that way without further explanation, the solution is
simple: just assign 0 as the z coordinate for all of the points.

Do you mean that you want a scene analysis that figures out
what parts of the scene stick in or stick out, and by how much,
and create a 3D extrapolation of the scene from the visual cues
in the 2D image? If so, then as John indicates, it is not possible
in the general case, as there are 2D images that offer contradictory
visual cues and which thus cannot be extrapolated into 3D. If you
have an image taken of some "real life scene", then perspective is
still a problem. If you are trying to reconstruct a "real life scene"
then you usually want at least two images of the scene taken at
different locations, so that you can do stereotopic analysis.
-- 
   "Okay, buzzwords only. Two syllables, tops."  -- Laurie Anderson