i want to divide a grayscale image into 2*3 block and in each individual block i have to perform xor of 3 pixel each and concatenate the two xored value.Can anyone help me please????????????/

1 view (last 30 days)
i trie with blockproc .but its not correctly processing

Answers (1)

Matt J
Matt J on 15 Jan 2014
Edited: Matt J on 15 Jan 2014
As an alternative to blockproc, you can also use MAT2TILES to decompose your image into 2x3 tiles,
ImCells=mat2tiles(YourImage,[2,3]);
Then simply loop over the cells and do whatever processing you need (or use CELLFUN).

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!