How to divide an image with unequal size into 4 x 4 non-overlapping blocks.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Yuvaraj Venkataswamy
am 2 Mai 2018
Kommentiert: Ameer Hamza
am 2 Mai 2018
an image with unequal size shoud be divided into 4 x 4 non-overlapping blocks.
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 2 Mai 2018
This code will convert the 3 channel inImage into 16 patches and save them in a cell array
mat2cell(inImage, size(inImage,1)/4*ones(4,1), size(inImage,2)/4*ones(4,1), 3)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!