フィルターのクリア

For loop on a 3D matrix to get a range of slices

2 ビュー (過去 30 日間)
Nandini Chatterjee
Nandini Chatterjee 2020 年 4 月 1 日
コメント済み: darova 2020 年 4 月 1 日
I have 4 files. An mha file of the original CT scan, an mha file of the annotated CT scan, and its respective mat file. Both mat files have the of size 512 x 512 x 38. If you open SG.mha on 3DSlicer, you will see the annotation of tumor as you go through all the slices. I want to create a script where it goes through all the SG.mat slices, finds the slices that have the tumor in it, correspond it to the CT.mat, and then only look at the area of interest (the tumor).
*I uploaded the Annotated scans, but I am unable to upload the CT scans even after compressing the file.
  1 件のコメント
Nandini Chatterjee
Nandini Chatterjee 2020 年 4 月 1 日
For example, I have multiple slices that look like this. The tumor is in white.

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

採用された回答

darova
darova 2020 年 4 月 1 日
Use find and sum
find(sum(sum(SG,1),2)) % number of nonzero slices
  6 件のコメント
Nandini Chatterjee
Nandini Chatterjee 2020 年 4 月 1 日
Thank you!
darova
darova 2020 年 4 月 1 日
happy to help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by