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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by