How to make 3D model from 2D CAT Slices?
Ältere Kommentare anzeigen
myFolder = uigetdir();
filePattern = fullfile(myFolder, '*.jpg');
theFiles = dir(filePattern);
for k = 1 : length(theFiles)
baseFileName = theFiles(k).name;
fullFileName = fullfile(theFiles(k).folder, baseFileName);
y = imread(fullFileName);
grayImage = rgb2gray(y);
isaretleme(240:256, :) = repmat([1,0.5,0], [256-239, 1])
goruntu = imshow(grayImage);
colormap(gca, isaretleme);
drawnow;
imwrite(grayImage,isaretleme, ['Çıktı/img' num2str(k+10) '.jpg'],'jpg');
end
winopen("Çıktı")
imds = imageDatastore(fullfile("Çıktı",'img*'));
montage(imds)
Im using this code to detect possible bone tissue in CAT Slices. I want to do 3d model for whole bone tissues from that slices. Im using JPGs. I dont know whats the height between slices too, but i can try to find the best. If its needed i can also upload the images Im using.
3 Kommentare
KALYAN ACHARJYA
am 29 Nov. 2020
"3D model from 2D CAT"
You have 2D images, do you want to stack or display in 3D? Any image for reference?
Türker Berk Dönmez
am 29 Nov. 2020
Bearbeitet: Türker Berk Dönmez
am 29 Nov. 2020
Türker Berk Dönmez
am 29 Nov. 2020
Antworten (0)
Kategorien
Mehr zu Model Import finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!