I have a CT image which is double with a size of 512 x 512 x 176 I'm looking to take a range of slices individually for analysis for instance slices 40 - 60. I'm currently using:
for I = 3Dmatrix(:, :, 40:60)
%Algorithms code
end

 採用された回答

James Tursa
James Tursa 2017 年 4 月 19 日

0 投票

Does this do what you want?
for I = 40:60
my3Dslice = my3Darray(:,:,I);
%Algorithms code
end

4 件のコメント

Nick Prince
Nick Prince 2017 年 4 月 20 日
Yes it was thank you very much
Nandini Chatterjee
Nandini Chatterjee 2020 年 4 月 1 日
What if you don't know the slices you want to analyze? For example, I want have an annotated CT image of size 512 x 512 x 38 and I need to find the slices which contain the annotated tumor (which are white and the background is grey).
James Tursa
James Tursa 2020 年 4 月 1 日
@Nandini: Open up a new Question for this with the details of your problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by