"Muhammad Idrees" <idrees_engineer@mathworks.com> wrote in
message <flklnn$94v$1@fred.mathworks.com>...
> Hello all matlab users
>
> I am working on image processing tool of matlab
>
> I need an algorithm written in matlab to convert the 2D
> image into 3D image.
>
> Is there any body to help me.
There is some confusion about 2D and 3D image. Indexed image and gray scale image may be taken as 2D image and rgb image may be taken as 3D image, regarding the data matrix representing those images. This interpretation may be different from the viewing point of view. To convert a 2D view to 3D view, we need to mapped using the orthogonal projection at proper viewing angle. Here viewing angle plays a very important role.
"Muhammad Idrees" <idrees_engineer@mathworks.com> wrote in
message <flklnn$94v$1@fred.mathworks.com>...
> Hello all matlab users
>
> I am working on image processing tool of matlab
>
> I need an algorithm written in matlab to convert the 2D
> image into 3D image.
>
> Is there any body to help me.
Hi, did you try with surf or mesh?
For example,
x = imread('foo.bmp');% its 2D image
xx = double(x);
y = imagesc(xx)% gives 2D image
z = mesh(xx)% gives the pixel values as 3rd dimension.
Enjoy it
Acharya
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.