how to convert 2D image into 3D ??

조회 수: 76 (최근 30일)
maha mohy
maha mohy 2012년 3월 8일
댓글: Image Analyst 2021년 8월 19일
Hello everybody,my graduation project is about 3D mri visualization ,I want to convert 2D images into 3D ...could anyone help me plz
  댓글 수: 10
zee falcon
zee falcon 2016년 12월 27일
I also need help for 3d conversion of MRI images. Need code to convert it into 3d model. Kindly help me out.
Image Analyst
Image Analyst 2016년 12월 27일
Explain why cat() did not work for you.

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

채택된 답변

Image Analyst
Image Analyst 2012년 3월 8일
try cat(3,...)
image3D = cat(3, slice1, slice2, slice3, slice4, slice5);
You could put it into a loop
for slice = 1 : totalNumberOfSlices
thisSlice = GetSlice(); % Whatever you have to do to get one 2D image.
if slice == 1
image3D = thisSlice;
else
image3D = cat(3, image3D, thisSlice);
end
end
  댓글 수: 9
Stelios Fanourakis
Stelios Fanourakis 2018년 5월 7일
Undefined Function GetSlice()
Image Analyst
Image Analyst 2018년 5월 7일
Stelios, did you see the comment after it "% Whatever you have to do to get one 2D image."??? That means that you have to have some code to get the slice. You have to write it. I'm not writing it.

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

추가 답변 (2개)

Walter Roberson
Walter Roberson 2012년 3월 8일
The problem is not constructing the 3D array: the problem is displaying it. MATLAB does not have good voxel visualization routines. You could try http://www.mathworks.com/matlabcentral/fileexchange/3280-voxel
  댓글 수: 5
amine benhsina
amine benhsina 2021년 8월 18일
can you propose a best programming language to for 3D image construction,and could you provide us with some sources that can help us in this
thank you
Image Analyst
Image Analyst 2021년 8월 19일
Depends on what you mean by 3-D Image reconstruction. Usually instruments have this built-in. For example if you have a CT, MRI, or confocal instrument, those instruments have software to reconstruct the 3-D image.
If you want to do visualization on the reconstructed volume, we use Avizo:

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


zahoor mosad
zahoor mosad 2018년 11월 20일
please code in matlab convert 2D image to 3D

카테고리

Help CenterFile Exchange에서 Biomedical Imaging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by