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

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)

rng(YourSeed);
neworder = randperm(NumberOfBlocks);
scrambled_cell = reshape(image_as_cell(neworder), size(image_as_cell));

Asked:

on 25 Aug 2013

Community Treasure Hunt

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

Start Hunting!