how to create corrupted Image with 25% Isolated Block Loss

5 views (last 30 days)
how to create gaps in images like the below image

Answers (1)

Walter Roberson
Walter Roberson on 27 Feb 2017
Take advantage of
block_struct.location: A two-element vector, [row col], that specifies the position of the first pixel (minimum-row, minimum-column) of the block data in the input image.
to decide whether the given block is one of the blocks to return 0's for instead of the data for the block.

Community Treasure Hunt

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

Start Hunting!