MATLAB: First i need to divide a binary image into 8×8 block.Second, in all blocks,check if number of 1s is larger than 0s,if larger number of 1s,then i need to convert all 0s to 1s,else convert all 1s to 0s.

homeworkimage processingImage Processing Toolbox

using blockprocess,a binary image is divided into 8×8 blocks,then check all blocks that whether number of 1s is larger than number of 0s,if so then convert all 1s to 0s otherwise 0s to 1s in all blocks

Best Answer

It will be trivial for you to adapt one of my attached demos to do that.
Related Question