convert "single" 2D image to 3D volume

3 ビュー (過去 30 日間)
sana3 sal
sana3 sal 2019 年 7 月 28 日
コメント済み: Sushmitha Kudari 2020 年 4 月 21 日
Hello there,
I have a single 2D image and I want to convert it to a 3D volume of faces and vertices.
Then exprot it to use it in another rendering software.. ex. unity, real engine.
How this can be solved?
an example image is attached.
  3 件のコメント
sana3 sal
sana3 sal 2019 年 7 月 28 日
a = imread('cell.jpg');
imshow(a);
b = rgb2gray(a);
b = im2double(b);
imshow(b);
shading interp
colormap(hot)
FV=mesh(b);
This is what i did so far, i plot it as a mesh.
Now, how to convert this surface mesh to a patch of faces and vertices?
Rik
Rik 2019 年 7 月 28 日
It's going to be very difficult to get a 3D model. The most you're going to get with basic native Matlab tools is a flat mesh for each color.
You need a method to determine depth. You can start in the field of computer vision. The question you're asking is large enough to be a masters project, if not larger. It might be easy for a human to estimate a 3D shape from a 2D image, but for computers it is a complex task.
I know just enough of this field to tell you that you will have a lot of work to do, and I will not be able to help you with this.

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2019 年 7 月 28 日
Suppose you have a picture from directly above the object, and all you see a black square. Is the object:
  • A table with four legs in the corners but open space between the legs?
  • A desk with one wall open but the other three solid walls?
  • An overturned trash can with four solid walls but a hollow interior?
  • A solid cube of material with no open space below the square?
To me each of those seem consistent with the one picture you have. Without more information you can't distinguish those four.
  5 件のコメント
sana3 sal
sana3 sal 2019 年 7 月 29 日
Please consider that i have passed the issue of generating the 3d model from the 2d image and this is the results:
Capture.PNG
this is a surface generated with "mesh" function, now i have to convert it to a triangulated mesh, that has face-vertex data structure.
if you have an answer please insight me, but i am not posting this question to discuss the possibility of my work!
Sushmitha Kudari
Sushmitha Kudari 2020 年 4 月 21 日
Can you please share how you were able to genereate this image from a 2D image

サインインしてコメントする。

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by