how to divide image into 16 block ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
amal
am 23 Jan. 2015
Beantwortet: Mohammad Abouali
am 23 Jan. 2015
hello,
i want help in the implementation of divide image into block ?
thanks
0 Kommentare
Akzeptierte Antwort
Mohammad Abouali
am 23 Jan. 2015
Let's say you want to divide your image into blocks of size M,N then something like this should work:
B = im2col(inputImage,[m n],'distinct');
since you want 16 blocks, so pretty much 4x4 blocks then
m=ceil(size(inputImage,1)/4)
n=ceil(size(inputImage,2)/4)
However, I have to ask you a question. Are you sure that it is necessary to divide your image into blocks? I would look into blockproc() and see if I can use that before dividing the image into blocks.
0 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!