HOW reshape 4D image array to 2D?
古いコメントを表示
I'm having some trouble reshaping a 4D array to a 2D array. Currently the array is follows, (14965, 16, 32, 256). Where 14965 is number of images. I want to save every 2D array in image formate.
10 件のコメント
Walter Roberson
2018 年 7 月 8 日
Are you trying to output 14965 images of 512 by 256 each?
mohammed mahmoud
2018 年 7 月 10 日
Walter Roberson
2018 年 7 月 10 日
You appear to want 14965 images output. What size should each saved image be?
Or are you wanting to output 14965*256 = 3831040 image files?
mohammed mahmoud
2018 年 7 月 10 日
Guillaume
2018 年 7 月 10 日
the problem is every image of this size have 256 channel
Well, then they're not images and you need to find out what these 256 channel represent. Until you do, we can't really help, we certainly have no idea what they are.
Walter Roberson
2018 年 7 月 10 日
Another possibility is that you want to create multichannel TIFF.
mohammed mahmoud
2018 年 7 月 11 日
Walter Roberson
2018 年 7 月 11 日
How do you want the merged channels to be calculated?
mohammed mahmoud
2018 年 7 月 11 日
Walter Roberson
2018 年 7 月 11 日
SliceNumber = 8392; %for example
frame = squeeze(YourArray(SliceNumber, :, :, :));
volumeViewer(frame)
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!