I did image divides in blocks but I don't know how to shuffle these blocks using key ,seed & transformation table.pl give me code for that
Show older comments
I did image divides in blocks but I don't know how to shuffle these blocks using key ,seed & transformation table.pl give me code for that
Answers (1)
Walter Roberson
on 25 Aug 2013
rng(YourSeed);
neworder = randperm(NumberOfBlocks);
scrambled_cell = reshape(image_as_cell(neworder), size(image_as_cell));
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!