conversion of 2d image into 3d image
3 views (last 30 days)
tahoorasf on 3 Jun 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 on 4 Apr 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 on 19 May 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