3d reconstruction from images matlab
#1

I need the matlab code for images 3D reconstruction,thank you very much!
Reply
#2

The first example is an insect brain. This work was done by Nichole VanderSal in Cornell. The inputs are TIFF files. The first Matlab program to read the files continues. TIFF files must be numbered sequentially. After running this program, the "Slice" array is manually stored as a Matmat * .mat file.

Programs

clf
clear all
%process a bunch of TIFF files into a volume
%the original images were had-colored by region to one of 7 colors
%so the scalar value on the output runs from from 0 to 7
%file setup
filebase = 'e:\Audax';
startFrame = 1;
endFrame = 74;
%read frames, reduce size, show frames, and build volume
for i=startFrame:endFrame
   filename=[filebase, num2str(i,'%2d'),'.tif']
   temp=double(imresize(imread(filename), 0.5));
   slice(:,:,i) = (temp(:,:,1)==255) + 2*(temp(:,:,2)==255) + 4*(temp(:,:,3)==255);
   imagesc(slice(:,:,i));
   colormap('gray')
   drawnow
end

The display program computes an isosurface for each of the hand-traced structures, smooths the resulting isosurfaces, colors them, then displays them as a 3D object.
clf
clear all

%load the file with the preprocessed images
load 'c:\my documents\matlab\nichole\slice.mat'
%the original images were had-colored by region to one of 7 colors

%patch smoothing factor
rfactor = 0.125;
%isosurface size adjustment
level = .8;
%useful string constants
c2 = 'facecolor';
c1 = 'edgecolor';

%build one isosurface for each of 7 different levels
%The "slice" matrix takes on one of 7 integer values,
%so each of the following converts the data to a binary
%volume variable, then computes the isosurface between the
%1 and 0 regions

p=patch(isosurface(smooth3(slice==1),level));
reducepatch(p,rfactor)
set(p,c2,[1,0,0],c1,'none');

p=patch(isosurface(smooth3(slice==2),level));
reducepatch(p,rfactor)
set(p,c2,[0,1,0],c1,'none');

p=patch(isosurface(smooth3(slice==3),level));
reducepatch(p,rfactor)
set(p,c2,[1,1,0],c1,'none');

p=patch(isosurface(smooth3(slice==4),level));
reducepatch(p,rfactor)
set(p,c2,[0,0,1],c1,'none');

p=patch(isosurface(smooth3(slice==5),level));
reducepatch(p,rfactor)
set(p,c2,[1,0,1],c1,'none');

p=patch(isosurface(smooth3(slice==6),level));
reducepatch(p,rfactor)
set(p,c2,[0,1,1],c1,'none');

p=patch(isosurface(smooth3(slice==7),level));
reducepatch(p,rfactor)
set(p,c2,0.8*[1,1,1],c1,'none');

%lighting/image control
set(gca,'projection','perspective')
box on
lighting phong
light('position',[1,1,1])
light('position',[-1,-1,-1])
light('position',[-1, 1,-1])
light('position',[ 1,-1,-1])

%set relative proportions
daspect([1,1,1])
axis on
set(gca,'color',[1,1,1]*.6)

view(-30,30)

rotate3d on
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: matlab code for 3d reconstruction from 2d images, 3d face reconstruction from 2d images matlab code, 2d face reconstruction matlab code, project on 3d reconstruction using matlab, 3d reconstruction from images matlab, matlab 3d reconstruction from 2d images, matlab code for 3d reconstruction from dicom images,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to calculate distance in heed protocol by using matlab 1 1,887 15-06-2018, 03:54 PM
Last Post: Guest
  matlab code for incremental conductance mppt 1 1,426 02-05-2018, 02:28 PM
Last Post: eksi
  anomaly detection code in matlab 3 2,094 23-04-2018, 12:04 AM
Last Post: Guest
  matlab code for liver tumor segmentation 2 1,585 01-04-2018, 06:29 PM
Last Post: [email protected]
  matlab code for vehicle tracking using unscented kalman filter 3 16,884 26-03-2018, 08:57 PM
Last Post: fodayj
  matlab code for facial expression recognition using frequency domain 1 2,683 19-02-2018, 06:03 PM
Last Post: Guest
  matlab code shadow detection and removal in colour images using matlab 2 2,262 12-01-2018, 01:24 PM
Last Post: dhanabhagya
  simulink matlab model upqc mdl 3 6,777 18-12-2017, 09:08 AM
Last Post: jaseela123d
  matlab code for speed breaker detection 1 1,295 27-10-2017, 10:22 AM
Last Post: Guest
  skin cancer detection using neural networks matlab code 13 3,895 23-10-2017, 02:52 PM
Last Post: Guest

Forum Jump: