Converting from 3D to 2D image
古いコメントを表示
Dear All,
I have a 3D CT image with a dimension 512x512x301 int16 and I need to convert it to 2D (X,Z) at Y =256
How can I do this?
Did reshape function can do this?
If yes, how can I do this?
Thanks
回答 (1 件)
Ameer Hamza
2020 年 4 月 5 日
編集済み: Ameer Hamza
2020 年 4 月 5 日
If you need a slice of 3D matrix, than try this
out = CTimages(:,256,:)
It will give you a 2D slice at 256 index of 2nd dimension (columns).
6 件のコメント
Abdallah Ghazi Faisal Zaid Alkilani
2020 年 4 月 5 日
You can also use squeeze() to reduce the slice from 512x1x301 to 512x301:
out = squeeze(CTimages(:,256,:));
Mohamed Moawed
2020 年 4 月 5 日
Ameer Hamza
2020 年 4 月 5 日
How the image channel are stored in 512x512x301 matrix?
Mohamed Moawed
2020 年 4 月 5 日
編集済み: Mohamed Moawed
2020 年 4 月 5 日
Ameer Hamza
2020 年 4 月 5 日
What command did you use to display the color image. If possible, please share a sample dataset, so that i can easily suggest a solution.
Mohamed Moawed
2020 年 4 月 6 日
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

