how to save my 3d matrix in X,Y,Z coordinates
I have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
endI have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
end I have 134* 2d matrix (86*86 each) and they make 86*86*134 matrix.
I need to generate a point cloud of this matrix and that is why I must save the Matrix in xyz coordinates.
how can I save the matrix (I) in xyz table
my matrix (I) was generated by the following code
clear all
close all
names=dir(‘inter the name of your file*.tiff’);
for iii=1:size(names,1)
I(:,:,iii)=imread(strcat(‘inter the name of your file’,names(iii).name));
for j=1:size(names,1)
Img_3D=surface(‘XData’,[0 355;0 355],’YData’,[0 0;355 355],’ZData’,[29.85*j 29.85*j;29.85*j 29.85*j], ‘CData’ ,flipdim(im2double(I(:,:,iii)),1),’FaceColor’,’texturemap’,’EdgeColor’,’none’);
colormap(gray)
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z µm’)
end
end image-processing, 3d matrix MATLAB Answers — New Questions