Saving projections as one data array.

2 ビュー (過去 30 日間)
Gideon Chinamatira
Gideon Chinamatira 2021 年 2 月 17 日
回答済み: Shashank Gupta 2021 年 2 月 23 日
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.

採用された回答

Shashank Gupta
Shashank Gupta 2021 年 2 月 23 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by