conversion of 2d image into 3d image
6 次查看(过去 30 天)
显示 更早的评论
input is a 2D mri brain image. how to convert it into 3D medical image.. i.e., seeing the output in 3 dimensional angle..
0 个评论
回答(3 个)
tahoorasf
2015-6-3
Test_File='c/...' count=0:... test = double(dicomread(Test_File)); if length(size(test))==3 Test_Image = rgb2gray(test); else Test_Image = test; end final(:,:,count)= double(Test_Image);
0 个评论
D.Jaisil Rose
2017-4-4
Can anyone tell how to get 3d depth images and how to do segmentation for such 3d depth images other than medical images?
0 个评论
hf fh
2018-5-19
I have a set of images in 2D and I want to convert them to 3D using Matlab I try this way but there is a problem I don't know please help me ??? clc; % Clear the command window. close all; % Close all figures (except those of imtool.) clear; % Erase all existing variables. Or clearvars if you want. workspace; % Make sure the workspace panel is showing. fontSize = 8; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%dir folder myFolder = '/Users/mac/Desktop/images/image3D'; % % Check to make sure that folder actually exists. Warn user if it doesn't. if ~isdir(myFolder) errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder, '*.tif'); % Change to whatever pattern you need. theFiles = dir(filePattern); for k = 1 : 20 % Get a list of all files in the folder with the desired file name pattern. array3d = zeros(300, 300, 3); baseFileName = sprintf('Image_%d.tif',k); fullFileName = fullfile(myFolder, baseFileName); thisSlice = imread(fullFileName); % imageArray=grayImage %fprintf(1, 'Now reading %s\n', fullFileName); if exist(fullFileName, 'file') thisSlice = imread(fullFileName); array3d(:,:,k) = thisSlice; figure(k); % Activate the figure again. imshow(array3d); end end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!