How to create a montage from a 3D subvolume?

4 ビュー (過去 30 日間)
Colleen
Colleen 2013 年 9 月 26 日
コメント済み: Jan 2014 年 3 月 13 日
I have created a 3D subvolume within a 3D image. I would now like to display that subvolume as a montage. It appears that I need to save the subvolume and then call it using the montage command. However, I cannot figure out how to successfully save the 3D subvolume. Please let me know if my question is unclear or if more information is needed. Thank you.

採用された回答

Matt J
Matt J 2013 年 9 月 26 日
編集済み: Matt J 2013 年 9 月 26 日
No, you don't need to save it. From the doc,
montage(I) displays all the frames of amultiframe image array I in a single image object. I can be a sequence of binary, grayscale, or truecolorimages. A binary or grayscale image sequence must be an M-by-N-by-1-by-K array. A truecolor image sequence must be an M-by-N-by-3-by-K array.
  3 件のコメント
Colleen
Colleen 2013 年 9 月 26 日
I jumped the gun on asking a follow-up question. It appears that the following line of code solves my problem. Thanks!
montage(reshape(SubV,[size(SubV,1), size(SubV,2), 1, size(SubV,3)]),'DisplayRange',[]);
Jan
Jan 2014 年 3 月 13 日
Brilliant!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by