Saving projections as one data array.

5 visualizaciones (últimos 30 días)
Gideon Chinamatira
Gideon Chinamatira el 17 de Feb. de 2021
Respondida: Shashank Gupta el 23 de Feb. de 2021
I have 1000 tiff images from a CT scan that i want to save in one data array so that i can perform 3D image reconstruction using the ASTRA tolbox. The toolbox works in a Matlab environment but assumes the data to already be in one array form. Please assist with the code to do so.

Respuesta aceptada

Shashank Gupta
Shashank Gupta el 23 de Feb. de 2021
Hi Gideon,
What you need to do is read all tiff file in MATLAB and convert them into a big array containing all the images. Check out read or imread function to read the tiff images. This should help you. After reading the tiff file all you need to do is append all images in one big array then you are good to go. Below is a small piece of code for your reference.
% fill up image_dimension and number of tiff images you have.
bigArray = zeros(image_dimension,numberImages)
for i=1:numberImages
t = Tiff('location of images','r');
bigArray(:,:,:,i) = read(t);
end
You need to change this code according to your problem statement.
I hope this helps.
Cheers.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by