conversion of 2d image into 3d image

1 回表示 (過去 30 日間)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2015 年 2 月 13 日
回答済み: hf fh 2018 年 5 月 19 日
input is a 2D mri brain image. how to convert it into 3D medical image.. i.e., seeing the output in 3 dimensional angle..

回答 (3 件)

tahoorasf
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);

D.Jaisil Rose
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?

hf fh
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

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by