how can I convert 2d images to a 3d image?

29 ビュー (過去 30 日間)
sara
sara 2014 年 9 月 14 日
編集済み: Walter Roberson 2022 年 1 月 24 日
I have a CT scan file with 51 slices...how can I make a 3d image with this 51 slices?
Is there any toolbox in matlab for this?
I attached this file.
  7 件のコメント
sara
sara 2014 年 9 月 15 日
fourth
Walter Roberson
Walter Roberson 2015 年 10 月 14 日
The 4th did not get attached.

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

採用された回答

Image Analyst
Image Analyst 2014 年 9 月 14 日
You can use cat()
image3d = cat(3, slice1, slice2, slice3, slice4);
or in a loop where you read in each slice
array3d = zeros(rows, columns, numberOfSlices);
for slice = 1 : numberOfSlices
filename = spritnf('image #%d', slice);
fullFileName = fullfile(folder, filename);
if exist(fullFileName, 'file)
thisSlice = imread(fullFileName);
array3d(:,:,slice) = thisSlice;
end
end
or if you don't know the number of slices in advance,
thisSlice = imread(filename);
if slice == 1
array3d = thisSlice
else
array3d = cat(3, array3d, thisSlice);
end
  24 件のコメント
Patil Ravindra kyung hee university
thank you for help,i tried 'nearest ' the error is solve but it still staging all images.
it just rotate iamge but all images are stagging on each other.
my images are like a tomography images. in tomography we take images in diffrent angle and combine them to create 3D volume. like shown in below video.
"https://youtu.be/1gottjkU6Jc"
again thank you for help these are great help to me in my work.
Image Analyst
Image Analyst 2021 年 9 月 9 日
編集済み: Walter Roberson 2022 年 1 月 24 日
Patil, if you've studied medical reconstruction you know a reconstructed image is not merely the sum of rotates images. You have to extrude or "back project" the images before you add them. You are not doing that part so you will not get a reconstruction. Sorry, but writing a 3-D reconstruction algorithm is way beyond what I can offer you. There are people who's whole full time job is working on those kinds of algorithms.

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

その他の回答 (1 件)

Rekha Nair
Rekha Nair 2015 年 10 月 14 日
how can i create a 3d image by using one Plane image(X and Y cordinates) and an oblique view of the same image.
  4 件のコメント
Bars Igor
Bars Igor 2017 年 9 月 19 日
if possible, share the code sergei.zobachev@lacit.net
Image Analyst
Image Analyst 2017 年 9 月 19 日
If there are shadows, you have a chance. See this overview of "shape from shading" http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.7754&rep=rep1&type=pdf
Also see papers here: Vision Bibliography

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

Community Treasure Hunt

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

Start Hunting!

Translated by