How to divide an image into blocks(non overlapping)?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Vinay Kumar
am 1 Okt. 2014
Kommentiert: Vinay Kumar
am 15 Okt. 2014
I'm facing a problem in dividing an image into non overlapping blocks. I am supposed to take a Fourier transform of the divided blocks.can i use "blockproc" to do this?
2 Kommentare
Geoff Hayes
am 1 Okt. 2014
Bearbeitet: Geoff Hayes
am 1 Okt. 2014
Note that you will need the Image Processing Toolbox to use this function.
Akzeptierte Antwort
Image Analyst
am 1 Okt. 2014
You can use mat2cell() or indexing(). Both of these methods are shown in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
If you also want to call a function on each block, then you can use blockproc() as illustrated in my two attached demos.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!