Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: conversion of 2D image into 3D image

Subject: conversion of 2D image into 3D image

From: Muhammad

Date: 22 Jan, 2008 11:36:01

Message: 1 of 8

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?

Subject: Re: conversion of 2D image into 3D image

From: Yumnam Kirani Singh

Date: 22 Jan, 2008 12:10:12

Message: 2 of 8

May be possible, but not so easy. You have to write your own function for your program.

Subject: Re: conversion of 2D image into 3D image

From: John D'Errico

Date: 22 Jan, 2008 12:54:02

Message: 3 of 8

Yumnam Kirani Singh <kirani.singh@gmail.com> wrote in message
<1634704.1201003842882.JavaMail.jakarta@nitrogen.mathforum.org>...
> May be possible, but not so easy. You have to write your own function for
your program.

NOT possible in general.

John

Subject: Re: conversion of 2D image into 3D image

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 22 Jan, 2008 15:11:38

Message: 4 of 8

In article <fn4p1a$d9h$1@fred.mathworks.com>,
John D'Errico <woodchips@rochester.rr.com> wrote:
>Yumnam Kirani Singh <kirani.singh@gmail.com> wrote in message
><1634704.1201003842882.JavaMail.jakarta@nitrogen.mathforum.org>...
>> May be possible, but not so easy. You have to write your own function for
>your program.

>NOT possible in general.

I would guess, John, that you are referring to difficulties such
as the "Impossible Cube" ?
http://en.wikipedia.org/wiki/Necker_cube#Ambiguity
--
We regret to announce that sub-millibarn resolution bio-hyperdimensional
plasmatic space polyimaging has been delayed until the release
of Windows Vista SP2.

Subject: Re: conversion of 2D image into 3D image

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 22 Jan, 2008 15:18:41

Message: 5 of 8

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

Subject: Re: conversion of 2D image into 3D image

From: Benjamin

Date: 22 Jan, 2008 16:14:02

Message: 6 of 8

It is possible if you take the 2D picture with at least two
cameras from two angles. Using epipolar geometry and stereo
computer vision techniques you can reconstruct the 3d
scene. There are various toolboxes for matlab available for
download that can help with this.

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fn51gh$8bs$1@canopus.cc.umanitoba.ca>...
> 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

Subject: Re: conversion of 2D image into 3D image

From: Vihang Patil

Date: 23 Jan, 2008 06:16:13

Message: 7 of 8

"Muhammad " <idrees_engineer@mathworks.com> wrote in message
<fn4kf1$fnf$1@fred.mathworks.com>...
> 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?
>
doc surf.
It will not always give you exact 3D, but playing with some
images, you will know what it does.
And are you refering to 2D image or images?? If you have a
stack of images its much more easier to do.
HTH
Vihang

Subject: Re: conversion of 2D image into 3D image

From: Vihang Patil

Date: 24 Jan, 2008 18:43:02

Message: 8 of 8

"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
<fn6m3d$c0n$1@fred.mathworks.com>...
> "Muhammad " <idrees_engineer@mathworks.com> wrote in message
> <fn4kf1$fnf$1@fred.mathworks.com>...
> > 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?
> >
> doc surf.
> It will not always give you exact 3D, but playing with some
> images, you will know what it does.
> And are you refering to 2D image or images?? If you have a
> stack of images its much more easier to do.
> HTH
> Vihang

Try this to start with;

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4927&objectType=FILE

or

http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/visualize/f0-18164.html&http://www.google.co.in/search?hl=en&q=surface+visualization+matlab&btnG=Search&meta=

Vihang

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics