# 3d image visulalisation

2 views (last 30 days)
prashant singh on 24 Dec 2017
Edited: Walter Roberson on 22 May 2018
I had set of 2d slices of 3d images. I combine them into array of size 1024*512*128. I have tried to visualize the 3d image using viewer3d and some other tools but without any success.
##### 2 CommentsShow 1 older commentHide 1 older comment
prashant singh on 26 Dec 2017
i have 2d slices of 1024*512.

Walter Roberson on 26 Dec 2017
If you have R2017a or later you could try volumeViewer()

hf fh on 22 May 2018
I am very interested in learning on the MATLAB I would like to use to convert 2D-images into 3D -volume by using volume Viewer(); but I have problem-saving the format How so,,,
Walter Roberson on 22 May 2018
According to your other postings, you do not have 2D images, you have color images. volumeViewer() cannot be used for stacks of color image.

hf fh on 22 May 2018
I have two-dimensional color images and I want to convert to three dimensions I tried to use it volume Viewer(); But when you save the volume there is no save for it

hf fh on 22 May 2018
When extracting images from the Matlab shows me these edges !!! how to get rid of them I want to see the shape as size 3D using volume Viewer(); as a figure 1 thank you very much
Walter Roberson on 22 May 2018
https://www.mathworks.com/help/images/ref/imclearborder.html

hf fh on 22 May 2018
Edited: Walter Roberson on 22 May 2018
imclearborder (), ==> This method did not fit images because it hid information in the images.
I used this method as like https://www.mathworks.com/matlabcentral/answers/23921-remove-white-space-from-around-image but I still have a problem with 20 images, it is very difficult to use it in the future.
maybe need 100 images how can I apply it to 20 or 100 images
this method good just input one image
Each time I enter an image this is very difficult for a large number of images

hf fh on 22 May 2018
Edited: Walter Roberson on 22 May 2018
this good for 100 images
folder = '/Users/mac/Desktop/fiel2/RemoveWhiteSpace/RemoveWhiteSpace/semple';
for k = 1 : 99
u_in = mat2gray(imread( fullfile(folder, sprintf('%d.tif', k) )));
%figure, imshow(u_in);
figure(k), imshow(RemoveWhiteSpace(u_in));
RemoveWhiteSpace([], 'file', sprintf('%d.tif', k) , 'output', sprintf('%d.png', k));
end