Saving projections as one data array.

2 views (last 30 days)
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.

Accepted Answer

Shashank Gupta
Shashank Gupta on 23 Feb 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.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!