Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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 9

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: conversion of 2D image into 3D image

From: Yumnam Kirani Singh

Date: 22 Jan, 2008 12:10:12

Message: 2 of 9

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

Subject: conversion of 2D image into 3D image

From: John D'Errico

Date: 22 Jan, 2008 12:54:02

Message: 3 of 9

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: 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 9

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: 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 9

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: conversion of 2D image into 3D image

From: Benjamin

Date: 22 Jan, 2008 16:14:02

Message: 6 of 9

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: conversion of 2D image into 3D image

From: Vihang Patil

Date: 23 Jan, 2008 06:16:13

Message: 7 of 9

"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: conversion of 2D image into 3D image

From: Vihang Patil

Date: 24 Jan, 2008 18:43:02

Message: 8 of 9

"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

Subject: conversion of 2D image into 3D image

From: walid arab

Date: 15 Sep, 2009 23:30:21

Message: 9 of 9

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.

Tags for this Thread

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.

Contact us