필터 지우기
필터 지우기

How to convert from 2D (RGB image) to 3D?

조회 수: 9 (최근 30일)
Chathu
Chathu 2016년 2월 28일
댓글: Chathu 2016년 2월 28일
I have a database of RGB, JPEG images where each image has a size of 1398 x 1611 x 3. Original images are in 2D. My intention is to build a 3D model from these images. Couple of questions came up to my mind while struggling with this issue:
1. I want to give the spacing to each slice.But how? (what i meant here is: to give the slice thickness(z direction),
calculate [real width of the image (mm)/image width (pixel)] (x direction),
[real height of the image (mm)/image height (pixel))] (y direction)
2. Then build a 3D model by stacking those 2D images. Does MatLab support 3D modeling? Atleast a 3D mesh would be fine.
Can anyone help me with this? I really appreciate any help.

채택된 답변

Image Analyst
Image Analyst 2016년 2월 28일
A color image is #D already. Two lateral dimensions and then the third dimension for the 3 different color planes. To make a stack of these, you'd need a 4D array.
MATLAB does not have great 3D volume visualization. You're pretty much limited to cutaway views and isosurfaces. To get true volume visualization you'd have to use a program like Avizo.
  댓글 수: 3
Image Analyst
Image Analyst 2016년 2월 28일
Yes, you can have a spatial calibration factor for any of the 3 spatial dimensions to convert indexes (voxels) into real world units such as cm or mm or whatever.
Chathu
Chathu 2016년 2월 28일
Thank you so much for your prompt response Image Analyst. Really appreciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scalar Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by