How to downsample the 3D matrix in matlab??
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rizwan Khan
am 24 Jul. 2022
Kommentiert: Kristoffer Walker
am 6 Jul. 2024
Due to computational limitations, I need to downsample the 3D (1500x1500x1700) matrix by a factor of 2. The binning process should merg the 2x2x2 voxels and assign the mean intensity value of the group to the corresponding voxel in the reduced image.
0 Kommentare
Akzeptierte Antwort
Jan
am 24 Jul. 2022
X = rand(1500, 1500, 1700); % 28.5 GB - does not run in the forum!
Y = reshape(X, 2, 750, 2, 750, 2, 850);
Z = squeeze(sum(Y, [1,3,5])) / 8;
size(Z)
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!