reshape a photo to 8*8 blocks
Ältere Kommentare anzeigen
Hello,
I would like to reshape a photo into 8*8 blocks and have a new matrix with size of 

In other words, I am searching for a matlab function that works the same as the code below, but with higher speed:
for i=1:8:size(img,1)
for j=1:8:size(img,2)
tmp = cat(3,tmp,img(i:i+7, j:j+7));
end
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Aerospace Blockset finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!