conversion of 2d image into 3d image

1 visualización (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 13 de Feb. de 2015
Respondida: hf fh el 19 de Mayo de 2018
input is a 2D mri brain image. how to convert it into 3D medical image.. i.e., seeing the output in 3 dimensional angle..

Respuestas (3)

tahoorasf
tahoorasf el 3 de Jun. de 2015
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 el 4 de Abr. de 2017
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 el 19 de Mayo de 2018
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

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by