save the slices of a deformes volume

조회 수: 3 (최근 30일)
talayeh ghodsi
talayeh ghodsi 2019년 6월 19일
편집: KALYAN ACHARJYA 2019년 6월 19일
hi. i have a volume called a with 430 slices and all of them are stored in a folder and are accesible. i have made some changes like rotation to volume a, so the deformed volume is called b.
now i want to save all slices of b in a folder instead of using b_slices = b(:,:,s) (s variates from 1 to 430) manually 430 times.
could anyone help me please?

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 6월 19일
편집: KALYAN ACHARJYA 2019년 6월 19일
for slice_number=1:430
b_slices=b(:,:,slice_number);
% Save Individually
end
Or
b_slices={};
for slice_number=1:430
b_slices{slice_number}=b(:,:,slice_number);
end
Acess from structure array

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by