How to create a 3d stack of multiple images in Matlab
Mostrar comentarios más antiguos
Can someone help with creating a 3D stack in Matlab. I have used this line of codes, but it seems that my code stacks up the same image as many times as specified.
clear all;
Imatrix = [];
for i=1:500
images{i} = imread(sprintf('0001.tif',i));
Imatrix = cat(3, Imatrix, images{i});
end
I have a folder containing 500 images, and i want to stack the images serially as named.
Thanks
4 comentarios
Azzi Abdelmalek
el 24 de Mayo de 2016
How your images are named?
Jubilee Adeoye
el 24 de Mayo de 2016
Anand P
el 4 de Jun. de 2019
Is there any method to visualise the stack you have created in a 3D manner
Kevin Liu
el 29 de Ag. de 2019
bump
Respuesta aceptada
Más respuestas (2)
Azzi Abdelmalek
el 24 de Mayo de 2016
Depending on how your images are named, this line of code should look like
images{i} = imread(sprintf('000%d.tif',i));
Jubilee Adeoye
el 24 de Mayo de 2016
0 votos
Categorías
Más información sobre Standard File Formats en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!