Dividing images into blocks
Ältere Kommentare anzeigen
I`ve loaded a video. Then i divided the video into individual frames. Now i want to divide each frame into a group of blocks. After dividing them into blocks, i want to compare the blocks of one frame with the blocks of another frame, to know whether they are matching.
1. How to divide frame into blocks? 2. How to read the blocks(pixel values of the frames)? 3. How to compare the blocks?
1 Kommentar
Antworten (2)
Sean de Wolski
am 28 Feb. 2012
1 Stimme
perhaps mat2cell(), blockproc() or a double for-loop.
5 Kommentare
Sean de Wolski
am 28 Feb. 2012
Verschoben: DGM
am 29 Dez. 2023
imshow(G{1,1}) %show first block
Sean de Wolski
am 28 Feb. 2012
Verschoben: DGM
am 29 Dez. 2023
g(i) or g{i} for a cell array. g[i] is not a valid syntax in MATLAB.
Image Analyst
am 28 Feb. 2012
1 Stimme
Depends on how you define blocks. Perhaps you want quadtree decomposition if you want blocks of variable size. It's in the Image Processing Toolbox.
Kategorien
Mehr zu Neighborhood and Block Processing 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!